Wacom/N-Trig Stylus taps cause left-click inputs to be emitted by the mouse cursor simultaneously
Problem
When using an N-Trig stylus, when the pen touches the surface a left-click action is emitted by both the secondary stylus cursor and also the primary touchpad/mouse cursor at the same time. This includes hold and release actions.
(EDIT - This also happens when I connect and use a Wacom stylus with the device)
This causes various glitches within GNOME and in specific apps, like with the Document Viewer where text selection will always start from the mouse cursor and end at the stylus cursor.
- Trying libinput debug-devices shows that no other event is triggered when the stylus touches the screen.
- This doesn't occur on Xorg.
- Unlike Wacom styluses I have found no means to customise configurations for N-Trig devices under Wayland.
- Turning the Trackpad off only stops the cursor from moving, it doesn't stop the left-click action from being transmitted.
Software/hardware stack:
- OS - Fedora 30 Workstation
- DE - GNOME 3.32.2 + Wayland
- Device - Sony VAIO Duo 13 (Intel Co re i5-4200U, 4GB RAM)
Just in case this would be helpful, here's the sudo evemu-describe
result for the N-Trig device:
# EVEMU 1.3
# Kernel: 5.0.16-300.fc30.x86_64
# DMI: dmi:bvnInsydeCorp.:bvrR1082S7:bd04/03/2014:svnSonyCorporation:pnSVD1321M2EB:pvrJ5006CUG:rvnSonyCorporation:rnVAIO:rvrN/A:cvnSonyCorporation:ct10:cvrN/A:
# Input device name: "NTRG0F01:00 1B96:0F01"
# Input device ID: bus 0x18 vendor 0x1b96 product 0xf01 version 0x100
# Size in mm: 290x167
# Supported events:
# Event type 0 (EV_SYN)
# Event code 0 (SYN_REPORT)
# Event code 1 (SYN_CONFIG)
# Event code 2 (SYN_MT_REPORT)
# Event code 3 (SYN_DROPPED)
# Event code 4 ((null))
# Event code 5 ((null))
# Event code 6 ((null))
# Event code 7 ((null))
# Event code 8 ((null))
# Event code 9 ((null))
# Event code 10 ((null))
# Event code 11 ((null))
# Event code 12 ((null))
# Event code 13 ((null))
# Event code 14 ((null))
# Event code 15 (SYN_MAX)
# Event type 1 (EV_KEY)
# Event code 320 (BTN_TOOL_PEN)
# Event code 321 (BTN_TOOL_RUBBER)
# Event code 330 (BTN_TOUCH)
# Event code 331 (BTN_STYLUS)
# Event type 3 (EV_ABS)
# Event code 0 (ABS_X)
# Value 8032
# Min 0
# Max 9600
# Fuzz 0
# Flat 0
# Resolution 33
# Event code 1 (ABS_Y)
# Value 3286
# Min 0
# Max 7200
# Fuzz 0
# Flat 0
# Resolution 43
# Event code 24 (ABS_PRESSURE)
# Value 0
# Min 0
# Max 256
# Fuzz 0
# Flat 0
# Resolution 0
# Event type 4 (EV_MSC)
# Event code 4 (MSC_SCAN)
# Properties:
# Property type 1 (INPUT_PROP_DIRECT)
N: NTRG0F01:00 1B96:0F01
I: 0018 1b96 0f01 0100
P: 02 00 00 00 00 00 00 00
B: 00 0b 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 03 0c 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 02 00 00 00 00 00 00 00 00
B: 03 03 00 00 01 00 00 00 00
B: 04 10 00 00 00 00 00 00 00
B: 05 00 00 00 00 00 00 00 00
B: 11 00 00 00 00 00 00 00 00
B: 12 00 00 00 00 00 00 00 00
B: 14 00 00 00 00 00 00 00 00
B: 15 00 00 00 00 00 00 00 00
B: 15 00 00 00 00 00 00 00 00
A: 00 0 9600 0 0 33
A: 01 0 7200 0 0 43
A: 18 0 256 0 0 0
Let me know if more information is required :)
Edited by Ghost User