Finally, I got it working. Wasn't really difficult.
I can now see the touchpad buttons as /dev/input/mouse0 and the pad
movements as /dev/input/mouse1
And cat /dev/input/mouse0 | xxd reports nice events when pressing the
buttons... But I have not yet tested with a X11 environment so I don't
know if the "sensor fusion" works and if the sampling rate can be
reduced or should be increased. Currently it is 20ms.
Here are the patches (commit-diff):
http://projects.goldelico.com/p/letux-400/source/commit/6b9252d42c8342d3b98da6f46e3f833184af6007/
For complete sources see v0.3:
http://projects.goldelico.com/p/letux-400/source/tree/v0.3/
A SD-card kernel with this patch included/configured can be downloaded
from:
http://download.goldelico.com/letux-400/20100506-lenny400
BR,
Nikolaus
Am 05.05.2010 um 19:12 schrieb Dr. H. Nikolaus Schaller:
Hi ard,
I have now hacked the gpio_mouse driver into my code. I had to patch
the Kconfig to include GENERIC_GPIO. And add 4 gpio-access functions
to the minipc board file and add some platform_device struct.
Now the driver shows itself as
/sys/devices/platform/gpio-mouse
/sys/bus/platform/devices/gpio-mouse
But I could not identify an entry in /dev/input
Maybe, because there is no matching udev rule...
Was just a typo in the board config: "gpio-mouse" != "gpio_mouse"
BR,
Nikolaus
Am 05.05.2010 um 12:14 schrieb ard:
On Wed, May 05, 2010 at 11:33:49AM +0200, Dr. H. Nikolaus Schaller
wrote:
So I think adding the touchpad buttons to the touchpad driver
doesn't
make sense. Would it be good to add it to the keyboard driver? Or to
patch/configure some mouse driver? E.g. the input/mouse/gpio_mouse.c
Hmmm, maybe that's a good idea. An event driver that's registered
as a mouse so that it's events are gathered in /dev/mice...
That shouldn't even be to hard...
--
.signature not found
_______________________________________________
Mipsbook-devel mailing list
Mipsbook-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/mipsbook-devel
_______________________________________________
Mipsbook-devel mailing list
Mipsbook-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/mipsbook-devel
_______________________________________________
Mipsbook-devel mailing list
Mipsbook-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/mipsbook-devel