[ltp] Re: tp_smapi 0.34 and hdaps
kionez
linux-thinkpad@linux-thinkpad.org
Fri, 11 Jan 2008 22:25:13 +0100
#include <Shem Multinymous.h> // created 11/01/2008 21:31
> Have you also commented out the "return -EIO" in hdaps_ec_check()? If
> not, please do and retry.
well.. i don't commented out line 360 of hdaps.c, because your statement
"if you're brave" scares me ;)
the results:
# cat /sys/devices/platform/hdaps/position
(-505,-494)
# make unload HDAPS=1
# vi hdaps.c [comment out line 360 with classic "//" ]
# make load HDAPS=1
Recent dmesg output:
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<7>hdaps: setting
ec_rate=250, filter_order=2
hdaps: fake_data_mode set to 0
hdaps: device successfully initialized.
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
(-505,-494)
i also try a reboot... and some "rmmod hdaps && modprobe hdaps" and
still works..
with your last patch and commenting out "return -EIO" in
hdaps_check_ec() seems that everything is back working (orientation too!)
i don't have many coding skills, so.. i can leave this module loaded in
my running environment or i risk to lost data? :)
many thanks for the solution!
k.