[ltp] Re: tp_smapi 0.34 and hdaps

kionez linux-thinkpad@linux-thinkpad.org
Fri, 11 Jan 2008 20:23:44 +0100


#include <kionez.h>   // created 11/01/2008 19:57

ok, the last one (..at least for the moment)

i can get working hdaps (every version, between 0.32 and 0.34) only if i
boot in vista (even without loading thinkvantage active protection
applet), then reboot in linux..

from now, every test is done with tp_smapi 0.34:

# cat /sys/devices/platform/hdaps/position
(-504,-495)

# rmmod hdaps
hdaps: driver unloaded.

# modprobe hdaps
hdaps: LENOVO ThinkPad T61 detected, setting orientation 1
hdaps init failed at: hdaps_check_ec failed
input: ThinkPad HDAPS joystick emulation as
/devices/platform/hdaps/input/input12
input: ThinkPad HDAPS accelerometer data as
/devices/platform/hdaps/input/input13
hdaps: driver successfully loaded.

# cat /sys/devices/platform/hdaps/position
cat: /sys/devices/platform/hdaps/position: Device or resource busy

so, i build the hdaps.c patched version (following Shem mail), then i
reboot in vista and finally reboot in linux:

cat /sys/devices/platform/hdaps/position *works*...

dmesg shows:

thinkpad_ec: thinkpad_ec 0.34 loaded.
tp_smapi 0.34 loading...
tp_smapi successfully loaded (smapi_port=0xb2).
hdaps: LENOVO ThinkPad T61 detected, setting orientation 1
hdaps: initial mode latch is 0x05
bad hdaps_check_ec reply 0x01,0x00,0x00,0x00<3>hdaps init failed at:
hdaps_check_ec failed
input: ThinkPad HDAPS joystick emulation as
/devices/platform/hdaps/input/input14
input: ThinkPad HDAPS accelerometer data as
/devices/platform/hdaps/input/input15
hdaps: driver successfully loaded.

so i do

# make unload HDAPS=1

and then

# make load HDAPS=1

Recent dmesg output:
thinkpad_ec: unloaded.
thinkpad_ec: thinkpad_ec 0.34 loaded.
tp_smapi 0.34 loading...
tp_smapi successfully loaded (smapi_port=0xb2).
hdaps: LENOVO ThinkPad T61 detected, setting orientation 1
hdaps: initial mode latch is 0x05
bad hdaps_check_ec reply 0x01,0x00,0x00,0x00<3>hdaps init failed at:
hdaps_check_ec failed
input: ThinkPad HDAPS joystick emulation as
/devices/platform/hdaps/input/input14
input: ThinkPad HDAPS accelerometer data as
/devices/platform/hdaps/input/input15
hdaps: driver successfully loaded.

and the same "cat ....." doesn't work until i reboot in vista.

Hope it helps..

k.