Battery Low Warning

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
chronowerx
Ronin
Ronin
Posts: 2
Joined: 12 Aug 2020, 11:36
Distribution: Kiosk 5.0.0

Battery Low Warning

Post#1 by chronowerx » 13 Aug 2020, 13:37

Kiosk 5.0.0 - config file below.
I've added commands from [SOLVED] Battery Low: 0% Warning to my config file, and none of them seem to work.
I've now added all three, but the PC (Sumvision Mini PC) boots and reports "Battery low: 7%, please connect to a power source".
The PC is mains powered, no battery, and I can't find anything in the BIOS to fix it either.

I'm likely doing something stupid - could someone take a look please?

-------------------------
connection=wired
dhcp=yes
browser=chrome
import_certificates=http://<redacted>.cer
homepage=https://<redacted>
hostname=<redacted>
allow_icmp_protocol=yes
primary_keyboard_layout=gb
hide_mouse=yes
persistence=session
scheduled_action=Monday-23:30 Tuesday-23:30 Wednesday-23:30 Thursday-23:30 Friday-23:30 Saturday-23:30 Sunday-23:30 action:reboot
allow_popup_windows=yes
disable_private_mode=yes
right_mouse_click=yes
search_engine=duckduckgo
shutdown_menu=reboot
timezone=Europe/London
wallpaper=<redacted>.jpg
zRAM=50%
additional_components=uefi.zip
run_command=kill $(ps | grep battery_polling | tr -s ' ' | sed -e 's/^ //g' | cut -d' ' -f1)
run_command=kill $(ps | grep battery_polling | tr -s ' ' | sed -e 's/^ //g' | cut -d' ' -f1); dunstify -C 333
run_command=pkill -f battery_polling; dunstify -C 333
browser_preferences=http://<redacted>/chrome-policies.txt

User avatar
fanthom
Site Admin
Site Admin
Posts: 5318
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Battery Low Warning

Post#2 by fanthom » 13 Aug 2020, 14:14

Hello chronowerx,

1) Please post in the kiosk section of the forum only.

2) You cant double parameters in the kiosk config. Please use just this one and remove other 'run_command=' parameters:

Code: Select all

run_command=pkill -f battery_polling; dunstify -C 333
Thanks
Please add [Solved] to your thread title if the solution was found.

Post Reply