Package: laptop-mode-tools
Severity: critical
Justification: breaks the whole system

New kernels (2.6.24+) have deprecated /proc/acpi/battery. When this is
not present, and auto-hibernate on low battery is on, the following
happens on boot:

1. the laptop-mode init script runs
2. it tries to cat /proc/acpi/battery/*/info
3. such files do not exist
4. laptop-mode decides this means it's time to hibernate

Currently my hibernate doesn't work for other reasons, which means this
results in a totally unbootable system.

I booted into another kernel and turned off auto-hibernate, and the
problem was fixed.

I guess there is two things to change about the hibernate checking do to
fix this:

1. Look for the new files in /sys first
2. If they're not there, look in /proc, and if they're not there, do
   nothing

I can probably work up a patch for this in the next day or so.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24.4-vs2.2.0.5.0.7.080408
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



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

Reply via email to