Quote:
Originally Posted by mmatej
Hi all!
I wanted to experiment with the accelerometer built into the Kindle Touch, but the FW version 5.1.0 doesn't load necessary driver automatically when booted in main (unlike the previous versions), so there's not /dev/input/event* for the accelerometer device. I tried to load the driver manually from the diags partition:
Code:
mount /dev/mmcblk0p2 /mnt/mmc/
insmod /mnt/mmc/lib/modules/2.6.31-rt11-lab126/kernel/drivers/hwmon/hwmon.ko
insmod /mnt/mmc/lib/modules/2.6.31-rt11-lab126/kernel/arch/arm/mach-mx5/mx50_yoshi_mma8453.ko
lsmod now shows the module:
Code:
Module Size Used by
mx50_yoshi_mma8453 8836 0
hwmon 2160 1 mx50_yoshi_mma8453
but there is still not event file in /dev/input. Have I missed something? Thanks for help!
|
Although a bit out of my experience, don't you have to manually create the device node with "mknod" for the driver to use? And perhaps you need to tell it which event device number to use when loading, or when configuring it via some /sys interface (or ioctl call). I do not have a K5 with me to test this on, so this is just helpful guessing, but worth investigating...
On the K5 5.0.0, you can use the "waitforkey" command to see accelerometer rotation events (which return key codes just like the home button press and touch events).
You can also interrogate events with "evtest".