libwacom icon indicating copy to clipboard operation
libwacom copied to clipboard

Add recognition of Wacom HID 5620 aka WACF2200 / segfault in libwacom (gnome settings) after adding .tablet file

Open MX682X opened this issue 1 year ago • 0 comments

  • Device name: Wacom HID 5620

  • Device model identifier: Wacom HID 5620 / WACF2200

  • libwacom version: Don't know how to check, whatever comes with Ubuntu 24.04 LTS

  • [x] I understand that libwacom does affect whether the device works (see Troubleshooting)

  • [ ] udevadm info output:

  • [x] sysinfo issue in wacom-hid-descriptors: sysinfo.Pn8rZGIaU5.tar.gz

As the WACF2200 is part of the Linux Kernel the Touch screen and Stylus works pretty much right out of the box. However, since upgrading from 22.04 LTS to 24.04 LTS the button assignment of the stylus buttons changed (Eraser/Right Mouse Button to Erazer/Middle Mouse Button) so I wanted to add a .tablet file to my system to change that back.

After manually creating the .tablet file and updating the database, I noticed that using the stylus on the Wacom Settings tab of the gnome menu lead to crashes of gnome settings with following dmesg output (besides not offering button assignement :/):

[ 2001.565203] wacom 0018:056A:5360.0002: wacom_idleprox_timeout: tool appears to be hung in-prox. forcing it out.
[ 2003.399625] gnome-control-c[18230]: segfault at 28 ip 00007f2c7c313cc4 sp 00007ffd4ae7cc18 error 4 in libwacom.so.9.0.0[7f2c7c311000+7000] likely on CPU 8 (core 4, socket 0)
[ 2003.399686] Code: 00 be 10 00 00 00 48 8d 3d cc 49 00 00 48 89 e5 e8 41 dc ff ff b8 01 00 00 00 5d c3 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa <8b> 47 28 c3 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 55 48 89 e5 e8 e3
[ 2004.150656] wacom 0018:056A:5360.0002: wacom_idleprox_timeout: tool appears to be hung in-prox. forcing it out.

EDIT: journalctl also logged this before the sefault, don't know if that helps:

gnome-shell[2373]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed

as the libwacom library is mentioned in the output, I thought creating an issue instead of an PR would be the better option. I've created the .tablet file based on wacom-hid-5620.hid and isdv4-526c.tablet files:

# Wacom
# Wacom HID 5360
# Leonovo Yoga 2-in-1 14AHP9
# sysinfo.Pn8rZGIaU5
# https://github.com/linuxwacom/wacom-hid-descriptors/issues/393

[Device]
Name=Wacom HID 5360 Pen,Wacom HID 5360 Finger
ModelName=
Class=ISDV4
DeviceMatch=i2c:056a:5360
Width=12
Height=7
IntegratedIn=Display;System
Styli=@isdv4-aes

[Features]
Stylus=true
Touch=true

MX682X avatar Jul 03 '24 20:07 MX682X