[ltp] disk-protect patch in linux kernel 2.6.28 => hdapsd works out of the box

Martin Steigerwald linux-thinkpad@linux-thinkpad.org
Mon, 29 Dec 2008 11:09:06 +0100


--nextPart1505041.RUIrDBe7fk
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline


Hi!

I was always a bit reluctant to apply the kernel patch... but now it works=
=20
out of the box. I used experimental versions of hdapsd and tp-smapi. It=20
might work with the ones in Lenny too, but I did not test it.

martin@shambhala:~> cat /proc/version
Linux version 2.6.28-tp42-toi-3.0-2008-12-27 (martin@shambhala) (gcc=20
version 4.3.2 (Debian 4.3.2-1) ) #2 PREEMPT Sun Dec 28 22:55:41 CET 2008


shambhala:~> apt-show-version | egrep "(hdaps|tp-smapi)"
zsh: correct 'apt-show-version' to 'apt-show-versions' [nyae]? y
hdaps-utils/lenny uptodate 0.1-1.1
hdapsd/experimental uptodate 1:0.0.20081004-1
tp-smapi-modules-2.6.27.7-tp42-toi-3.0-2008-11-25 0.37-3+1 installed: No=20
available version in archive
tp-smapi-modules-2.6.28-tp42-toi-3.0-2008-12-27 0.40-1+1 installed: No=20
available version in archive
tp-smapi-source/experimental uptodate 0.40-1


shambhala:~> aptitude -t experimental install hdapsd
[...]
Hole:1 http://ftp.de.debian.org experimental/main hdapsd 1:0.0.20081004-1=20
[13,7kB]
[...]
Starting IBM Hard Disk Active Protection System (HDAPS) daemon:=20
hdapsdWARNING: Cannot open hdaps position input=20
file /dev/input/hdaps/accelerometer-event (No such file or directory).=20
You may be using an incompatible version of the hdaps module, or missing=20
the required udev rule. Falling back to reading the position from sysfs=20
(uses more power). Use '-y' to silence this warning.


shambhala:~> m-a a-i tp-smapi
[...]
Entpacke tp-smapi-modules-2.6.28-tp42-toi-3.0-2008-12-27=20
(aus .../tp-smapi-modules-2.6.28-tp42-toi-3.0-2008-12-27_0.40-1+1_i386.deb)=
 ...
Richte tp-smapi-modules-2.6.28-tp42-toi-3.0-2008-12-27 ein (0.40-1+1) ...

shambhala:~> modprobe -r hdaps
shambhala:~> modprobe tp-smapi
shambhala:~> modprobe hdaps
shambhala:~> dmesg
[...]
hdaps: driver unloaded.
thinkpad_ec: thinkpad_ec 0.40 loaded.
tp_smapi 0.40 loading...
tp_smapi successfully loaded (smapi_port=3D0xb2).
hdaps: initial mode latch is 0x01
hdaps: setting ec_rate=3D250, filter_order=3D2
hdaps: device successfully initialized.
input: ThinkPad HDAPS joystick emulation as /class/input/input12
input: ThinkPad HDAPS accelerometer data as /class/input/input13
hdaps: driver successfully loaded.

shambhala:~> /etc/init.d/hdapsd start
Starting IBM Hard Disk Active Protection System (HDAPS) daemon: hdapsd.
shambhala:~>

YAY! ;-)

Maybe it helps someone who was reluctant about the patch too ;-) - whether=
=20
with or without good reason, I did never take the time to actually look=20
at the possibly completely harmless patch.

Ciao,
=2D-=20
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7

--nextPart1505041.RUIrDBe7fk
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAklYocMACgkQmRvqrKWZhMc5IwCfcRO3q0lN7ZAZ3fFc0m0fPTrf
+LoAn1rYMh+ksXHvdL37KB3M+M44bWYy
=G/VE
-----END PGP SIGNATURE-----

--nextPart1505041.RUIrDBe7fk--