gistart / tp_wattmeter

Gnome shell extension -- shows battery power consumption of ThinkPad laptops
GNU General Public License v3.0
10 stars 8 forks source link

Display correct results with multiple batteries #4

Open atleta opened 4 years ago

atleta commented 4 years ago

Some Thinkpads (up to T480) have two batteries. E.g. in my T450 the internal battery is BAT0 and the external/replaceable is BAT1. The system always discharges the external first (and while doing so, the power reported by the internal BAT0 will be 0).

One easy way to go around this is taking the maximum power of BAT1 and BAT0 and displaying that. (Or the sum of the two, just in case. )

Yves911 commented 4 years ago

Same here with a T470, internal battery is BAT0, external one is BAT1 Thing is i have only an external battery so only BAT1

gabrielb1804 commented 2 years ago

I know this thread is couple years old, but I recently started trying to use this extension, but my t480 has 2 batteries so it didn't work. Well, I was able to change the extension file for it to work. I'm not sure if I did it in the best way but it works well. It should also "just work". I will try to make a pull request with it.