[laptop-mode] Laptop mode not working

Stian Kalstad stian.kalstad at gmail.com
Tue Dec 9 21:09:24 CET 2008


------=_Part_62701_30392103.1228853364428
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi! I`m trying to get laptop-mode to work on my laptop with Gentoo. I`ve set
it up to auto hibernate when battery is 10%, just to test it.


These are my settings in laptop-mode.conf:

ENABLE_AUTO_HIBERNATION=1

HIBERNATE_COMMAND=/usr/sbin/pm-hibernate

AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT=10

I`ve started the laptop_mode

*stian at D620 ~ $ /etc/init.d/laptop_mode status
 * status: started*

The acpi seems to read my battery correctly:

ON AC
stian at D620 ~ $ acpi
     Battery 1: charging, 88%, 00:42:40 until charged

ON BATTERY
stian at D620 ~ $ acpi
     Battery 1: discharging, 88%, 02:12:13 remaining

And running on battery, laptop_mode seems to work fine.
*
stian at D620 ~ $ sudo laptop_mode
Laptop mode enabled, active [unchanged]
*
But when acpi tells me that battery capacity is 10% or less, nothing
happens.

But if i now run #sudo laptop_mode is starts to hibernate immediatly.

anyone know whats wrong ???

------=_Part_62701_30392103.1228853364428
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi! I`m trying to get laptop-mode to work on my laptop with Gentoo. I`ve set it up to auto hibernate when battery is 10%, just to test it.<br><br><br>These are my settings in laptop-mode.conf:<br><br>ENABLE_AUTO_HIBERNATION=1<br>
<br>HIBERNATE_COMMAND=/usr/sbin/pm-hibernate<br><br>AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT=10<br><br>I`ve started the laptop_mode<br><br><i>stian at D620 ~ $ /etc/init.d/laptop_mode status<br>&nbsp;* status: started</i><br><br>The acpi seems to read my battery correctly:<br>
<br>ON AC<br>stian at D620 ~ $ acpi<br>&nbsp;&nbsp;&nbsp;&nbsp; Battery 1: charging, 88%, 00:42:40 until charged<br><br>ON BATTERY<br>stian at D620 ~ $ acpi<br>&nbsp;&nbsp;&nbsp;&nbsp; Battery 1: discharging, 88%, 02:12:13 remaining<br><br>And running on battery, laptop_mode seems to work fine.<br>
<i><br>stian at D620 ~ $ sudo laptop_mode<br>Laptop mode enabled, active [unchanged]<br></i><br>But when acpi tells me that battery capacity is 10% or less, nothing happens.<br><br>But if i now run #sudo laptop_mode is starts to hibernate immediatly.<br>
<br>anyone know whats wrong ???<br>

------=_Part_62701_30392103.1228853364428--


More information about the laptop-mode mailing list