You are not logged in.
hi there,
I just bought a used thinkpad X41tablet and it has that feature wich is mentionned in the wiki to lift harddrive's head when the laptop is moved roughly. I tried setting that up fallowing that wiki article :
http://wiki.archlinux.org/index.php/HDAPS#tp_smapi
but in that tp_smapi paragraph, there is that sentence that just dont make sens to me:
Instead, install the HDAPS driver to the kernel extra modules make install HDAPS=1 and modify your /etc/rc.local adding following line: insmod /lib/modules/$(uname -r)/extra/hdaps.ko
I just dont understand what im supposed to do :S
mostly "install the HDAPS driver to the kernel extra modules make install HDAPS=1"
does it implies knowledge that i dont have ?, or is there a typo in there that changes the sens of the phrase ?, i dont know.
Maybe i should mention that im not native english speaker. :\
thanks for your help if someone cares explaining to me what it means.
Last edited by lio (2009-12-11 04:23:46)
Offline
I think you're right, that does not read clearly. Furthermore, I believe it may contain an error or two.
If you're installing tp_smapi from AUR (as the page implies), the PKGBUILD should already install the module to the correct location, meaning the build instructions ('make install HDAPS=1'), are redundant.
I'd simply use 'makepkg' and 'pacman -U [...]', as usual.
To load the module correctly, I have:
/etc/rc.local:
modprobe tp_smapi
modprobe thinkpad_ec
insmod /lib/modules/$(uname -r)/extra/hdaps.ko
/etc/rc.conf:
MODULES=([...] !thinkpad_ec !tp_smapi !hdaps [...])
There is probably a cleaner way to do this, though the method described in the wiki results in several errors regarding "Unknown symbol" upon loading the module. Could anyone confirm or improve upon the above instructions, so that the tp_smapi section could be brought up-to-date?
Last edited by chpln (2009-12-11 00:41:34)
Offline
just to give more detail, i installed tp_smapi with yaourt.
Offline
just to give more detail, i installed tp_smapi with yaourt.
That is fine. It should now be sufficient to add the lines for rc.local and rc.conf which I posted above to their respective files.
Offline
im sorry that im super hesitant,
but why do i want to have !thinkpad_ec and !tp_smapi in the MODULES=(...) ?
cant i just not write it ? or do i really need to have it with the !
also, im not sure what thinkpad_ec is for ... maybe because im not there yet in my install, I got the laptop yesterday night.
In any ways, thanks a lot for your help
Last edited by lio (2009-12-11 04:24:59)
Offline
I use this:
yaourt -S tp_smapi
in /etc/rc.conf
MOD_AUTOLOAD="yes"
MODULES=( ... tp_smapi ... )
in /etc/rc.local
#!/bin/bash
#
# /etc/rc.local: Local multi-user startup script.
#
#Shock Protection
# http://wiki.archlinux.org/index.php/HDAPS
insmod /lib/modules/$(uname -r)/extra/hdaps.ko invert=2
/etc/rc.d/hdapsd start
and all work very good!!
For invert option, read this: http://www.thinkwiki.org/wiki/Tp_smapi# … rientation
Last edited by takedown (2009-12-11 01:22:28)
Offline
ok
i did that like takedown did except i did not had to specify any "invert=", default was good orientation.
thanks to both of you guys for helping me figure that out.
i also suggest that the wiki gets updated.
Offline
I use this:
[...]
Thanks takedown. This works fine here and is much simpler than my solution.
I've updated the wiki page, removing the redundant step which seemed to cause the confusion.
Offline
ok
i did that like takedown did except i did not had to specify any "invert=", default was good orientation.
thanks to both of you guys for helping me figure that out.i also suggest that the wiki gets updated.
lio, if you know the information, please update the wiki. It is a community wiki and any that help it, provide benefit to all.
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline