I plugged in a 3M touchscreen to my Linux PC. It appears as it recognizes it as a mouse. Here's my xinput
output:
xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Logitech USB Optical Mouse id=13 [slave pointer (2)]
⎜ ↳ 3M 3M USB Touchscreen - 36955 id=12 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Video Bus id=8 [slave keyboard (3)]
↳ Power Button id=9 [slave keyboard (3)]
↳ Logitech USB Keyboard id=10 [slave keyboard (3)]
↳ Logitech USB Keyboard id=11 [slave keyboard (3)]
↳ HP WMI hotkeys id=14 [slave keyboard (3)
After # modprobe -r usbtouchscreen
touching device stops working.
On Windows 7 it works after installing driver from this site so I also tried to install Linux driver from here (Linux, Single Touch, 64bit). I think installation process fails as it interrupts immediately after I accept the license (with 0 exit code).
I test my touchscreen with Qt FingerPaint example (also works on Windows, doesn't work on Ubuntu). Debugging shows that multitouch input generates mouse events.
I use Ubuntu 16.04 with kernel 4.10.0-35-generic and tried both Unity and Cinnamon environments. I need this working for programming purposes.
EDIT:
Some diagnostic tools output:
# lsinput
...some other devices...
/dev/input/event12
bustype : BUS_USB
vendor : 0x596
product : 0x1
version : 1088
name : "3M 3M USB Touchscreen - 36955"
phys : "usb-0000:00:14.0-3/input0"
bits ev : EV_SYN EV_KEY EV_ABS
# mtdev-test /dev/input/event12
015ee1f66c7c 00 1 014a 1
015ee1f66c7c 00 3 0000 12183
015ee1f66c7c 00 3 0001 7962
015ee1f66c7c 00 0 0000 0
015ee1f66c80 00 3 0000 12193
... etc ...
EDIT:
$ xinput list-props 12
Device '3M 3M USB Touchscreen - 36955':
Device Enabled (143): 1
Coordinate Transformation Matrix (145): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device Accel Profile (268): 0
Device Accel Constant Deceleration (269): 1.000000
Device Accel Adaptive Deceleration (270): 1.000000
Device Accel Velocity Scaling (271): 10.000000
Device Product ID (262): 1430, 1
Device Node (263): "/dev/input/event12"
Evdev Axis Inversion (272): 0, 0
Evdev Axis Calibration (273): <no items>
Evdev Axes Swap (274): 0
Axis Labels (275): "Abs X" (266), "Abs Y" (267)
Button Labels (276): "Button Unknown" (265), "Button Unknown" (265), "Button Unknown" (265), "Button Wheel Up" (149), "Button Wheel Down" (150)
Evdev Scrolling Distance (277): 0, 0, 0
Evdev Middle Button Emulation (278): 0
Evdev Middle Button Timeout (279): 50
Evdev Third Button Emulation (280): 0
Evdev Third Button Emulation Timeout (281): 1000
Evdev Third Button Emulation Button (282): 3
Evdev Third Button Emulation Threshold (283): 20
Evdev Wheel Emulation (284): 0
Evdev Wheel Emulation Axes (285): 0, 0, 4, 5
Evdev Wheel Emulation Inertia (286): 10
Evdev Wheel Emulation Timeout (287): 200
Evdev Wheel Emulation Button (288): 4
Evdev Drag Lock Buttons (289): 0
And evtest:
sudo evtest /dev/input/event12
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x596 product 0x1 version 0x440
Input device name: "3M 3M USB Touchscreen - 36955"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 330 (BTN_TOUCH)
Event type 3 (EV_ABS)
Event code 0 (ABS_X)
Value 6684
Min 0
Max 16384
Event code 1 (ABS_Y)
Value 6185
Min 0
Max 16384
Properties:
Testing ... (interrupt to exit)
Event: time 1507280785.112401, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1507280785.112401, type 3 (EV_ABS), code 0 (ABS_X), value 5971
Event: time 1507280785.112401, type 3 (EV_ABS), code 1 (ABS_Y), value 6240
Event: time 1507280785.112401, -------------- SYN_REPORT ------------
Event: time 1507280785.116364, type 3 (EV_ABS), code 0 (ABS_X), value 5953
Event: time 1507280785.116364, -------------- SYN_REPORT ------------
Event: time 1507280785.118359, type 3 (EV_ABS), code 0 (ABS_X), value 5968
Event: time 1507280785.118359, -------------- SYN_REPORT ------------
# ...........
Event: time 1507280785.156333, -------------- SYN_REPORT ------------
Event: time 1507280785.158356, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 1507280785.158356, -------------- SYN_REPORT ------------
xinput list-props 12
command in your question.evtest
(you should usesudo evtest
)?