How to activate a "low battery" alert in LXDE

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.

Leave a Comment

Your email address will not be published. Required fields are marked with *



  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   pako said

    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!

  2.   monitolinux said

    It is better if you add this command before:
    espeak -see? Connect, the, charger, that, you, run out, battery

  3.   Let's use Linux said

    Haha! I liked. 🙂

  4.   Emilia mejia said

    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

    kisses !!

  5.   Let's use Linux said

    Thanks for the offer but I don't usually do link exchange.
    Cheers! Paul.

  6.   merlin the debianite said

    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.


  7.   Ivan Edward said

    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