Forum › Forums › Official Releases › antiX-19 “Marielle Franco, Hannie Schaft, Manolis Glezos, Grup Yorum, Wobblies” › Laptop AMD cpu – low battery warning
- This topic has 8 replies, 4 voices, and was last updated Nov 6-9:54 pm by blur13.
-
AuthorPosts
-
November 5, 2021 at 1:32 pm #70298Member
Wallon
Dear All,
Is there a program in antiX that can display a message saying that my laptop battery is below 20% for example?
I’ve already broken antiX by forgetting to plug in the power. I’m a bit tired of having to fix my antiX.
I don’t need a fancy program that puts the laptop in hibernation, that slows down all performance…
My microprocessor is an AMD Athlon 64 TK55 2 cores.
Note, I don’t want to invest in a new battery either. It’s not worth the cost for this old laptop.
Best regards,
Wallon- This topic was modified 1 year, 6 months ago by Wallon.
November 5, 2021 at 4:47 pm #70332ModeratorBobC
::Forum > Search had 47 results for low battery
Or see thread: https://www.antixforum.com/forums/topic/i-left-my-laptop-unplugged-and-fell-asleep/ for what I did. I also wrote a script to pop up an error message. PPC created something, too.
November 5, 2021 at 7:06 pm #70341Member
Wallon
::Dear BobC,
I had already done the research before opening a thread here on the forum because the results obtained do not answer my question.
Did you post your script in another language than English?
Best regards,
WallonNovember 5, 2021 at 7:34 pm #70343ModeratorBobC
::No, its in english:
November 6, 2021 at 11:28 am #70389Member
Xecure
::Wallon. Unfortunately there is no built-in tool inside antiX to do this (as of yet), only community scripts.
If non of them are exactly what you are looking for, you can also install a power manager to do this (one with a GUI).
One recommended previously by other forum members is xfce4-power-manager (fully translated, as far as I know).
sudo apt update && sudo apt install xfce4-power-managerYou add
xfce4-power-manager &to the startup file, restart the session, and it start automatically. The system tray icon will not be there (yet), but you can edit the settings to show it and also to configure the behavior for low battery state.
As I don’t know how it will appear translated in your menus, you can launch the configuration program for power settings with:
xfce4-power-manager-settings
In the “System” tab you can change the behavior of What to do on 10% battery capacity.

I will test it for a bit and let you know how it works.antiX Live system enthusiast.
General Live Boot Parameters for antiX.November 6, 2021 at 1:17 pm #70405Member
Wallon
::Dear Xecure,
Thank you for your intervention in this thread.
I had done some research and in the Ubuntu documentation it was explained that some programs were not compatible with an AMD CPU, others slowed down the hard drives.
The Ubuntu documentation did not mention xfc4-power-manager.Dear BobC,
Thank you for your patience. I’m sorry if I didn’t find your thread with the forum search function. I must admit that sometimes I can’t find my threads with the forum search function.
As I am an amateur in Linux, I did not understand all the explanations you gave in your thread with your script.
In particular, putting the script on your “PATH”. Well, I did some research with Google to understand where I should put this script. I couldn’t find anything that made sense to me. I only found the solution by using your zip file.So for simple users like me who want to use BobC’s nice script that works great;
1) Go to the Control Center and open the Conky file and add the 3 lines of the first BobC script.
2) Create a “lowbattery” file, copy the 2nd script and save the file in the /usr/local/bin directory. With Spacefm or Zzzfm, we make the file “executable”.
3) We have to save the error.wav file (which is in the BobC zip) in the /usr/share/sounds directory.It’s really magic now my laptop warns me when the battery is too low. I even translated the BobC script into French.
I have a question. Why isn’t there already this function in antiX which is designed to work on old laptops that no longer have a fresh battery?
This script is light and can be very useful. I suggest to put it in Transifex.
Thanks to all.
Best regards,
WallonNovember 6, 2021 at 3:37 pm #70413Member
Xecure
::xfce4-power-manager is worthless for this use case. It never sent me a notification that battery was less than 5%. Not recommending.
Well done figuring it out on your own, Wallon. BobC’s script is much better than what I originally proposed.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.November 6, 2021 at 6:27 pm #70432ModeratorBobC
::At the time I had an older laptop with an old battery that died pretty often. It was certainly good for testing.
The biggest negatives in an antiX environment were that it required running the conky to trigger it, and that the low battery percentage was hard coded in the conky. With some code changes it could also be run from cron, and a trigger value could be set in a configuration file. I think cron is usually running unless someone turns it off in services. It probably wouldn’t need a lot of translation. Maybe the translation from another program with a low battery alarm could be used.
November 6, 2021 at 9:54 pm #70445Member
blur13
::https://github.com/rjekker/i3-battery-popup
This has been mentioned in another thread and it works really well even if not using i3 wm. Just make sure to install the “wish” dependency so you get the actual pop-up window.
-
AuthorPosts
- You must be logged in to reply to this topic.