tp_smapi precompiled

Solaris, RedHat, FreeBSD and the like
Post Reply
Message
Author
aaa
ThinkPadder
ThinkPadder
Posts: 1062
Joined: Fri Jun 08, 2007 2:36 pm

tp_smapi precompiled

#1 Post by aaa » Sat Mar 15, 2008 11:34 am

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

EarloftheWest
Posts: 29
Joined: Sun Mar 23, 2008 2:37 pm
Location: Portland, Oregon
Contact:

tp_smapi

#2 Post by EarloftheWest » Wed Apr 16, 2008 6:10 pm

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.
http://earlofthewest.blogspot.com/
Running the T61
Dual booting with Windows XP and Hardy Heron

aaa
ThinkPadder
ThinkPadder
Posts: 1062
Joined: Fri Jun 08, 2007 2:36 pm

#3 Post by aaa » Wed Apr 16, 2008 7:03 pm

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.

EarloftheWest
Posts: 29
Joined: Sun Mar 23, 2008 2:37 pm
Location: Portland, Oregon
Contact:

#4 Post by EarloftheWest » Sat Apr 19, 2008 1:32 am

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.)
http://earlofthewest.blogspot.com/
Running the T61
Dual booting with Windows XP and Hardy Heron

EarloftheWest
Posts: 29
Joined: Sun Mar 23, 2008 2:37 pm
Location: Portland, Oregon
Contact:

#5 Post by EarloftheWest » Thu Apr 24, 2008 6:53 pm

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.
http://earlofthewest.blogspot.com/
Running the T61
Dual booting with Windows XP and Hardy Heron

hsjC
Freshman Member
Posts: 54
Joined: Thu Sep 21, 2006 11:28 am
Location: San Francisco, CA, US

#6 Post by hsjC » Fri Oct 17, 2008 7:39 pm

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
Recursion:
See: Recursion.

GomJabbar
Moderator
Moderator
Posts: 9765
Joined: Tue Jun 07, 2005 6:57 am

#7 Post by GomJabbar » Fri Oct 17, 2008 8:51 pm

Mandriva already has tp_smapi pre-compiled. :)
DKB

Post Reply

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 0 guests