Slimbook-Team / slimbookbattery

Slimbook Battery 4
https://slimbook.es/en/tutoriales/aplicaciones-slimbook/398-slimbook-battery-3-application-for-optimize-battery-of-your-laptop
GNU General Public License v3.0
248 stars 18 forks source link

Two batteries (Thinkpad T580) #76

Open wujastyk opened 2 years ago

wujastyk commented 2 years ago

Is your feature request related to a problem? Please describe.

The Thinkpad T580 has two batteries: one internal and one removable (the usual kind). As far as I can see, slimbookbattery only addresses the internal battery.

Describe the solution you'd like

Slimbookbattery to recognize multiple batteries.

Thanks!

ehooo commented 2 years ago

Hello @wujastyk

This project use as backgroud TLP

I think you need install tp-smapi-dkms and acpi-call-dkms as is describe in the arch linux doc

vrossum commented 1 year ago

I confirm this on my T480. tlp is reporting it correctly (see below), but slimbookbattery is not.

tlp-stat -b --- TLP 1.5.0 --------------------------------------------

+++ Battery Care Plugin: thinkpad Supported features: charge thresholds, recalibration Driver usage:

+++ ThinkPad Battery Status: BAT0 (Main / Internal) /sys/class/power_supply/BAT0/manufacturer = SMP /sys/class/power_supply/BAT0/model_name = 01AV421 /sys/class/power_supply/BAT0/cycle_count = 953 /sys/class/power_supply/BAT0/energy_full_design = 24000 [mWh] /sys/class/power_supply/BAT0/energy_full = 20070 [mWh] /sys/class/power_supply/BAT0/energy_now = 15210 [mWh] /sys/class/power_supply/BAT0/power_now = 15749 [mW] /sys/class/power_supply/BAT0/status = Charging

/sys/class/power_supply/BAT0/charge_control_start_threshold = 0 [%] /sys/class/power_supply/BAT0/charge_control_end_threshold = 100 [%] /sys/class/power_supply/BAT0/charge_behaviour = [auto] inhibit-charge force-discharge

Charge = 75.8 [%] Capacity = 83.6 [%]

+++ ThinkPad Battery Status: BAT1 (Ultrabay / Slice / Replaceable) /sys/class/power_supply/BAT1/manufacturer = Celxpert /sys/class/power_supply/BAT1/model_name = 01AV424 /sys/class/power_supply/BAT1/cycle_count = 420 /sys/class/power_supply/BAT1/energy_full_design = 24050 [mWh] /sys/class/power_supply/BAT1/energy_full = 19370 [mWh] /sys/class/power_supply/BAT1/energy_now = 17340 [mWh] /sys/class/power_supply/BAT1/power_now = 0 [mW] /sys/class/power_supply/BAT1/status = Not charging

/sys/class/power_supply/BAT1/charge_control_start_threshold = 0 [%] /sys/class/power_supply/BAT1/charge_control_end_threshold = 100 [%] /sys/class/power_supply/BAT1/charge_behaviour = [auto] inhibit-charge force-discharge

Charge = 89.5 [%] Capacity = 80.5 [%]

+++ Charge total = 82.5 [%]

porteusconf commented 8 months ago

Work-around... you can use tlp-UI to individually control charge-levels of each of 2 batteries in lenovo laptops like X240. Conky can also show both bat0 and bat1 as well, as shown in screenshot. tlp-ui-bat0-and-bat1