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

Chris Penn linux-thinkpad@linux-thinkpad.org
Mon, 29 Dec 2008 04:53:47 -0600


Any noticeable loss of battery life  when running this version?

Chris...

On Mon, Dec 29, 2008 at 4:09 AM, Martin Steigerwald <Martin@lichtvoll.de> wrote:
>
> Hi!
>
> I was always a bit reluctant to apply the kernel patch... but now it works
> out of the box. I used experimental versions of hdapsd and tp-smapi. It
> 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
> 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
> available version in archive
> tp-smapi-modules-2.6.28-tp42-toi-3.0-2008-12-27 0.40-1+1 installed: No
> 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
> [13,7kB]
> [...]
> Starting IBM Hard Disk Active Protection System (HDAPS) daemon:
> hdapsdWARNING: Cannot open hdaps position input
> file /dev/input/hdaps/accelerometer-event (No such file or directory).
> You may be using an incompatible version of the hdaps module, or missing
> the required udev rule. Falling back to reading the position from sysfs
> (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
> (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=0xb2).
> hdaps: initial mode latch is 0x01
> hdaps: setting ec_rate=250, filter_order=2
> 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
> with or without good reason, I did never take the time to actually look
> at the possibly completely harmless patch.
>
> Ciao,
> --
> Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
> GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7
>



-- 
"As we open our newspapers or watch our television screens, we seem to
be continually assaulted by the fruits of Mankind's stupidity."
 -Roger Penrose