linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.55k stars 740 forks source link

UPS wrong low battery level even though it's full #12361

Open AK220011 opened 2 months ago

AK220011 commented 2 months ago

Distribution

LMDE 6 Faye

Package version

6.2.9

Graphics hardware in use

AMD RX6600

Frequency

Only occasionally

Bug description

Randomly when using the system a notification showed up that the power level is low (I have connected an APC Back-UPS via USB) even though the power was at full, which sent my system into hibernation however when clicking a key to boot the system back up the login screen for inputing the password was frozen and after about 30 seconds of it being frozen the system shut down and restarted itself. After the restart the battery was showing back at 100% in LMDE it was showing as "Fully Charged". Before this event the battery was shown as fully charged, this even happened during watching a show using Celluloid.

Steps to reproduce

Cannot reproduce it since it happened randomly after 3 days of using LMDE.

Expected behavior

Wrong battery power, which forces the system to go into hibernation should not happen.

Additional information

I have other high power devices on the UPS that did not shut down or show any problems during this event, it only happened to the Mint system, the UPS did not display any warning of it going into battery mode or being low powered.

ygerlach commented 1 month ago

AFAIK ups battery levels are provided by gnome-settings-deamon's power plugin: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/blob/master/plugins/power/gsd-power-manager.c

One idea might be to observe the dbus objects, that contain the ups battery information. Inspecting the logs of the gnome settings daemon in the time of such event might also shine some light.