-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong START and STOP threshold reads on some laptops #37
Comments
known affected models:
to test if this is true on your laptop+BIOS, run: tpacpi-bat -s ST 1 60 if both "-g"s print the SAME number instead of 60 and 80, your laptop is affected. |
Also affected: ThinkPad Edge E520 EDIT: Actually, the bug seems to be a bit different on E520. Only the ST setting seems to change the output of both ST and SP while changing SP leaves the output of both unchanged. |
X131e also seems to be affected. I have not checked yet whether the charge behaviour is correct and only the output of (maybe unrelated but tp-smapi also only has a stop threshold here) $ cat /sys/devices/platform/smapi/BAT0/stop_charge_thresh
80
$ cat /sys/devices/platform/smapi/BAT0/start_charge_thresh
cat: /sys/devices/platform/smapi/BAT0/start_charge_thresh: Operation not supported |
S440 is also affected. |
L540 seems also affected, however I didn't check yet if the charge behaviour itself is correct. |
Could be the case on Lenovo Yoga 15 as well. I get "218 (unknown)" on both ST and SP. Does match with the wrong values from the other models that you have mentioned? |
Lenovo Ideapad Z500... This is so messed up! I will have to end up installing Windows just to get this battery setting working! Unbelievable! My battery is stuck at 59% on Linux Mint 17. Error: AE_NOT_FOUND for ASL base: _SB.PCI0.LPCB.HKEY |
ideapads dont have this interface at all. which sucks, because afaik, no one has found a way to control the batteries on linux at all for ideapads. (could be wrong about that, i dont have an ideapad) as for getting it unstuck, you can get windows 8 on a thumbdrive, boot from it, unset the thresholds, then burn the USB stick as it will be forever tainted. note however, THIS bug (which you do not have because you dont have a thinkpad) occurs only on select thinkpads, and affects only the output of |
you could also try restting the CMOS to see if it clears your threshold. (remove laptop battery, unplug the AC, and hold the power button down for 30s, then press it again briefly 10 times, then hold it down for 30s) |
Would be nice to try to run the Lenovo Energy Management under Wine! http://support.lenovo.com/gb/en/downloads/ds037135 Even dough I don't like to een have Wine installed. But I think is a easy path to try. |
Is there anything new regarding this issue? When I set ST and SP, the same threshold is shown with -g, and I the battery gets stuck in the stop threshold (thinkpad 13, using a fork that has the acpi path hardcoded) |
@alexpeits the bug concerns ONLY the output of as for fixing this bug (the display of the |
@teleshoes thanks for the answer. The weird thing that happens is that the battery gets charged up to the stop threshold, and then just stays there. tlp reports unknown status and enabled battery thresholds. I guess it is just my thinkpad model (TP 13 is actually S2, which is closer to a yoga pad). |
heh, that is exactly what the stop threshold means. i dont know what you think its supposed to do... |
So if the percentage stays at this value, it is safe to just leave the AC connected (which means that the battery is not used at this point, and the laptop operates from AC)? (sorry for the off-topic) |
yup, thats the point of the thresholds. if you leave your laptop plugged in all the time, your battery will last an extra year or so if you leave it at 80% instead of 100%. (when youre going to travel or whatever, just remove the threshold and charge it up to 100%). |
Please tell us that path. How did you find it? |
this is the fork I am using. The maintainer told me in a reddit discussion that the auto discovery is not working, but setting |
@alexpeits interesting, i didnt know the autodetect was broken for some folks. |
No problem, here it is:
|
I recently purchased a Thinkpad E470 and this week I installed and configured tpacpi-bat. In my case, if the output of the first issue of '-g' is wrong, the output of the successive issues of the same command is correct. If the parameters of '-g' are changed, the problem repeats: the first output is wrong, and the successive ones are correct.
The first output is wrong:
But the following outputs are correct:
When the -g parameters are changed, the output is once again mixed up:
But it is correct afterwards:
Some information from dmidecode.
|
this bug concerns ONLY the output of "tpacpi-bat -g ST" and "tpacpi-bat -g SP". setting thresholds and the actual charging behaviour work properly.
on the affected laptops, the thresholds are set correctly and are honored, but they are reported incorrectly by the BIOS. {the last call to -s either ST or SP is reported for both -g}
as the bug is actually in the BIOS, there is no known workaround.
The text was updated successfully, but these errors were encountered: