thinkpads.com Support Community Forum Index Bill Morrow's thinkpads.com Open Forum - The Original Thinkpad Support Forum
Follow ThinkpadsForum on Twitter
eCoupons
Save with Lenovo ThinkPad eCoupons
Exclusive 4% CASH BACK from eCoupons.com
Support this forum, shop at newmodeus.com
 
It is currently Fri May 24, 2013 4:53 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: tp_smapi and battery charging thresholds question
PostPosted: Thu Apr 26, 2012 5:14 pm 
Offline
Freshman Member

Joined: Tue Mar 15, 2011 5:49 pm
Posts: 51
Location: Santa Monica, California
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!

_________________
my gems.... all thanks to the advice of my temporarily displaced CALI homeboy, 91011

Me: X201s
Mom: T60p
Dad: X31


Top
 Profile  
 
 Post subject: Odp: tp_smapi and battery charging thresholds question
PostPosted: Mon Apr 30, 2012 1:03 am 
Offline

Joined: Tue Apr 10, 2012 4:10 pm
Posts: 40
Location: Warsaw, PL
Can't you put it in rc.conf in modules part? I did it on arch, worked fine.

_________________
T60/T61 2637-AB6/8895-W4M, UXGA, T9300, 8GB RAM, Vertex3, Intel WiFi Link 5100
R61 7649-W1Z, T7250, Intel 4965


Top
 Profile  
 
 Post subject: Re: tp_smapi and battery charging thresholds question
PostPosted: Mon Nov 19, 2012 9:41 am 
Offline

Joined: Sun Nov 18, 2012 11:30 pm
Posts: 3
Location: Rochester, NY
Will tp_smapi work on W520s and T530s?


Top
 Profile  
 
 Post subject: Re: Odp: tp_smapi and battery charging thresholds question
PostPosted: Wed Feb 06, 2013 12:58 pm 
Offline
Senior ThinkPadder
Senior ThinkPadder

Joined: Wed May 20, 2009 9:54 am
Posts: 2316
Location: near RTP, NC
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. ;)

_________________
Need help with Linux or FreeBSD? Catch me on IRC: I'm ThinkRob on FreeNode and EFnet.
Code:
Current laptop: Lenovo ThinkPad T420 (running Debian Wheezy) - kestrel [pending retirement]
Current workstation: IBM Intellistation 9228 (running FreeBSD 9.1) - blackbird


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group