Open adippl opened 2 years ago
I get the same issue on a ThinkPad X1 Nano:
$ cat /sys/class/power_supply/BAT0/status
Not charging
My other devices seem to only use the unknown
status.
Would appreciate a bugfix for this.
I currently have i3status installed on 3 lenovo laptops: x270, T550, T480
All 3 laptops use Not charging
state.
Example with dual batteries:
$ grep -n "" /sys/class/power_supply/BAT*/status
/sys/class/power_supply/BAT0/status:1:Not charging
/sys/class/power_supply/BAT1/status:1:Charging
Some time ago I run into this, too, and created #486. It adds another status and prints 'IDLE' when a battery is reported as "Not charging" by the driver. I've just rebased it to current main. If you like you could give it a try.
At some point i3status on my computer stopped correctly displaying battery status while battery is idle. It is a really annoying bug. I'm using gentoo linux.
I've looked into the code and discovered that i3status treats
Discharging
andNot charging
states the same way. Could you please considering merging this small patch to fix it? This is small change causes i3status to displaystatus_unk
string when battery state is detected asNot charging