Package: sleepd
Version: 2.01
Severity: normal

Test with:
# acpi
Battery 0: Discharging, 94%, 02:51:28 remaining
Battery 1: Unknown, 72%
# sleepd -n -v -E --sleep-command=beep --battery 99
sleepd[16422]: battery level 94% is below 99%; forcing hibernation

In my case (HP Compaq NC6400) Battery 0 is external, Battery 1 is internal.


Additional (but minor) effects can be seen if I connect the external
battery while sleepd is running:

# acpi; sleepd -n -v -E --sleep-command=beep --battery 99
Battery 0: Discharging, 72%, 01:47:11 remaining
sleepd[17064]: battery level 72% is below 99%; forcing hibernation
sleepd: activity: just woke up
sleepd[17064]: battery level 72% is below 99%; forcing hibernation
sleepd: activity: just woke up
unknown battery state
sleepd[17064]: battery level 72% is below 99%; forcing hibernation
sleepd: activity: just woke up
unknown battery state

Right before the first "unknown battery state" I connected the external
battery.

Or the other way round (disconnecting the external battery while sleepd is
running):

# acpi; sleepd -c 5 -n -v -E --sleep-command=beep --battery 99
Battery 0: Discharging, 92%, 02:47:58 remaining
Battery 1: Unknown, 72%
sleepd[18008]: battery level 92% is below 99%; forcing hibernation
sleepd: activity: just woke up
sleepd[18008]: battery level 92% is below 99%; forcing hibernation
sleepd: activity: just woke up
error: libhal_device_get_property_bool: org.freedesktop.Hal.NoSuchDevice: No 
device with id /org/freedesktop/Hal/devices/computer_power_supply_battery_C1B3
error: libhal_device_get_property_bool: org.freedesktop.Hal.NoSuchDevice: No 
device with id /org/freedesktop/Hal/devices/computer_power_supply_battery_C1B3
error: libhal_device_get_property_bool: org.freedesktop.Hal.NoSuchDevice: No 
device with id /org/freedesktop/Hal/devices/computer_power_supply_battery_C1B3


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (550, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages sleepd depends on:
ii  libapm1                       3.2.2-14   Library for interacting with APM d
ii  libc6                         2.10.2-2   GNU C Library: Shared libraries
ii  libdbus-1-3                   1.2.16-2   simple interprocess messaging syst
ii  libhal1                       0.5.13-6   Hardware Abstraction Layer - share
ii  lsb-base                      3.2-23     Linux Standard Base 3.2 init scrip

Versions of packages sleepd recommends:
ii  hal                           0.5.13-6   Hardware Abstraction Layer
ii  pm-utils                      1.2.6.1-3  utilities and scripts for power ma

sleepd suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to