LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   low battery alarm fluxbox (https://www.linuxquestions.org/questions/slackware-14/low-battery-alarm-fluxbox-802876/)

mcnalu 04-19-2010 11:10 AM

low battery alarm fluxbox
 
I'm using fluxbox on my eee pc 1000h and use conky to display % battery charge but (unlike my previous laptop) I don't get a hardware-triggered beep warning me of low battery.

I've done a bit of searching but haven't yet found a neat software solution for either a beep or toolbar notification. Any suggestions?

(I'm not wanting to switch back to KDE right now.)

dive 04-19-2010 11:38 AM

Perhaps a shell script to measure alarm and do the beep. Run it as a daemon at boot. I'm only familiar with Thinkpad acpi but there should be an acpi device corresponding to battery level.

H_TeXMeX_H 04-19-2010 11:57 AM

I know with gkrellm you can add an alert to the battery config, and make it run a command (probably beep) when the battery gets to a certain percent.

mrclisdue 04-19-2010 12:17 PM

Did you do a full slack install? If so, KDE's guidance power manager can be run and iconified; otherwise, I have an inelegant script that invokes xosd, and coloured and flashing warnings (can be extended to call fire department, spouse, and turn on the garbage disposal, if necessary) that you're welcome to if you promise not to poke fun at it....

There are also a few other wm solutions, though I found all of them *ugly*. I'll post back if/when I dig them up.

edit:...here's a previous thread with a couple of suggestions...
http://www.linuxquestions.org/questi...t-apps-786292/

cheers,

mcnalu 04-19-2010 12:43 PM

thanks folks - will give the kde app and gkrellm a go. I've already got kmix and amarok on the tool bar, so I should've thought of that myself. Doh!

Actually, what is the kde4 equivalent of 3.5's kpowersave?

I found scripts such as this. while[ true ] with a sleep command inside it doesn't seem all that elegant to me, but thinking on it, I can't think of a clear reason why it's bad. Feel free to provide me with one though :)

BTW you've all got great sigs.


All times are GMT -5. The time now is 08:56 PM.