[oe] [PATCH 14/15] xserver-xorg-conf: switch from plain tslib access to evdev for touchscreen on palmpre machine

Simon Busch morphis at gravedo.de
Tue Oct 19 07:42:58 UTC 2010


On 18.10.2010 23:11, Koen Kooi wrote:
>>  Section "InputDevice"
>>      Identifier  "Touchscreen"
>> -    Driver      "tslib"
>> -    Option      "Device"                "/dev/touchscreen"
>> +    Driver      "evdev"
>> +    Option      "Device"                "/dev/input/event6"
> 
> You're better of using /dev/input/touchscreen0 for that since event
> numbers are pretty much random.

No, thats not possible as the /dev/input/event6 is an uinput device and
not provided by any kernel driver. On the palmpre machine we have a
special situation with the touchscreen. The kernel gives you access on
the touchscreen through /dev/touchscreen. It can be opened only once. So
we have written a touchscreen management daemon called tsmd. It opens
/dev/touchscreen, creates a new uinput device, processes all touchscreen
events via tslib and reports them to the user via the uinput node. So
there is no /dev/input/touchscreen0 ever available.

regards,
morphis




More information about the Openembedded-devel mailing list