You are not logged in.

#1 2012-11-22 23:19:41

makhoma
Member
From: South Carolina, US
Registered: 2012-11-22
Posts: 2

[somewhat solved] Charging thresholds with tp_smapi issue

I installed the latest Arch linux on my Thinkpad Edge e420 without any issues (so Ubuntu did teach me something the last ~5 years) and was following the tp_smapi wiki how-to on changing the battery charging thresholds when I found that when I set either one (either start or stop), it would change the other to being one less or one more:

[root@arch josh]# echo 80 > /sys/devices/platform/smapi/BAT0/stop_charge_thresh 
[root@arch josh]# cat /sys/devices/platform/smapi/BAT0/stop_charge_thresh 
80
[root@arch josh]# cat /sys/devices/platform/smapi/BAT0/start_charge_thresh 
81
[root@arch josh]# echo 40 > /sys/devices/platform/smapi/BAT0/start_charge_thresh 
[root@arch josh]# cat /sys/devices/platform/smapi/BAT0/start_charge_thresh 
40
[root@arch josh]# cat /sys/devices/platform/smapi/BAT0/stop_charge_thresh 
39

And this happens for whatever number I chose for `start_charge_thresh` or `stop_charge_thresh`. Running `lsmod`, I see that `tp_smapi` and `thinkpad_ec` are both installed and running,

josh@arch~ # lsmod
...
tp_smapi               20660  0 
thinkpad_ec             4253  1 tp_smapi
...

Any suggestions? Or needed extra information?

Last edited by makhoma (2012-11-23 18:58:06)

Offline

#2 2012-11-23 18:55:27

makhoma
Member
From: South Carolina, US
Registered: 2012-11-22
Posts: 2

Re: [somewhat solved] Charging thresholds with tp_smapi issue

Despite having the start/stop_charging_threshold set as 40/39 as in the above example, my battery charges to 80% and then stops (I've done this three separate times, leaving it plugged in with enough time to charge it 100%, and each time it stopped at 80). Another one of those Linux quirks, I guess.

Offline

Board footer

Powered by FluxBB