Low-batt notification for Puppy? (Solved)

Using applications, configuring, problems
Message
Author
User avatar
Subito Piano
Posts: 731
Joined: Mon 28 May 2007, 03:12
Location: UPSTATE New York
Contact:

#41 Post by Subito Piano »

Thanks, muggins! For some reason my home laptop makes a LOT of noise to warn of a low battery (a BIOS feature) but my work laptop doesn't. You solution is nice and small -- and an easily-installed pet.

Just in case somebody else needs an audible warning, my one tweak (after installation) -- in case I'm not in front of my laptop when the battery gets low -- was to add an alarm. I found a nice WAV file of a siren ("siren.wav" - it has to be a WAV file for some reason), put it in /usr/audio, and edited the cbatt file in ~/Startup to read so:

Code: Select all

#!/bin/sh

cbatticon -l 5 -r 3 -c "aplay /usr/share/audio/siren.wav wmreboot"
Now it warns me visually at around 5%, then again at 3%, then soon I am audibly warned of an impending nuclear meltdown! Nice and annoying -- it grabs my attention. Image
[color=green]"God is love" - [url=https://www.esv.org/1+John+4/]I John 4:12[/url][/color]
ðŸ￾§ ðŸ￾§ ðŸ￾§ Rockin' on a 2007 IBM/Lenovo T60 Centrino Duo with 32-bit XenialPup 7.5! :D
(A/V Linux for live digital synth needs)

Post Reply