|Several years ago I use Arch + LXDE on my netbook. I always hated that a "low battery" alert did not appear to alert me when the computer was about to discharge completely. Finally, today I decided to fix it.|
I always used the battery status indicator in the LXDE taskbar.
To add it, just right click on the taskbar, Add / Remove panel elements. Once the Preferences Panel > Add > Battery monitor.
The new battery monitor will appear on our taskbar. We right click on the icon and select the option Monitor Settings Drums.
En Alarm command we can specify the command to execute when the X amount of minutes is missing (determined in Alarm Time - Minutes Remaining) before the battery runs out.
We entered Alarm command something similar to the following:
/usr/lib/notification-daemon-1.0/notification-daemon & notify-send 'Low Battery' 'Only 5 minutes of battery left' -i / usr / share / icons / lubuntu / panel / 24 / xfpm-primary-000 .svg
A simple notify-send should have been enough, but in my case I had to add the previous execution of the notification-daemon for it to work properly.
Needless to say, it is possible to modify the message and the icon to suit everyone.
7 comments, leave yours
Hello, I use ubuntu and I have the problem that when it shows me the alert (without any sound) it barely gives me a few minutes to run through my charger, can I get it to notify me before? And also that minimum makes me a sound to catch it I know that it is not a forum for problems but if they had a solution there, I would fall in love!
It is better if you add this command before:
espeak -see? Connect, the, charger, that, you, run out, battery
Haha! I liked. 🙂
Hello!! I love your blog I would like to affiliate it on my websites of PROGRAMS FOR WINDOWS and you link to mine,
If you agree, answer me with a message to firstname.lastname@example.org
Thanks for the offer but I don't usually do link exchange.
fdpowermon alerts you when you have 20 and 10% charge left.
is the battery indicator of this post
although I do not know if there is for arch, most likely it is.
Hello, I have a big problem, with that application ... because it is not capable of measuring the remaining time ... like the acpi command, it does not deliver the remaining time.
Any suggestion? THANKS