Today, after upgrading to new kernel 5.19.4-200, in Fedora 36. Power indicator can no longer recognize if my machine is charging or not.
I tried to troubleshoot on my end, and see if the hardware (Huawei d15, Intel(R) Core™ i5-10210U CPU @ 1.60GHz) was the problem, however, it appears not.
So far; i tried;
testing battery charging in windows 10 (my machine is in dualboot)
switching kernel to 5.18.19-200.fc36.x86_64, power indicator can recognize if i charge my machine or just using battery
Once the battery is fully charged, it pauses charging until it’s drained a while. The battery indicator in this case won’t show the charging icon. While it can be confusing to expect the icon to change in this state, this backing off on recharge cycles when a battery is full/near full can significantly improve the longevity of a battery.
If you want to get the exact state, it’s a bit gnarly:
dbus-send --print-reply=literal --system --dest=org.freedesktop.UPower /org/freedesktop/UPower/devices/battery_BAT0 org.freedesktop.DBus.Properties.Get string:org.freedesktop.UPower.Device string:State will return a number that maps to one of these values: