laptop power management!
Peter Garrett
peter.garrett at optusnet.com.au
Fri Dec 29 07:37:17 UTC 2006
On Thu, 28 Dec 2006 19:45:02 -0200
Ricardo C O Freitas <ricardocastanho at uol.com.br> wrote:
> It just SUSPEND or SHUTDOWN when the battery is on CRITICAL!!!
>
> No WARNINGS!!!
There's probably another way, but I use the "gkrellm" monitor to give me
battery warnings ( sudo aptitude install gkrellm ) . Gkrellm has a battery
monitor built in, and in the configuration under "Battery" you can set
commands under Setup --> Alerts. You can also set "low" limits and "low
alarm" limits ( for instance 105, 5% ).
The commands can be whatever you prefer - I made a little script and put
it in /usr/local/bin , like this:
#!/bin/bash
# Battery alarm sound and warning popup
xmessage "Your battery is at less than 5 percent" &
ogg123 /usr/share/sounds/KDE_Error_1.ogg
exit 0
Of course, you can use any sound or warning command you prefer. The only
downside to this is that gkrellm must be running - but in my case I always
have it running anyway, because it keeps me informed about what the
machine is doing :) The default skin for gkrellm is kind of ugly, but
there are *lots* of skins available from
http://www.muhri.net/gkrellm/
Peter
More information about the ubuntu-users
mailing list