tp_smapi and battery charging thresholds question

Solaris, RedHat, FreeBSD and the like
Post Reply
Message
Author
slangeditorial
Freshman Member
Posts: 61
Joined: Tue Mar 15, 2011 5:49 pm
Location: Santa Monica, CA/Miami, FL

tp_smapi and battery charging thresholds question

#1 Post by slangeditorial » Thu Apr 26, 2012 5:14 pm

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

thorcik
Posts: 40
Joined: Tue Apr 10, 2012 4:10 pm
Location: Warsaw, PL

Odp: tp_smapi and battery charging thresholds question

#2 Post by thorcik » Mon Apr 30, 2012 1:03 am

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

indigo196
Posts: 3
Joined: Sun Nov 18, 2012 11:30 pm
Location: Rochester, NY

Re: tp_smapi and battery charging thresholds question

#3 Post by indigo196 » Mon Nov 19, 2012 9:41 am

Will tp_smapi work on W520s and T530s?

ThinkRob
Senior ThinkPadder
Senior ThinkPadder
Posts: 2364
Joined: Wed May 20, 2009 9:54 am
Location: near RTP, NC

Re: Odp: tp_smapi and battery charging thresholds question

#4 Post by ThinkRob » Wed Feb 06, 2013 12:58 pm

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: Select all

Current laptop: X1 Carbon 3
Current workstation: none

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 1 guest