I am trying to use my accelerometer as joystick just so I know it's working, but I can't figure out how.
To my surprise, Ubuntu doesn't seem to have a nice GTK joystick testing dialog. There used to be hdaps-gl out there for testing, but this was for very old models and is only released for Ubuntu 8.04 afaik. So I tried installing neverball for that purpose. It doesn't have options for joystick selection, but apparently it works out of the box with a Thinkpad T61.
Code:
sudo aptitude install tp-smapi-dkms
sudo modprobe tp_smapi
sudo modprobe hdaps
dmesg:
Code:
[ 720.093604] thinkpad_ec: thinkpad_ec 0.40 loaded.
[ 720.095348] tp_smapi 0.40 loading...
[ 720.095786] tp_smapi successfully loaded (smapi_port=0xb2).
[ 842.860767] thinkpad_ec: thinkpad_ec_read_row: failed waiting for data: (0x13:0x00)->0xfffffff0
[ 842.860773] hdaps init failed at: hdaps_get_ec_mode failed
[ 842.861321] input: ThinkPad HDAPS joystick emulation as /devices/virtual/input/input10
[ 842.861696] input: ThinkPad HDAPS accelerometer data as /devices/virtual/input/input11
[ 842.861883] hdaps: driver successfully loaded.
lsmod:
Code:
Module Size Used by
hdaps 10772 0
tp_smapi 26194 0
thinkpad_ec 5842 2 hdaps,tp_smapi
(..)
I've also tried to use jstest with
/dev/input/js[0|1]
and
/devices/virtual/input/input10/[many things]
But the former gives static 0 for both axes and the second gives error messages (you're probably not supposed to use it like this).
Any ideas?
Bookmarks