You are not logged in.

#1 2008-11-05 09:13:41

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Being alerted if the battery is running out...

while [[ `sed -n -e '/^remaining capacity/ {s_[^0-9]__g p '$'\n q}' /proc/acpi/battery/BAT0/state` -ge 250 ]] ;do sleep 5 ;done && ./go.sh

where go.sh starts a click-clock sound.

Yet, I feel there should be a smarter way.

Offline

#2 2008-11-05 09:53:31

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: Being alerted if the battery is running out...

Better to use acpi for that (acpi is created for things like this). I don't have a tutorial on hand for acpi but for battery a find this on google:
http://mindspill.net/computing/linux-no … rning.html

I don't remember if is possible to set what is considered low battery... I'm using noteo (search on this forum) for battery alert.

Offline

#3 2008-11-05 10:20:00

GERGE
Member
From: Turkey
Registered: 2008-09-29
Posts: 157
Website

Re: Being alerted if the battery is running out...

I am also using Noteo. It is good.

Offline

Board footer

Powered by FluxBB