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

My laptop has lately been refusing to activate laptop mode.  Don't know
when this started, just noticed it.  When run manually, "laptop_mode
start" reports that it is "deactivating data loss sensitive features".
Verbose mode reveals that it thinks the battery is too low.

My laptop reports battery level in mWh, as opposed to mAh.  There is a
bug in the laptop_mode script that causes the script to think the
battery is low when it really isn't, but only when the units are mWh.  

The cause is a typo on line 618 of the script, where the test for
remaining power has a '-lt' where it should be a '-gt'.

-- 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.6-centrino
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
618c618
<                       if [ "$IN_MWH" -ne 0 -a "$REMAINING" -lt 
"$MINIMUM_BATTERY_CHARGE_MWH" ] ; then
---
>                       if [ "$IN_MWH" -ne 0 -a "$REMAINING" -gt 
> "$MINIMUM_BATTERY_CHARGE_MWH" ] ; then

Reply via email to