Since upgrading from Ubuntu 22.04 to 22.10 a few days ago, the battery indicator doesn't work any more. It's stuck in whatever state it had at startup. Also, there's no warning message any more when the battery is getting low. (I've found that someone had the same problem years ago but they got no answer [link].)
I've reinstalled gnome-power-manager
but that hasn't made any difference. I've also checked the battery level with upower -i /org/freedesktop/UPower/devices/battery_BAT1
and it seems to have the same issue as the battery indicator: it says the battery percentage is 99% even though that can't be true because the laptop has been unplugged for a while.
My computer is an ASUS TUF Gaming A15 (FA506II), if that's relevant.
Edit: I managed to solve the problem with the fix proposed by popey below. To blacklist asus-ec-sensors
, I created the file /etc/modprobe.d/asus.conf
and added the line blacklist asus-ec-sensors
. (I hope that's the right way to do this.) After rebooting, the battery indicator is working again. Also, I found some more discussion of this topic here which might be interesting to some people.