View Single Post
  #2 (permalink)  
Old 01-Jul-2009, 03:44
toolmad's Avatar
toolmad toolmad is offline
Puzzled Penguin
 
Join Date: Jun 2009
Location: UK
Posts: 11
toolmad hasn't been rated much yet
Default Re: tp_smapi on Lenovo Thinkpad T400/T500/W500 (step-by-step

I now have hdaps functioning too. Please see the revisions to steps 4,6,7,12 below:


4. add the following line to file /etc/modprobe.conf.local (is required on T400/T500/W500):
options thinkpad_ec force_io=1

Note: the tp_smapi wiki mentions the following 2 commands when installing from the source file:
# make load HDAPS=1
# make install HDAPS=1

no reference to 'HDAPS=1' is needed in file /etc/modprobe.conf.local
because this was handled by the install methods detailed above (see steps 1 & 2).


6. manually perform a test load of the module(s)

6a. to only load tp_smapi, use the following command in gnome terminal:
# modprobe tp_smapi
(should produce no errors if it loaded successfully)

6b. to load both tp_smapi & hdaps, use the following command in gnome terminal:
# modprobe tp_smapi hdaps
(should produce no errors if they loaded successfully)

Note: you can investigate any error messages further by using the command below:
# dmesg |egrep '(smapi|hdaps)'


7. recheck which modules are loaded by using the following command in gnome terminal:
# lsmod|egrep 'hdaps|thinkpad_ec|tp_smapi'

if HDAPS is NOT loaded, it should result in something similar to:
tp_smapi 26832 0
thinkpad_ec 7664 1 tp_smapi

if HDAPS is loaded, it should result in something similar to:
hdaps 12356 0
tp_smapi 26832 0
thinkpad_ec 7664 2 hdaps,tp_smapi


12. enable tp_smapi (and hdaps if required) to autoload on boot by...

changing the following line in file /etc/sysconfig/kernel
from
MODULES_LOADED_ON_BOOT=""
to
MODULES_LOADED_ON_BOOT="tp_smapi" (to only load tp_smapi)
MODULES_LOADED_ON_BOOT="tp_smapi hdaps" (to load both tp_smapi & hdaps)
Reply With Quote