Skip to content
Nov 1 / kkrizka

ThinkPad X61 Tablet Tilt Detection and Ubuntu Karmic Koala/Lucid Lynx

One of my main beefs with Ubuntu is that the hard drive accelerometer that comes with built in the ThinkPad tablets does not work out of the box. After some research, I found out that this is because the mainline hdaps module (default) and the tp_smapi module (that works, after manual compilation) are different, and the tp_smapi one will not be merged into the mainline for political reasons. That means that to get decent support, one will have to compile the tp_smapi version by hand for some time. About a year ago, I wrote a guide on how to do this. But today, I’ve found out that there is a much simpler way to do this:

sudo aptitude install tp-smapi-source
sudo module-assistant build tp-smapi-source
sudo module-assistant install tp-smapi-source
sudo modprobe hdaps

Note that you will have to rebuild the module after every kernel update.

To actually make it do something useful, like protect the hard disk when moving the laptop, try hdapsd:
sudo aptitude install hdapsd

4 Comments

Leave a comment
  1. Gaurav / Feb 22 2010

    while executing the last code “sudo modprobe hdaps” i get this error message “FATAL: Error inserting hdaps (/lib/modules/2.6.31-19-generic/updates/hdaps.ko): No such device or address

  2. Derek / Jul 20 2010

    I got here from your Lucid tutorial. In Lucid, you can install tp-smapi-dkms, which will take care of all this for you and recompile for each kernel release. Still need to modprobe or add to /etc/modules, though.

    Thanks for the continuing updates.

Trackbacks and Pingbacks

  1. ThinkPad X61 Tablet and Ubuntu Lucid Lynx | Karol Krizka
  2. ThinkPad X61 Tablet On Ubuntu Maverick Meerkat | Karol Krizka
Leave a comment
Cancel reply