Closed StarrKiss closed 4 years ago
I'm sorry, I can't reproduce this. I am actually getting lower power consumption with the battery module. I think there are a lot of factors outside of polybar that influence power consumption more than polybar itself.
Is your power consumption consistently over one watt lower without the battery module over multiple tests?
The battery module doesn't actually do that much, so I'm not sure why it would affect battery usage that much. It generally polls the battery between 5 and 1.5 times per second. When polling it reads three files in /sys/class/power_supply
. Everything else it does are normal computations. It is possible that reading the files in /sys/class/power_supply
may trigger something in the battery but I couldn't imagine what that would be, especially since we are only reading.
Closing due to inactivity
Describe the issue
I am using Polybar on a thinkpad t480, and when I use the battery modules (2, one for the External battery, and one for the internal battery), I get 5-6 watts of battery usage (reported from powertop). However, when these are removed, the battery usage is 4.48. Why?
Expected behavior:
I expect that the battery module does not use up battery life.
Actual behavior:
It uses up considerably more battery
Was it working before? This has been continous as long as I have been using Polybar.
To Reproduce
A minimal but complete config with which the problem occurs:
Simply create any config on a laptop with two battery modules.
Polybar Log
Post everything polybar outputs to the terminal when you run it and the issue occurs below
Environment:
polybar -vvv
: