You are not logged in.

#1 2007-07-20 12:34:01

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

shutdown when battery level is critical

Hi,

What would be the easiest and simplest way to automatically shutdown my machine when the battery is too low.

Thanks in advance.

Offline

#2 2007-07-20 13:21:47

High|ander
Member
From: Skövde, Sweden
Registered: 2005-10-28
Posts: 188
Website

Re: shutdown when battery level is critical

install hibernate-scripts and powersaved

And then config them.


When death smiles at you, all you can do is smile back!
Blog

Offline

#3 2007-07-20 13:30:51

tom5760
Member
From: Philadelphia, PA, USA
Registered: 2006-02-05
Posts: 283
Website

Re: shutdown when battery level is critical

Well, I know that if you use Gnome, you can go to System->Preferences->Power Management, and there will be a setting for just that.  If you are not using Gnome, I guess you could write a script that polls acpi every few minutes, and then calls poweroff when it gets low.  Other than that, I'm not sure what you can do.

Offline

#4 2007-07-20 14:52:10

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: shutdown when battery level is critical

Thank you very much to both of you for the replies.

High|ander, IIRC, powersaved is about to be deprecated (replaced by pm-utils) and even if hibernate is great, it will not work with any kernel. That's a good alternative to be considered anyway so thanks.

Tom5760, I'm trying openbox since few days (and already like it a lot) so the gnome feature won't do it for me.

Finally, just for the record, I've decided to give laptop-mode-tools a try.

Offline

Board footer

Powered by FluxBB