HDAPS-Hard disk active protect system. Anyone got it working

I’m looking at getting HDAPS working on my thinkpad but am a little confused with how to do this. The Thinkwiki talks about patching kernels etc.

Has anyone got it working on that could give me a basic how to go about installing and configuring it?

Hi
The hdaps module is already in the kernel if your running 11.1 so no
patching would be required.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.23-0.1-default
up 1 day 13:01, 3 users, load average: 0.06, 0.05, 0.01
GPU GeForce 8600 GTS Silent - Driver Version: 185.18.14

OK, so how do I get it working? I found a hdaps.ko file in one of the directories. Is this an executable or is it just a config file?

suse tpx60s wrote:
> OK, so how do I get it working? I found a hdaps.ko file in one of the
> directories. Is this an executable or is it just a config file?

A .ko file is a module (aka driver). To load it you can use the command

sudo /sbin/modprobe -v hdaps

That command will ask for your root password. If this is the first
time you have used sudo, you will get a warning to be careful with all
this privilege. The modprobe will issue a line that starts with
insmod. If you don’t see that, then the module was already loaded.

Thanks. That modprobe command does nothing so it seems that the module has started.

I know the tp_smapi driver is working as I can see the output from the accelerometer. I’ve installed the latest hdapsd deamon (hdapsd-20090401) which is what actually parks the hard disk. It’s described in the Thinkwiki HERE. Both the tp_smapi and hdaps were installed by suse’s one-click so I assume they were properly packaged etc.

The wiki talks about setting up a udev rule with

# echo 'KERNEL=="event[0-9]*", ATTRS{phys}=="hdaps/input1",ATTRS{modalias}=="input:b0019v1014p5054e4801-*",SYMLINK+="input/hdaps/accelerometer-event"' \
 > /etc/udev/rules.d/51-hdaps.rules

The above doesn’t seem to do anything and I have no 51-hdaps.rules file.

Here is the output from dmesg |egrep ‘(smapi|hdaps)’

tp_smapi 0.40 loading...
tp_smapi successfully loaded (smapi_port=0xb2).
hdaps: LENOVO ThinkPad X60s detected, setting orientation 3
hdaps: initial mode latch is 0x05
hdaps: setting ec_rate=250, filter_order=2
hdaps: device successfully initialized.
hdaps: driver successfully loaded.
smapi smapi: set_real_thresh: set start to 64 for bat=0
smapi smapi: set_real_thresh: set stop to 85 for bat=0
						

I just can get it working. I am guessing that the hdapsd deamon is not seeing the output from the accelerometer.

Any ideas would be greatly appreciated.