* Fwd: USB Touchscreen displaying cursor in Weston
@ 2017-01-13 17:04 Martyn Welch
0 siblings, 0 replies; only message in thread
From: Martyn Welch @ 2017-01-13 17:04 UTC (permalink / raw)
To: linux-input
Good start, typo in email address :-/
-------- Original Message --------
Subject: USB Touchscreen displaying cursor in Weston
Date: Friday, 13 January, 2017 17:02 GMT
From: "Martyn Welch" <martyn.welch@collabora.co.uk>
To: inux-input@vger.kernel.org, linux-usb@vger.kernel.org
I'm currently looking into an issue we are having with a USB touchscreen controller causing Weston to display a cursor when plugged in.
The device is an "Elo TouchSystems 2216 AccuTouch USB Touchmonitor Interface", which is being handled by hid-generic.
Weston (via libinput) is detecting this device as a mouse:
Jan 12 12:38:36 GE00409729044C weston[387]: [12:38:36.674] input device 'EloTouchSystems,Inc Elo TouchSystems 2216 AccuTouch® USB Touchmonitor Interface', /dev/input/event5 is tagged by udev as: Mouse
Jan 12 12:38:36 GE00409729044C weston[387]: [12:38:36.676] input device 'EloTouchSystems,Inc Elo TouchSystems 2216 AccuTouch® USB Touchmonitor Interface', /dev/input/event5 is a pointer caps
Looking at the device capabilities and properties:
# cat /sys/class/input/event5/device/capabilities/abs
100 3
# cat /sys/class/input/event5/device/capabilities/key
10000 0 0 0 0 0 0 0 0
# cat /sys/class/input/event5/device/properties
0
I think I'm right in saying that this device is providing ABS_X, ABS_Y, ABS_MISC and BTN_LEFT (or BTN_MOUSE as they are the same code).
So, looking at the code paths in libinput I believe this is being detected as a "VMware's USB mouse".
>From what I understand, a touchscreen should be claiming BTN_TOUCH rather than BTN_LEFT, which seems to be the case as a second device that I have access to (Dialogue Technology Corp. PenMount USB) which is working.
I see that the PenMount device has a routine that patches up some of the button mapping. Is that what I need to do for this device as well?
Thanks in advance,
Martyn
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-01-13 17:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-13 17:04 Fwd: USB Touchscreen displaying cursor in Weston Martyn Welch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox