Package: laptop-mode-tools Version: 1.22-1 Severity: normal /usr/sbin/laptop_mode fails, when laptop has two battery slots and only one is present.
A start results in the following error messages: Enabling laptop mode: remaining capacity: 1905 mAh /usr/sbin/laptop_mode: line 612: [: : integer expression expected /usr/sbin/laptop_mode: line 615: [: : integer expression expected /usr/sbin/laptop_mode: line 618: [: : integer expression expected /usr/sbin/laptop_mode: line 621: [: : integer expression expected Looks like the variable $REMAINING is not set correctly in line 592 when checking /proc/acpi/battery/BAT1/. A fix might be checking /proc/acpi/battery/BATx/info before doing any further operation. On the other hand when multiple batteries are present the value of REMAINING should contain the sum of all batteries when determing other actions depending on that (?). Best regards, Frank -- 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.15 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) laptop-mode-tools depends on no packages. Versions of packages laptop-mode-tools recommends: ii acpid 1.0.4-5 Utilities for using ACPI power man ii hdparm 6.3-3 tune hard disk parameters for high pn sdparm <none> (no description available) -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]