Trust Flex Graphics Tablet no cursor movement, no click events
Hi!
https://www.trust.com/en/product/21259-flex-design-tablet-black
I trying to get Trust Flex Graphics Tablet working.
dmesg:
[ 2675.641450] usb 3-2: new full-speed USB device number 2 using xhci_hcd
[ 2675.794925] usb 3-2: New USB device found, idVendor=2179, idProduct=0004, bcdDevice= 0.00
[ 2675.794933] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2675.794939] usb 3-2: Product: TABLET WP5540
[ 2675.794944] usb 3-2: Manufacturer: UGTABLET
[ 2675.810269] input: UGTABLET TABLET WP5540 as /devices/pci0000:00/0000:00:1c.0/0000:01:00.0/0000:02:02.0/0000:37:00.0/usb3/3-2/3-2:1.0/0003:2179:0004.0008/input/input24
[ 2675.870633] hid-generic 0003:2179:0004.0008: input,hiddev2,hidraw2: USB HID v1.00 Mouse [UGTABLET TABLET WP5540] on usb-0000:37:00.0-2/input0
libinput-debug-events:
libinput error: event19 - UGTABLET TABLET WP5540: libinput bug: missing tablet capabilities: resolution.Ignoring this device.
P: /devices/pci0000:00/0000:00:1c.0/0000:01:00.0/0000:02:02.0/0000:37:00.0/usb3/3-2/3-2:1.0/0003:2179:0004.000A/input/input26/event19
N: input/event19
S: input/by-id/usb-UGTABLET_TABLET_WP5540-event-mouse
S: input/by-path/pci-0000:37:00.0-usb-0:2:1.0-event-mouse
E: DEVLINKS=/dev/input/by-id/usb-UGTABLET_TABLET_WP5540-event-mouse /dev/input/by-path/pci-0000:37:00.0-usb-0:2:1.0-event-mouse
E: DEVNAME=/dev/input/event19
E: DEVPATH=/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/0000:02:02.0/0000:37:00.0/usb3/3-2/3-2:1.0/0003:2179:0004.000A/input/input26/event19
E: ID_BUS=usb
E: ID_INPUT=1
E: ID_INPUT_MOUSE=1
E: ID_INPUT_TABLET=1
E: ID_MODEL=TABLET_WP5540
E: ID_MODEL_ENC=TABLET\x20WP5540
E: ID_MODEL_ID=0004
E: ID_PATH=pci-0000:37:00.0-usb-0:2:1.0
E: ID_PATH_TAG=pci-0000_37_00_0-usb-0_2_1_0
E: ID_REVISION=0000
E: ID_SERIAL=UGTABLET_TABLET_WP5540
E: ID_TYPE=hid
E: ID_USB_DRIVER=usbhid
E: ID_USB_INTERFACES=:030102:
E: ID_USB_INTERFACE_NUM=00
E: ID_VENDOR=UGTABLET
E: ID_VENDOR_ENC=UGTABLET
E: ID_VENDOR_ID=2179
E: LIBINPUT_DEVICE_GROUP=3/2179/4:usb-0000:37:00.0-2
E: MAJOR=13
E: MINOR=83
E: SUBSYSTEM=input
E: USEC_INITIALIZED=3220279505
I added quirk to 60-evdev.hwdb so now tablet seems like detected by libinput:
#########################################
# Trust
#########################################
# Trust Flex Graphics Tablet
evdev:input:b0003v2179p0004*
EVDEV_ABS_00=0:32767:234
EVDEV_ABS_01=0:32767:328
libinput-debug-events:
-event22 DEVICE_ADDED UGTABLET TABLET WP5540 seat0 default group16 cap:T size 152x102mm
[ 49.742] (II) config/udev: Adding input device UGTABLET TABLET WP5540 (/dev/input/mouse4)
[ 49.742] (II) No input driver specified, ignoring this device.
[ 49.742] (II) This device may have been added with another device file.
[ 49.922] (II) config/udev: Adding input device UGTABLET TABLET WP5540 (/dev/input/event22)
[ 49.922] (**) UGTABLET TABLET WP5540: Applying InputClass "libinput pointer catchall"
[ 49.922] (**) UGTABLET TABLET WP5540: Applying InputClass "libinput tablet catchall"
[ 49.922] (II) Using input driver 'libinput' for 'UGTABLET TABLET WP5540'
[ 49.988] (II) systemd-logind: got fd for /dev/input/event22 13:86 fd 72 paused 0
[ 49.988] (**) UGTABLET TABLET WP5540: always reports core events
[ 49.988] (**) Option "Device" "/dev/input/event22"
[ 50.012] (**) Option "_source" "server/udev"
[ 50.014] (II) event22 - UGTABLET TABLET WP5540: is tagged by udev as: Mouse Tablet
[ 50.106] (II) event22 - UGTABLET TABLET WP5540: tablet 'UGTABLET TABLET WP5540' unknown to libwacom
[ 50.112] (II) event22 - UGTABLET TABLET WP5540: device is a tablet
[ 50.112] (II) event22 - UGTABLET TABLET WP5540: device removed
[ 50.112] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/0000:02:02.0/0000:37:00.0/usb3/3-2/3-2.1/3-2.1.3/3-2.1.3:1.0/0003:2179:0004.000F/input/input28/event22"
[ 50.112] (II) XINPUT: Adding extended input device "UGTABLET TABLET WP5540" (type: TABLET, id 23)
[ 50.113] (II) event22 - UGTABLET TABLET WP5540: is tagged by udev as: Mouse Tablet
[ 50.136] (II) event22 - UGTABLET TABLET WP5540: tablet 'UGTABLET TABLET WP5540' unknown to libwacom
[ 50.136] (II) event22 - UGTABLET TABLET WP5540: device is a tablet
Yet there is still no cursor movement, no click events from tablet.
I find this patch https://lists.freedesktop.org/archives/wayland-devel/2018-February/036860.html and tried to rebuild libinput 1.10.4 with this patch, but this doesn't bring any significant changes besides X Server crash when I click on stylus buttons.
Ubuntu 18.04, libinput 1.10.4. evtest log is attached. libinput 1.11.0 failed to build https://launchpad.net/ubuntu/+source/libinput/1.11.0-1 so I can't test libinput 1.11.0 yet.