[SOLVED] Battery Low: 0% Warning
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
[SOLVED] Battery Low: 0% Warning
G'day All,
Just installed Porteus Kiosk (4.8.0) on one of our Intel NUC machines and am getting a Battery low: 0%, please connect to a power source.
All good and well ... except these units do not run of battery so the system has obviously detected it as a latop.
Does anyone know if there is any way to disable these warnings?
Thanks
Fry
Just installed Porteus Kiosk (4.8.0) on one of our Intel NUC machines and am getting a Battery low: 0%, please connect to a power source.
All good and well ... except these units do not run of battery so the system has obviously detected it as a latop.
Does anyone know if there is any way to disable these warnings?
Thanks
Fry
Last edited by Fry on 19 Mar 2019, 23:03, edited 3 times in total.
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Battery Low: 0% Warning
Hello Fry,
Please try this parameter which should kill the battery check process:
Please try this parameter which should kill the battery check process:
Code: Select all
run_command=killall battery_polling
Please add [Solved] to your thread title if the solution was found.
Battery Low: 0% Warning
G'day Fanthom,
No dice I'm afraid it still keeps on showing.
I connected to the console and ran the command manually and received a No Processed Killed response
Perhapse the service has a different name now? I'm not great with linux so I've got no idea here.
Thanks
Fry
No dice I'm afraid it still keeps on showing.
I connected to the console and ran the command manually and received a No Processed Killed response
Perhapse the service has a different name now? I'm not great with linux so I've got no idea here.
Thanks
Fry
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Battery Low: 0% Warning
This scrips is not executable and runs through the shell interpreter (shell is the process).
This one should do:
This one should do:
Code: Select all
kill -9 $(ps | grep battery_polling | tr -s ' ' | sed -e 's/^ //g' | cut -d' ' -f1)
Please add [Solved] to your thread title if the solution was found.
Battery Low: 0% Warning
G'day,
Thanks again for your response. Unfortunately this also does not seem to be working.
Perhaps we are talking about different things. This is the battery warning I am getting:

I have also added the following line to my config file:
run_command=kill -9 $(ps | grep battery_polling | tr -s ' ' | sed -e 's/^ //g' | cut -d' ' -f1)
I should probably add that this previously read:
run_command=killall battery_polling
All other items in the config file are working.
Is there something here that I'm missing?
Thanks
Thanks again for your response. Unfortunately this also does not seem to be working.
Perhaps we are talking about different things. This is the battery warning I am getting:

I have also added the following line to my config file:
run_command=kill -9 $(ps | grep battery_polling | tr -s ' ' | sed -e 's/^ //g' | cut -d' ' -f1)
I should probably add that this previously read:
run_command=killall battery_polling
All other items in the config file are working.
Is there something here that I'm missing?
Thanks
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Battery Low: 0% Warning
It works for me.
Please login to your kiosk over SSH and show me an output of following command:
Please login to your kiosk over SSH and show me an output of following command:
Code: Select all
ps | grep battery_polling
Please add [Solved] to your thread title if the solution was found.
Battery Low: 0% Warning
Result:
Code: Select all
10010 root 0:00 grep battery_polling
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Battery Low: 0% Warning
That means the 'battery_polling' process is properly killed by your 'run_command=' parameter (grep process does not count).
You should not receive the 'low battery' notification anymore.
If this is not the case then please contact with [email protected] and i'll ask you for associating your kiosk with my PK Server so i could debug this problem over SSH and VNC.
Thanks
You should not receive the 'low battery' notification anymore.
If this is not the case then please contact with [email protected] and i'll ask you for associating your kiosk with my PK Server so i could debug this problem over SSH and VNC.
Thanks
Please add [Solved] to your thread title if the solution was found.
Battery Low: 0% Warning
G'day,
After some further investigations this morning building on what you have suggested I managed to work out my failings and get a solution:
The battery polling can be terminated with your kill command:
The reason I didn't think it was working is because notification remained on the screen. Clicking on the notification would clear it but as this machine is used for Digital Signage it has not input devices.
I took a look at the battery_polling script and noticed it was calling dunstify to create the notification and was wonderfully programmed with a ID which I could target to close.
The resulting run command is used to disable the battery_polling script and close the notification:
Thank you so much for your support with this.
On a side note, I did play around with using the following code:
This achieves the same task but as mentioned my Linux skills are next to none so I'm wondering if there is any benefit to either solution?
Thanks again
Fry
After some further investigations this morning building on what you have suggested I managed to work out my failings and get a solution:
The battery polling can be terminated with your kill command:
Code: Select all
run_command=kill $(ps | grep battery_polling | tr -s ' ' | sed -e 's/^ //g' | cut -d' ' -f1)
I took a look at the battery_polling script and noticed it was calling dunstify to create the notification and was wonderfully programmed with a ID which I could target to close.
The resulting run command is used to disable the battery_polling script and close the notification:
Code: Select all
run_command=kill $(ps | grep battery_polling | tr -s ' ' | sed -e 's/^ //g' | cut -d' ' -f1); dunstify -C 333
On a side note, I did play around with using the following code:
Code: Select all
pkill -f battery_polling; dunstify -C 333
Thanks again
Fry
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
SOLVED: Battery Low: 0% Warning
Both commands do the same but 'pkill' is easier to understand.
Thanks for sharing.
Thanks for sharing.
Please add [Solved] to your thread title if the solution was found.