site  contact  subhomenews

Improve low-battery warning

August 27, 2026 — BarryK

Easy 7.4.7 has powerapplet_tray version 3.1, which added a beep when battery discharges below 10%, repeated every 15 seconds (and only when discharging, not on charge).

One of the tester guys commented that it wasn't very noticeable, and unfortunately I also discovered the same. Running the laptop in my tent, it wasn't on charge, and I did hear the beep, but didn't connect that with the battery being low. The tray icon also flashes, but I didn't notice that either. Then the laptop suddenly died.

I have bumped powerapplet_tray to version 3.2, and this time it calls an external script, /usr/sbin/bat-low-warn, every 15 seconds:

#!/bin/ash
#20260827 /root/Startup/powerapplet_tray will call this every 15 seconds
#when battery below 10%.

export TEXTDOMAIN=bat-low-warn
export OUTPUT_CHARSET=UTF-8

paplay /usr/share/audio/error.wav

M0="$(gettext 'WARNING LOW BATTERY')"
popup "background=#ffa0a0 terminate=5 timecount=dn name=batlow|<big><big><b>${M0} </b></big></big>"

sleep 1
paplay /usr/share/audio/error.wav
###end###

...that should get our attention!    

Tags: easy