You are not logged in.
Hi all,
has anyone successfully running tpacpi-bat on T540p?
I was trying to use tp_smapi at first, but dmesg says that this device is not supported, so I tried tpacpi-bat (git version from AUR). With this module I'm able to set the thresholds for battery but the charging is insanely slow. (That's making this similar to this topic. But I'm on different device, use different module and dmesg is not showing nothing helpful..)
For power management I use tlp. And when I run
# tlp fullcharge
everything works again. Charging fast as usual. Even with tpacpi-bat installed. That probably means tpacpi-bat is setting threshold correctly. But when it has different values then default it refuses to charge battery...
Any suggestions? Advices appreciated
Last edited by Tumi (2014-04-25 08:26:57)
Offline
...
I tried tpacpi-bat (git version from AUR). With this module ...
The tpacpi-bat package does not provide any modules, it contains only a script. You can see this with: $ pacman -Ql tpacpi-bat
The kernel module you need is provided by acpi_call-git from AUR. Have you compiled the acpi_call module for the current kernel?
Offline
Yes I have. I have installed acpi_call-git and compiled on current kernel.
Offline
I just found that in '# tlp-stat' output I have this when tpacpi-bat is enabled:
+++ ThinkPad Battery Status (Main)
/sys/class/power_supply/BAT0/manufacturer = SANYO
/sys/class/power_supply/BAT0/model_name = 45N1145
/sys/class/power_supply/BAT0/cycle_count = (not supported)
/sys/class/power_supply/BAT0/energy_full_design = 56160 [mWh]
/sys/class/power_supply/BAT0/energy_full = 56480 [mWh]
/sys/class/power_supply/BAT0/energy_now = 26100 [mWh]
/sys/class/power_supply/BAT0/power_now = 0 [mW]
/sys/class/power_supply/BAT0/status = Unknown
tpacpi-bat.BAT0.startThreshold = 40 [%]
tpacpi-bat.BAT0.stopThreshold = 80 [%]
tpacpi-bat.BAT0.forceDischarge = 0
And this when it has the default settings:
+++ ThinkPad Battery Status (Main)
/sys/class/power_supply/BAT0/manufacturer = SANYO
/sys/class/power_supply/BAT0/model_name = 45N1145
/sys/class/power_supply/BAT0/cycle_count = (not supported)
/sys/class/power_supply/BAT0/energy_full_design = 56160 [mWh]
/sys/class/power_supply/BAT0/energy_full = 56480 [mWh]
/sys/class/power_supply/BAT0/energy_now = 26140 [mWh]
/sys/class/power_supply/BAT0/power_now = 28389 [mW]
/sys/class/power_supply/BAT0/status = Charging
tpacpi-bat.BAT0.startThreshold = 96 [%]
tpacpi-bat.BAT0.stopThreshold = 100 [%]
tpacpi-bat.BAT0.forceDischarge = 0
Check the status and power_now value.. It's not detecting the battery correctly or what does it mean?
Last edited by Tumi (2014-04-24 22:58:42)
Offline
I don't think your charging is "insanely slow". It's just that 26,1 of 56,2 Wh = 46% is above the lower charging threshold of 40%, so it doesn't charge at all (works as designed). See the explanations here -> http://linrunner.de/en/tlp/docs/tlp-con … thresholds
You may remove the tpacpi-bat package because TLP brings it's own tpacpi-bat; only the acpi-call package is needed -> https://wiki.archlinux.org/index.php/TLP
Thresholds are either set permanently in the configuration (see link above) or temporarily with tlp setcharge -> http://linrunner.de/en/tlp/docs/tlp-lin … thresholds
ps. "status = Unknown" just means charging stopped because of thresholds (the kernel acpi code doesn't know about thresholds)
Last edited by linrunner (2014-04-25 07:42:39)
Offline
Oh! I removed tpacpi-bat now, set thresholds in tlp config and now everything seems fine. Thank you, I was really confused by that behavior...
Thanks a lot! I owe you a beer!
Regards, Tumi
Offline
Fine.
Thanks a lot! I owe you a beer!
You're welcome!
Offline