So i'm happy I came across sfs's link for cbatticon, which is easy to compile, accurately reflects battery state, and with which you can have a script in /root/Startup with something like:
Code: Select all
cbatticon -l 10 -r 5 -c wmpoweroff
Code: Select all
cbatticon -l 10 -r 5 -c wmpoweroff
Hello, muggins, I am interested in this battery app, but can not compile it, as I have always compiled sources starting with - "./configure --prefix=/usr"muggins wrote:I recently changed my pupversion & liked everything except the included powerapplet_tray, which didn'r seem to reflect my laptop's real battery state.
So i'm happy I came across sfs's link for cbatticon, which is easy to compile, accurately reflects battery state, and with which you can have a script in /root/Startup with something like:
where it will warn you when percentage gets to 10, then poweroff at 5%.Code: Select all
cbatticon -l 10 -r 5 -c wmrpoweroff
Code: Select all
cbatticon -h
Code: Select all
#!/bin/sh
cbatticon -l 5 -r 3 -c wmreboot
Code: Select all
wmpoweroff
Thanks, bigpup, for the clarification.bigpup wrote:I would call that a typo.
Puppy usesCode: Select all
wmpoweroff
Code: Select all
#!/bin/sh
cbatticon -l 5 -r 3 -c "aplay /usr/share/audio/siren.wav wmreboot"