You are not logged in.

#1 2009-12-11 00:13:47

lio
Member
From: Montréal, Canada
Registered: 2009-09-13
Posts: 52

IBM Thinkpad hard drive shock protection ?? [wiki fix needed]

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

#2 2009-12-11 00:39:03

chpln
Member
From: Australia
Registered: 2009-09-17
Posts: 361

Re: IBM Thinkpad hard drive shock protection ?? [wiki fix needed]

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

#3 2009-12-11 00:47:39

lio
Member
From: Montréal, Canada
Registered: 2009-09-13
Posts: 52

Re: IBM Thinkpad hard drive shock protection ?? [wiki fix needed]

just to give more detail, i installed tp_smapi with yaourt.

Offline

#4 2009-12-11 00:55:34

chpln
Member
From: Australia
Registered: 2009-09-17
Posts: 361

Re: IBM Thinkpad hard drive shock protection ?? [wiki fix needed]

lio wrote:

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

#5 2009-12-11 01:10:41

lio
Member
From: Montréal, Canada
Registered: 2009-09-13
Posts: 52

Re: IBM Thinkpad hard drive shock protection ?? [wiki fix needed]

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 smile

Last edited by lio (2009-12-11 04:24:59)

Offline

#6 2009-12-11 01:20:07

takedown
Member
From: Argentina
Registered: 2008-08-31
Posts: 219

Re: IBM Thinkpad hard drive shock protection ?? [wiki fix needed]

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

#7 2009-12-11 04:21:56

lio
Member
From: Montréal, Canada
Registered: 2009-09-13
Posts: 52

Re: IBM Thinkpad hard drive shock protection ?? [wiki fix needed]

ok smile
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

#8 2009-12-11 05:48:45

chpln
Member
From: Australia
Registered: 2009-09-17
Posts: 361

Re: IBM Thinkpad hard drive shock protection ?? [wiki fix needed]

takedown wrote:

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

#9 2009-12-11 06:12:53

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: IBM Thinkpad hard drive shock protection ?? [wiki fix needed]

lio wrote:

ok smile
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

Board footer

Powered by FluxBB