Hi Soenke,

Soenke wrote:
> it seems that the auto-hibernation feature of laptop-mode-tools (configurable
via /etc/laptop-mode/conf.d/auto-hibernate.conf) does not work with my laptop
(ThinkPad X40) any more. It worked a while ago, but as I have not used this option for some time, I am not sure when it stopped working.

I tried several settings for AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT (as high as 20) and also enabling AUTO_HIBERNATION_ON_CRITICAL_BATTERY_LEVEL. Regardless of these settings, the system does not exectute the command set in HIBERNATE_COMMAND but just turns off (no regular shutdown, just switched off) as the battery runs down.
If I remember correctly, laptop-mode is called via acpid when a battery event
is caught, checks the battery state and acts accordingly. So I tried running acpid in debug mode (for about 20 minutes, on battery), but I only got battery events when (un)plugging the AC-adapter. During normal system operation, I did not see any battery events at all. When I unplug the AC-adapter while the battery is below AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT, I get a battery
event and HIBERNATE_COMMAND is executed. When just
running on battery, it does not seem to work. Is there a way of triggering the battery events without plugging in the AC-adapter?

I recently got a new battery for this system, maybe the problem is related to that? I cannot test the old battery as it does not work anymore.
If more information is required, I will gladly supply it.

Hmmmm. These events are actually hardware dependent, and if the new battery does not send them, there's not much you can do about it except perhaps polling. I will consider adding a polling feature to laptop mode tools; it would be something like a cron job that runs every minute or so. It's a pretty heavyweight solution though. :-/ If you install a cron job that runs "/usr/sbin/laptop_mode auto" every minute, I expect it works again?

Cheers,
Bart



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

Reply via email to