Bug#350518: Auto-hibernation fails if AUTO_HIBERNATION_BATTERY_* MINIMUM_BATTERY_*

2006-02-04 Thread Bart Samwel

Hi there,

Sorry about the late response, this message fell through the cracks of 
my e-mail filtering system.


I understand the problems, I'll fix them in the upcoming release.

--Bart

EspeonEefi wrote:

When the battery charge slips below MINIMUM_BATTERY_*, laptop_mode will
try to proceed with ACTIVATE_WITH_POSSIBLE_DATA_LOSS=0. This results in
the else branch starting at line 916 being taken, and
/proc/sys/vm/laptop_mode being set to 0 at line 920.

Once this happens, all subsequent battery events will have their calls
to laptop_mode quashed, since /etc/acpi/actions/lm_battery.sh calls
/usr/sbin/laptop_mode only if /proc/sys/vm/laptop_mode is greater than
0.

Thus, as long as there is a battery event after the battery's passing
MINIMUM_BATTERY_* levels and before the battery's reaching
AUTO_HIBERNATION_BATTERY_* levels, laptop_mode will be disabled until
either the battery runs out or an AC adaptor is plugged in and the
battery restored to a state with more charge than MINIMUM_BATTERY_*.
Thus, the new auto-hibernation functionality of laptop-mode-tools will
never be called.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#350518: Auto-hibernation fails if AUTO_HIBERNATION_BATTERY_* MINIMUM_BATTERY_*

2006-01-29 Thread EspeonEefi
Package: laptop-mode-tools
Version: 1.22-1
Severity: normal

When the battery charge slips below MINIMUM_BATTERY_*, laptop_mode will
try to proceed with ACTIVATE_WITH_POSSIBLE_DATA_LOSS=0. This results in
the else branch starting at line 916 being taken, and
/proc/sys/vm/laptop_mode being set to 0 at line 920.

Once this happens, all subsequent battery events will have their calls
to laptop_mode quashed, since /etc/acpi/actions/lm_battery.sh calls
/usr/sbin/laptop_mode only if /proc/sys/vm/laptop_mode is greater than
0.

Thus, as long as there is a battery event after the battery's passing
MINIMUM_BATTERY_* levels and before the battery's reaching
AUTO_HIBERNATION_BATTERY_* levels, laptop_mode will be disabled until
either the battery runs out or an AC adaptor is plugged in and the
battery restored to a state with more charge than MINIMUM_BATTERY_*.
Thus, the new auto-hibernation functionality of laptop-mode-tools will
never be called.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-2-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

laptop-mode-tools depends on no packages.

Versions of packages laptop-mode-tools recommends:
ii  acpid 1.0.4-5Utilities for using ACPI power man
ii  hdparm6.3-3  tune hard disk parameters for high
pn  sdparmnone (no description available)

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]