Need help installing tp_smapi [Solved]
Need help installing tp_smapi [Solved]
Trying to install tp_smapi on my X40 so I can control battery charge thresholds. I'm running Debian sid with XFCE 4.10 from experimental repos, kernel version is 2.6.32-5-686
Been trying to install tp-smapi following these directions from Thinkwiki, and have met with failure every time. Either packages are not found by apt, or the module-assistant method seemed most promising, but failed complaining of kernel headers not being installed, so I tried aptitude's suggestion of installing kernel-headers, but that package could not be found either.
So now I just need someone to walk me through this step-by-step to see what I'm doing wrong and help me get this done.
Been trying to install tp-smapi following these directions from Thinkwiki, and have met with failure every time. Either packages are not found by apt, or the module-assistant method seemed most promising, but failed complaining of kernel headers not being installed, so I tried aptitude's suggestion of installing kernel-headers, but that package could not be found either.
So now I just need someone to walk me through this step-by-step to see what I'm doing wrong and help me get this done.
Last edited by Neil on Sat Mar 23, 2013 3:49 pm, edited 1 time in total.
Collection = T500 - R400 - X300 - X200 - T61 (14" WXGA+) - T61 (14.1" SXGA+) - T60 (15" SXGA+) - X40 - T43p - T43 - T42p - A30P - 600E
-
twistero
- Senior Member

- Posts: 851
- Joined: Sun Feb 26, 2012 2:25 am
- Location: Princeton, New Jersey
- Contact:
Re: Need help installing tp_smapi
The "kernel headers" should be in a package named linux-headers-[architecture]. [architecture] may be "486", "686-pae", "amd64", etc. To determine the [architecture] part, search for a package named "linux-image-[architecture]" that's already installed on your system (that package contains your current kernel).
Once you have linux-headers-[architecture] installed, try installing "tp-smapi-dkms" first. (If you already tried that before, purge tp-smapi-dpms then reinstall.) DKMS should be a better way to handle kernel modules since it will automatically compile your modules for any new kernel versions you may install in the future.
Try the module-assistant method only if DKMS fails.
Once you have linux-headers-[architecture] installed, try installing "tp-smapi-dkms" first. (If you already tried that before, purge tp-smapi-dpms then reinstall.) DKMS should be a better way to handle kernel modules since it will automatically compile your modules for any new kernel versions you may install in the future.
Try the module-assistant method only if DKMS fails.
X60 tablet 6363-P3U, 3GB ram, 128GB SanDisk Extreme SSD, SXGA+ screen, Intel 6300
T61 Frankenpad in 15 inch T60 body, UXGA LED-lit AFFS LCD, T9300, 6GB RAM, NVidia NVS140m, Intel 6205, 128GB Crucial M4 SSD, 1TB HGST HDD + eBay caddy in Ultrabay
701c butterfly, 75MHz 486DX4, 40MB ram, 1GB CF card
T61 Frankenpad in 15 inch T60 body, UXGA LED-lit AFFS LCD, T9300, 6GB RAM, NVidia NVS140m, Intel 6205, 128GB Crucial M4 SSD, 1TB HGST HDD + eBay caddy in Ultrabay
701c butterfly, 75MHz 486DX4, 40MB ram, 1GB CF card
Re: Need help installing tp_smapi
OK, thanks for the info twistero, I'll give it a go after a while. Seems running completely removed my kernel image. Once I figure out how to restore that, I'll try again with tp_smapi.
Code: Select all
aptitude install tp-smapi-sourceCollection = T500 - R400 - X300 - X200 - T61 (14" WXGA+) - T61 (14.1" SXGA+) - T60 (15" SXGA+) - X40 - T43p - T43 - T42p - A30P - 600E
Re: Need help installing tp_smapi
OK, I've re-installed the system, and have tp-smapi-dkms installed. Now what do I do to set charging thresholds? Thinkwiki offers this:
Edit: I found which files to edit...the default setting were start @ 96%, end @ 100%, so I changed those to what I wanted. But, I still don't understand the ThinkWiki directions. If I run those commands in a terminal, it doesn't seem to do anything.
But I don't have a clue what to do with that info, or where to make changes. Is there a GUI front end like BMM, or do I have to edit a config file somewhere?To set the thresholds for starting and stopping battery charging (in percent of current full charge capacity):
# echo 40 > /sys/devices/platform/smapi/BAT0/start_charge_thresh
# echo 70 > /sys/devices/platform/smapi/BAT0/stop_charge_thresh
# cat /sys/devices/platform/smapi/BAT0/*_charge_thresh
Edit: I found which files to edit...the default setting were start @ 96%, end @ 100%, so I changed those to what I wanted. But, I still don't understand the ThinkWiki directions. If I run those commands in a terminal, it doesn't seem to do anything.
Collection = T500 - R400 - X300 - X200 - T61 (14" WXGA+) - T61 (14.1" SXGA+) - T60 (15" SXGA+) - X40 - T43p - T43 - T42p - A30P - 600E
Re: Need help installing tp_smapi
If you notice the hash mark # in front of the command, that means you have to be running terminal as root. You do not type the hash mark though, it is a prompt. To log in terminal as root, type su - {Enter} then your root password {Enter}. That's su <space> <hyphen>. Alternatively you can type sudo then the command and enter your user password {if sudo is set up on your system}Neil wrote:...If I run those commands in a terminal, it doesn't seem to do anything.
The echo command performs the changes, the cat command verifies the changes (displays the current state).
DKB
Re: Need help installing tp_smapi
This I find to be very useful information. Even though I had already changed the settings, just knowing what the echo and cat commands mean will be useful for many other tasks, I'm sure. And likely not just for me, but the many others who come here looking for help with this.GomJabbar wrote:The echo command performs the changes, the cat command verifies the changes (displays the current state).
Collection = T500 - R400 - X300 - X200 - T61 (14" WXGA+) - T61 (14.1" SXGA+) - T60 (15" SXGA+) - X40 - T43p - T43 - T42p - A30P - 600E
Re: Need help installing tp_smapi [Solved]
This is my first post so good day to everyone.
I am a total linux noob, in fact I write this on my first Linux install ever. I seem to have problems with installing tp_smapi as well.
What I did:
- I opened a terminal window and typed su and provided root pasword,
- prompt changed to root@debian:~#
- I typed in 'aptitude install tp-smapi-dkms'
- it started to make its thing, asking me to provide with 1st of Debian install Discs,
- It finished to prompt without errors
- i typed in 'echo 40 > /sys/devices/platform/smapi/BAT0/start_charge_thresh' and got an error message that there's not such a device.
as a matter of fact there were not a folder called 'smapi' in the platform folder so I assume the install went bad. Is there a way to make sure the thing is properly installed?
I would be grateful for an advice.
I am a total linux noob, in fact I write this on my first Linux install ever. I seem to have problems with installing tp_smapi as well.
What I did:
- I opened a terminal window and typed su and provided root pasword,
- prompt changed to root@debian:~#
- I typed in 'aptitude install tp-smapi-dkms'
- it started to make its thing, asking me to provide with 1st of Debian install Discs,
- It finished to prompt without errors
- i typed in 'echo 40 > /sys/devices/platform/smapi/BAT0/start_charge_thresh' and got an error message that there's not such a device.
as a matter of fact there were not a folder called 'smapi' in the platform folder so I assume the install went bad. Is there a way to make sure the thing is properly installed?
I would be grateful for an advice.
Thinkpad T61 7661VV7 Debian 7
Re: Need help installing tp_smapi [Solved]
Installation probably went just fine. This just creates a matching kernel module, but doesn't automatically load it afterwards.ilpalazzo wrote:as a matter of fact there were not a folder called 'smapi' in the platform folder so I assume the install went bad. Is there a way to make sure the thing is properly installed?
You have to run a "sudo modprobe tp-smapi" first, and then verify with "lsmod | grep smapi" if it was actually loaded.
After that, add the module name to /etc/modules to make sure it is autoloaded during boot: "sudo echo tp-smapi >> /etc/modules".
Broken T23 2647-9RG | A few 14.1" T61 Frankenpads | Two 15" Frankenpad T61+ with UXGA IPS Display
Re: Need help installing tp_smapi [Solved]
Thanks, this helped. Perhaps you can advise me on one more thing. tp-smapi packade supposedly contains a modified HDAPS driver that needs to be installed separately. I've only been able to find instructions for doing this when the tp-smapi driver is compiled locally. Can you advise on how to do it in my case?
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Help installing cyanogenmod on Samsung S7 Active
by Whitieiii » Tue May 30, 2017 3:51 am » in Off-Topic Stuff - 6 Replies
- 319 Views
-
Last post by TankPad
Wed May 31, 2017 8:41 pm
-
-
-
SOLVED IDTech IAQX10 QXGA panel
by x3o2 » Sun Jan 15, 2017 8:20 am » in Marketplace - Forum Members only - 8 Replies
- 1019 Views
-
Last post by x3o2
Mon Apr 03, 2017 12:09 pm
-
-
-
SOLVED! Recovery media for T410 2518-4LU W7 Pro 64
by rakirkp » Sun Jan 22, 2017 11:22 am » in Marketplace - Forum Members only - 1 Replies
- 251 Views
-
Last post by theterminator93
Sun Jan 22, 2017 1:28 pm
-
-
-
ThinkPad X230 freeze problem solved
by BerFab » Wed Jan 25, 2017 4:46 am » in ThinkPad X200/201/220 and X300/301 Series - 0 Replies
- 663 Views
-
Last post by BerFab
Wed Jan 25, 2017 4:46 am
-
Who is online
Users browsing this forum: No registered users and 1 guest






