opensuse 10.3 tpsmapi

Solaris, RedHat, FreeBSD and the like
Post Reply
Message
Author
amwus
Freshman Member
Posts: 70
Joined: Mon Feb 05, 2007 11:10 am
Location: Belgium

opensuse 10.3 tpsmapi

#1 Post by amwus » Sat Sep 29, 2007 1:27 pm

Has somebody successfully installed tp_smapi on an opensuse system ? I absolutely don't know how to do it ! It doesnt' work at all...

Thank you very much...
Thinkpad T400

rssb
Junior Member
Junior Member
Posts: 476
Joined: Tue Dec 14, 2004 4:35 pm
Location: Richmond,VA

#2 Post by rssb » Tue Sep 02, 2008 9:09 am

I have installed it from source. The first time I installed it worked, after subsequent reboots, I cannot get it to work.

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

#3 Post by GomJabbar » Tue Sep 02, 2008 9:32 am

I don't know how suse does it, but Mandriva provides a DKMS ready tp-smapi module and a DKMS binary kernel module for the tp-smapi driver for each possible kernel of a distribution. These are installed using urpmi or Software Installer. Very easy to do this way. Perhaps Opensuse offers something similar?
DKB

gongo2k1
Sophomore Member
Posts: 200
Joined: Mon Jun 30, 2008 10:25 pm

#4 Post by gongo2k1 » Tue Sep 02, 2008 11:10 am

in debian i just install the precompiled kernel module through synaptic and then i'm ready to rock-n-roll. the module in the repo is rebuilt for each kernel update, so when you update kernels, it automatically downloads the matched precompiled module to go with it.

remember that if you build from source, you'll have to rebuild and depmod after updating kernels. if it doesn't auto load on subsequent boots, first make sure that you're not getting errors in dmesg when you insert with modprobe, then add it and its dependencies to the modules list so that modprobe will load it next time.

rssb
Junior Member
Junior Member
Posts: 476
Joined: Tue Dec 14, 2004 4:35 pm
Location: Richmond,VA

#5 Post by rssb » Thu Sep 04, 2008 8:02 am

I have this working now. I clean installed the tp_smapi from source again.

I have to do a modprobe -a tp_smapi everytime i reboot, then if i set the value for top charge threshold , it stops at the values. Is there a way to make to load automatically and remember the values.

I am doing this on open suse 11.0,

Linux 2.6.25.11-0.1-default #1 SMP 2008-07-13 20:48:28 +0200 i686 i686 i386 GNU/Linux

Thank you.

gongo2k1
Sophomore Member
Posts: 200
Joined: Mon Jun 30, 2008 10:25 pm

#6 Post by gongo2k1 » Thu Sep 04, 2008 8:46 am

i have my values set in rc.local that way it's set on every boot before gdm starts up. just make sure you chmod +x rc.local (it's not by default) so that it executes as it's called via a script that checks first if it's executable.

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

#7 Post by GomJabbar » Thu Sep 04, 2008 9:31 am

In Mandriva there is a file /etc/modprobe.preload where you can enter the base name of the module you are using modprobe to install. This will cause the module to be loaded at each boot. Putting in rc.local works as well, but it is a little more work. Not sure how the -a switch figures into all this.
DKB

gongo2k1
Sophomore Member
Posts: 200
Joined: Mon Jun 30, 2008 10:25 pm

#8 Post by gongo2k1 » Thu Sep 04, 2008 10:39 am

i should have been more clear. i'm using rc.local only to set the charging thresholds, not to load the module. i suppose that this could be done with a script executed on gdm login, but i feel it should be a system-wide thing, not per-user, so i load it in rc.local before anyone logs in.

for modprobe, i have the hdaps and thinkpad_ec modules explicitly listed along with tp_smapi to make sure that the dependencies are loaded.

rssb
Junior Member
Junior Member
Posts: 476
Joined: Tue Dec 14, 2004 4:35 pm
Location: Richmond,VA

#9 Post by rssb » Thu Sep 04, 2008 1:40 pm

In suse there is no rc.local , there is a boot.local and boot.modules not sure how to use these. Any help is appreciated.

Post Reply

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 1 guest