UPS state reported as "fully-charged" when discharging, not running critical power action
My USB HID Eaton 3S UPS is reported as "fully-charged" even when discharging when disconnected from AC power.
This seemingly causes the critical power action not to be triggered at all, resulting in the machine not shutting down gracefully before the UPS runs out of battery.
Here, I disconnected the UPS from the AC power and logged events with upower --monitor-detail
. Despite having set the shutdown action to happen when there
is less than 25 minutes of battery left, the action was never triggered.
/etc/UPower/UPower.conf
:
[UPower]
CriticalPowerAction=PowerOff
EnableWattsUpPro=false
IgnoreLid=false
NoPollBatteries=false
PercentageAction=2
PercentageCritical=3
PercentageLow=10
TimeAction=1500
TimeCritical=1800
TimeLow=2100
UsePercentageForPolicy=false
Log:
❯ upower --version
UPower client version 0.99.11
UPower daemon version 0.99.11
❯ upower --monitor-detail
Monitoring activity from the power daemon. Press Ctrl+C to cancel.
[15:36:29.009] device changed: /org/freedesktop/UPower/devices/ups_hiddev0
native-path: /sys/devices/pci0000:00/0000:00:13.0/usb5/5-1/5-1:1.0/usbmisc/hiddev0
vendor: Eaton
model: Eaton 3S
serial: 000000000
power supply: yes
updated: 2021-09-25T15:36:29 CEST (0 seconds ago)
has history: yes
has statistics: yes
ups
present: yes
state: fully-charged
warning-level: none
time to empty: 28.5 minutes
percentage: 100%
icon-name: 'battery-full-charged-symbolic'
[...]
[15:55:29.037] device changed: /org/freedesktop/UPower/devices/ups_hiddev0
native-path: /sys/devices/pci0000:00/0000:00:13.0/usb5/5-1/5-1:1.0/usbmisc/hiddev0
vendor: Eaton
model: Eaton 3S
serial: 000000000
power supply: yes
updated: 2021-09-25T15:55:29 CEST (0 seconds ago)
has history: yes
has statistics: yes
ups
present: yes
state: fully-charged
warning-level: none
time to empty: 16.5 minutes
percentage: 47%
icon-name: 'battery-full-charged-symbolic'