Multiple batteries are not correctly represented
pedrocr opened this issue · 2 comments
pedrocr commented
My laptop has two batteries. The controller apparently (stupidly) discharges the first battery and then the second. Right now the first is at 5% and the second at 94%. i3status
correctly calculates that the laptop has 46% battery left. wldash
seems to just be displaying the 5% of the first battery.
LiHRaM commented
This is because the device i3status uses is DisplayDevice
, whereas wldash uses BAT0
. I'll submit a PR for this. :)
Am interested to know though, does upower not show DisplayDevice
on a laptop with only one battery? Can anyone test this? (upower --enumerate
, look for DisplayDevice
.)
kennylevinsen commented
DisplayDevice is always there.