Package: laptop-mode-tools
Version: 1.40-1
Severity: important
Tags: patch

It seems, that 2.6.25 does not contain
/sys/class/power_supply/BATx/charge_* entrys anymore. I used 
/sys/class/power_supply/BATx/energy_*
instead:
--- /usr/sbin/laptop_mode.orig  2008-04-21 02:50:08.000000000 +0800
+++ /usr/sbin/laptop_mode       2008-04-21 12:46:21.000000000 +0800
@@ -597,17 +597,17 @@
                                        FOUND_AN_ENABLED_HIBERNATION_CHECK=0

                                        # Get the remaining capacity.
-                                       REMAINING=$(cat $BATT/charge_now)
+                                       REMAINING=$(cat $BATT/energy_now)
                                        if [ -z "$REMAINING" -o "$REMAINING" 
-eq 0 ] ; then
                                                echo "Battery does not report 
remaining charge. Perhaps it is not present?" >> $OUTPUT
                                                REMAINING=0
                                        fi
                                        echo "Remaining charge: $REMAINING" >> 
$OUTPUT

-                                       CAPACITY=$(cat $BATT/charge_full_design)
+                                       CAPACITY=$(cat $BATT/energy_full_design)
                                        if [ -z "$CAPACITY" -o "$CAPACITY" -eq 
0 ] ; then
                                                echo "Battery does not report 
design full charge, using non-design full charge." >> $OUTPUT
-                                               CAPACITY=$(cat 
$BATT/charge_full)
+                                               CAPACITY=$(cat 
$BATT/energy_full)
                                                if [ -z "$CAPACITY" -o 
"$CAPACITY" -eq 0] ; then
                                                        echo "Battery does not 
report non-design full charge." >> $OUTPUT
                                                        CAPACITY=0

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (600, 'testing'), (551, 'experimental'), (350, 
'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25-0 (SMP w/2 CPU cores)
Locale: LANG=et_EE.ISO-8859-15, LC_CTYPE=et_EE.ISO-8859-15 (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages laptop-mode-tools depends on:
ii  lsb-base                      3.2-10     Linux Standard Base 3.2 init scrip
ii  util-linux                    2.13.1-5   Miscellaneous system utilities

Versions of packages laptop-mode-tools recommends:
ii  acpid                       1.0.6-5.1    Utilities for using ACPI power man
ii  hal                         0.5.11~rc2-1 Hardware Abstraction Layer
ii  hdparm                      8.6-1        tune hard disk parameters for high
ii  sdparm                      1.02-1       Output and modify SCSI device para

-- no debconf information



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

Reply via email to