autohide-battery icon indicating copy to clipboard operation
autohide-battery copied to clipboard

Add option to hide battery on 'unknown' power state

Open piousdeer opened this issue 2 years ago • 2 comments

On my Lenovo Legion laptop, and probably on other Lenovo laptops, when battery conservation mode is enabled and the battery level reaches the threshold (which can be 58 to 60 %), /sys/class/power_supply/BAT0/status reports Unknown. It'd be great if this extension supported this to avoid having to manually change the maximum charging level from 100% to 58% and vice versa whenever the conservation mode is toggled.

piousdeer avatar Mar 08 '22 04:03 piousdeer

Can you send PR since I do not have this hardware for tests

ai avatar Mar 08 '22 05:03 ai

Apparently proxy.State reports charging even when the BAT0/status is unknown, so I'm not sure where to go with this. When battery level reaches 60%, proxy.TimeToFull is set to 0, but charging can be stopped before that, at 58 or 59 %. This probably needs to be adressed in UPower.

piousdeer avatar Mar 08 '22 06:03 piousdeer