-
Notifications
You must be signed in to change notification settings - Fork 13
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
T420 battery threshold doesn't work #3
Comments
This is essentially a duplicate of http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628829 |
No it's not. |
Would you please try? :) |
OK I tried: Request IO permissions. |
I have a T420s with the same problem. Is there a way to get the addresses needed for setting/getting the thresholds from the Lenovo Windows utility? |
reverse engeneer it :) |
hello! |
it requires that you install acpi_call kernel module |
[root@veyron2 acpi_call-git]# perl /tmp/tpacpi-bat.pl startChargeThreshold 0 40 Does that mean it worked? I am on a T420. |
damn that was fast. it means that the ACPI interface responded with a 0, which is a very good sign but not a perfect confirmation. |
[root@veyron2 acpi_call-git]# perl /tmp/tpacpi-bat.pl forceDischarge 1 1 Looks good. |
so then, yes, it means its working. im a little confused, though, about why tee isnt printing the backslash. teleshoes:~/tpbattstat-applet$ sudo ./tpacpi-bat forceDischarge 1 1 |
Let me link http://www.thinkwiki.org/wiki/Maintenance#Battery_treatment this for people coming around later. You want approx 30-85 for your discharge thresholds. |
teleshoes, what backslash, your output looks totally the same as mine? |
oh, whoops, nevermind, its the github markup |
very cool teleshoes! |
that tentatively appears to be the case. does the x201s have a crippled SMAPI interface like the t420/w520/etc? |
nope, x201s smapi works just fine (tm) with all features. |
teleshoes script works nice on my x220 too. is it possible to implement the acpi calls as fallback/workaround into tp_smapi or could somebody help me understand what exactly the problem is with the start_threshold/force_discharge? it seems they just changed the address, so checking all addresses for a known threshold should not be that difficult (although i failed ...) or is it? @teleshoes: a nice makefile would be appreciated, since packaging is quite difficult this way. |
@schuschu {long list of things, so ill number them to make responding easier}
|
Thanks for your detailed response! regarding 2&3) I would appreciate it if you could submit a patch for thinkpad_acpi. Could you please tell me how you fixed our leds since I cant get my speaker/mic led to work (it got even worse since i changed acpi_osi="Linux", now i can't even mute the sounds for standby/resume etc. anymore). Since Lenovo broke the interface for newer models (Sandy Brindge and possibly breaks it even more for later models), would it be possible to get all the values which are currently read from ec via acpi or would you still use them together? As for 4&5) Thanks for the info, I didn't look much into your code, so I wasn't sure it would work as standalone application. |
er, this isnt really the place for LED discussions, but im not very good at not hijacking. heres the diff {emailed along with the version i patched against}. it is NOT particularly ready for use. it simply adds a mute_mic LED and marks all LEDs as 'safe'. i plan on figuring out exactly which ones should be exposed sometime, and making this more reasonable.
oh snap, i just realized you want the mute buttons to control their own LEDs. i have scripts attached to those buttons which call pulse and set the LED as i like. the important thing is that you can make the LEDs do whatever you like now... |
tpacpi-bat can easily be used on its own, but i dont feel like having it in two repositories, so i stuck it in tpbattstat-applet. tpbattstat-applet manages tpsmapi nicely, for me and a coupla other folks. it doesnt do thresholds, but it does do balancing. it also now features LED controls for, e.g.: making the battery LED flash to let you know its charging. |
Hello, |
yay, youre welcome! it seems permanent to me on my W520 {i set it once a week ago and its still set}, but i have not extensively tested. |
tpsmapi shouldnt be able to affect what you did in tpacpi-bat because the interface for all four things tpacpi-bat does is broken in smapi, at least for me. this is what happens for me in my W520 in tpsmapi writing: reading: |
@chx |
Needs some fiddling with the thresholds but no, I am able to charge to 100% now. |
ok cool. i too have some difficulties, particularly when it comes to trying to influence priority when charging my slice battery; if i inhibit charge on one of them when that one is below 80, it refuses to charge even if the one i want is really low; and so neither battery charges. not too certain the exact conditions. though, but something about it smacks of bugginess. |
For your convenience I just integrated tpacpi-bat into my tool TLP (0.3.7): http://linrunner.de/tlp |
Just FYI The startChargeThresh works in 3.6 kernel, and stopped functioning in 3.7.4 I mean, now reading /sys/devices/platform/smapi/BAT0/start_charge_thresh will get me an error "No such device or address" |
I'm running x220 4290JY1, Arch |
@CaledoniaProject: start_charge_thresh "No such device or address" is the normal behavior for tp-smapi on your hardware. tpacpi-bat w/ acpi_call kernel module works fine on the X220 with kernel 3.7 or 3.8 (Ubuntu 13.04) -> recheck your installation. |
Ah, that does work! Confirmed working on X220. The smapi kernel module doesn't. |
Just for the history record, tpacpi-bat works excellent for ThinkPad t431s, though tp-smapi doesn't seem to be alive on this machine. Thank you! |
The text was updated successfully, but these errors were encountered: