Linux Input/HID development
 help / color / mirror / Atom feed
From: "Martyn Welch" <martyn.welch@collabora.co.uk>
To: linux-input@vger.kernel.org
Subject: Fwd: USB Touchscreen displaying cursor in Weston
Date: Fri, 13 Jan 2017 17:04:05 +0000	[thread overview]
Message-ID: <543c-58790880-77-7b732580@37883435> (raw)

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


                 reply	other threads:[~2017-01-13 17:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=543c-58790880-77-7b732580@37883435 \
    --to=martyn.welch@collabora.co.uk \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox