Page 1 of 1

tp_smapi and battery charging thresholds question

Posted: Thu Apr 26, 2012 5:14 pm
by slangeditorial
Hi everyone,

I am currently running crunchbang 10 statler, and I am trying to get the battery charging thresholds to work. I have the package tp-smapi-dkms installed and sysfs utils installed. my question is: do I need to modprobe tp_smapi everytime I boot my machine?

In my sysfs.conf, I have copied what is on the thinkwiki page, but those directories don't show up unless I modprobe tp_smapi. unfortunately it doesn't remember after reboot.
here's what is in sysfs.conf

# cat >> /etc/sysfs.conf << EOF (what does this mean? should i uncomment this?)
# For a LiIon battery in a Thinkpad
devices/platform/smapi/BAT0/start_charge_thresh = 50
devices/platform/smapi/BAT0/stop_charge_thresh = 80
EOF

Crunchbang has an autostart script (similar to rc local and sysfsutils) but having to input my sudo password everytime to modprobe tp_smapi is tedious. please let me know what you think!

Odp: tp_smapi and battery charging thresholds question

Posted: Mon Apr 30, 2012 1:03 am
by thorcik
Can't you put it in rc.conf in modules part? I did it on arch, worked fine.

Re: tp_smapi and battery charging thresholds question

Posted: Mon Nov 19, 2012 9:41 am
by indigo196
Will tp_smapi work on W520s and T530s?

Re: Odp: tp_smapi and battery charging thresholds question

Posted: Wed Feb 06, 2013 12:58 pm
by ThinkRob
thorcik wrote:Can't you put it in rc.conf in modules part? I did it on arch, worked fine.
No, because he's not using Arch.

To the OP:

You want to add tp_smapi to your modules list (/etc/modules on Debian derivatives)

You also will want to pay closer attention to what you're supposed to put into config files, since I'm pretty sure that the commands weren't supposed to go into /etc/sysfs.conf themselves. ;)