Incorrect tablet stylus detection on X11
The stylus device of my Parblo A610s tablet (reports itself as UC-Logic A610s) is recognized by gdk as a touchscreen instead of a pen. Because of this the tablet is not seen by gnome-settings-daemon and settings app.
Sysinfo: Fedora 34 Workstation; GNOME 40.4 X11; gtk3-3.24.30; gtk4-4.2.1.
I wrote a python script that lists input devices, here what it prints for the tablet:
5543:0081 UC-Logic A610s Pad pad <enum GDK_SOURCE_TABLET_PAD of type Gdk.InputSource>
5543:0081 UC-Logic A610s stylus <enum GDK_SOURCE_TOUCHSCREEN of type Gdk.InputSource>
As far as i can see, the code responsible for this is in gdk/x11/gdkdevicemanager-xi2.c in function create_device. Since it does'nt find 'wacom' 'pen' or 'eraser' in stylus' name it skips GDK_SOURCE_PEN and goes with GDK_SOURCE_TOUCHSCREEN.