greshake / i3status-rust

Very resourcefriendly and feature-rich replacement for i3status, written in pure Rust
GNU General Public License v3.0
2.88k stars 475 forks source link

Battery mode + docking station. #212

Closed droslean closed 6 years ago

droslean commented 6 years ago

The battery is not changing in charging mode when using a docking station.

So current situation is that when you put a laptop in a docking station, the state does not change and it stacks in the same percentage without even increment the battery (because of charging).

droslean commented 6 years ago

There is a chance that the issue is related with i3 itself and not with i3status-rust bar. I am keep investigating.

atheriel commented 6 years ago

I'm having some difficulty understanding what you mean here. Can you perhaps provide a screenshot?

droslean commented 6 years ago

When you use docking station instead of a charger, the battery is not changing in "charging" mode.

atheriel commented 6 years ago

What does the file /sys/class/power_supply/BAT0/status contain when you are charging with a charger versus charging with a dock?

droslean commented 6 years ago

Seems the issue was that it was reading the wrong battery. I am closing the issue.