Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TIP] GKRELLM low battery alarm
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
SilveRo
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2003
Posts: 147
Location: Milan (Italy)

PostPosted: Sat Jul 10, 2004 9:47 pm    Post subject: [TIP] GKRELLM low battery alarm Reply with quote

Here is a little tip about how to have gkrellm warn you when your battery is low. I am writing this because I would have liked to find this post when I was trying to solve this problem myself. :)
It's really simple, using osd_cat (emerge xosd).

Go to the Setup->Alerts section for the battery, set the Low limits (I put 15 (%) for the warn limit and 10 for the alarm limit) and add for Alarm command:
Code:
osd_cat -d 5 -p middle -A center -f '-adobe-helvetica-bold-r-normal-*-*-320-*-*-p-*-iso8859-1' -O 5  /home/silvero/.gkrellm2/battery_critical

and for Warn command:
Code:
osd_cat -d 5 -p middle -A center -f '-adobe-helvetica-bold-r-normal-*-*-320-*-*-p-*-iso8859-1' -O 5  /home/silvero/.gkrellm2/battery_low


For the repeat intervals in seconds, I put 10 and 30 (Alarm - Warn). In battery_critical text file I put:
Code:
WARNING!!! BATTERY CRITICAL!!!

and in the battery_low text file I put
Code:
Warning!!! Battery low.


This way, you'll get a cool big red notice with a black outline right over what you're doing that warns you. The style of the text is like the one you get on the TV screen when you use a remote control to raise-lower the volume, etc.... I have a 1920x1200 screen resolution, so you may have to change the font.... you might also want to add shadows, change the color....

When I get to it, I will work on an acustic warning and an auto-shutdown script if the battery goes below 4% (unless someone posts to this thread with solutions for these other features).
_________________
Think Gray
(things aren't all black or all white)


Last edited by SilveRo on Sat Oct 09, 2004 6:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
redalert_007
n00b
n00b


Joined: 06 Mar 2004
Posts: 12

PostPosted: Sat Oct 09, 2004 4:42 pm    Post subject: Reply with quote

Thanks. Trying now
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum