Page 1 of 1

tp_smapi precompiled

Posted: Sat Mar 15, 2008 11:34 am
by aaa
I found this lying around on my drive. tp_smapi compiled for Ubuntu Gutsy w/ 2.6.22 (it's built-in on newer versions). If you didn't know, it lets you use battery thresholds and a couple other neat things in Linux. Unfortunately, hardware support is also required; you need a T42/R51 or newer to get the best features out of it. On my T40 I can only do less exciting things like read the cycle count and manufacture date.

To use:

Code: Select all

tar xzf tp_smapi-0.32-gutsy.tar.gz
sudo mkdir /lib/module/`uname -r`/tp_smapi
sudo cp thinkpad_ec.ko tp_smapi.ko /lib/module/`uname -r`/tp_smapi/
sudo depmod
sudo echo thinkpad_ec | sudo tee -a /etc/modules
sudo echo tp_smapi | sudo tee -a /etc/modules
rm thinkpad_ec.ko tp_smapi.ko
That will install it and set it to automatically load on startup.

Note: this does not include the new hdaps.


And here it is:
http://www.savefile.com/files/1441330

tp_smapi

Posted: Wed Apr 16, 2008 6:10 pm
by EarloftheWest
aaa,

I'm planning on doing a fresh Hardy Install next week when the release is official.

I understand that I don't need to recompile the kernel with Hardy because it's (Whatever it's is) already in the Hardy Kernel?

Have you seen any how to's floating around on how to install it on the thinkpad? I've read the thinkwiki article. Perhaps I just need to dive in and ask for help when I get stuck?

Thanks.

Posted: Wed Apr 16, 2008 7:03 pm
by aaa
The tp_smapi driver is already installed on Hardy. So you'd just poke around in /sys/devices/platform/smapi/ to make it do things. If that folder's not there, then run "modprobe -a thinkpad_ec tp_smapi", that should make it show up.


Once you find settings you like, you can make the settings load automatically using /etc/sysfs.conf (that file is part of the not-usually-installed sysfsutils package). Along with using /etc/modules to automatically load it instead of running modprobe every time.

Posted: Sat Apr 19, 2008 1:32 am
by EarloftheWest
aaa,

I can now see the smapi directory.

I also installed HDAPS using synaptic and HDAPS-utils.

The thinkwiki mentions a user interface to configure the file.

Is there some type of monitoring application that will show on the taskbar like in Windows? And how and what do I exactly configure to get the active disk protection working?

Thanks for your help on this. (I know I'm asking a lot here. I really appreciate it.)

Posted: Thu Apr 24, 2008 6:53 pm
by EarloftheWest
I was perusing this page:
http://www.krizka.net/2008/01/23/thinkp ... rdy-heron/

and it says that a recompile is needed.

just for fun, I installed hdaps and hdaps-utils

from the terminal I typed

sudo modprobe hdaps
then I typed
hdaps-gl

A neat screen popped up representing my thinkpad. I moved my thinkpad and the laptop on the image moved.

No recompiling needed.

From what I've read, this doesn't park the hard drive though.

That's the next thing on my list.

Posted: Fri Oct 17, 2008 7:39 pm
by hsjC
Back in 2006 when I first got my Z61 I went through a whole lot of trouble trying to patch and re-compile the kernel to get the harddrive head to park properly...

Good luck earlofthewest. I sincerely hope it's a lot easier to do now. I'm just a little disappointed that the parking feature still hasn't made to upstream yet.

Correct me if i'm wrong. And please do post directions if you can get it to work. :D

Posted: Fri Oct 17, 2008 8:51 pm
by GomJabbar
Mandriva already has tp_smapi pre-compiled. :)