Bug 499979

Summary: [Wacom Tablet] Wayland + Dual tablet setup result in wrong pressure reading in one of the tablet (Plasma 6.3)
Product: [I don't know] kde Reporter: Protoniv <ss93078>
Component: generalAssignee: Unassigned bugs <unassigned-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: josh, nicolas.fella
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Output from tablet tester
Another session for Tablet Tester with reverse order
Reverse order test result from Teblet tester

Description Protoniv 2025-02-13 12:13:55 UTC
Created attachment 178267 [details]
Output from tablet tester

SUMMARY

I have two wacom tablet device connected, `Intous pro L (PTH-851)` and `Cintiq 13 pro (DTH-1320)`.
If login under Wayland and pickup the first device, the pressure reading respond my stylus pressure well, but the second device would give me the wrong pressure reading and make it unusable (too little or too strong to draw).
Use the **same** stylus for testing.

For example:
First pickup Intous pro L and draw --> OK
Next pickup Cintiq 13 pro --> Pressure easily reach 100% even I just lightly press down the stylus
--- logout and login reset the behavior ---
First Cintiq 13 pro --> pressure reading OK
Next Intous pro L --> Pressure hardly get over 18% even with a heavy press.

Pressure reading tool: Tablet Tester in Krita
The issue doesn't appear if switching to x11.
The issue has presented in Plasma 6.2 (when I first switch to Wayland)

OBSERVED RESULT
the pressure reading get wrong depending on use order of the device.

EXPECTED RESULT
Pressure reading should be similar between two device and also x11

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20250211
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Kernel Version: 6.13.1-1-default (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Intous pro L (PTH-851) hardware support up to 2048 pressure level
Cintiq 13 pro (DTH-1320) hardware support up to 8192 pressure level
Stylus is paired with PTH-851 which only support 2048 level
Comment 1 Protoniv 2025-02-13 12:15:23 UTC
Created attachment 178268 [details]
Another session for Tablet Tester with reverse order
Comment 2 Protoniv 2025-02-13 12:23:53 UTC
Created attachment 178269 [details]
Reverse order test result from Teblet tester
Comment 3 Nicolas Fella 2025-02-13 12:34:33 UTC
I don't have enough tablets to test this myself unfortunately.

Can you please run "sudo libinput debug-events" and play around with that a bit?

It should show you the right amount of pressure in a range between 0 and 1 at all times regardless of the hardware's pressure range. If the results don't look right then it's probably a driver or libinput issue
Comment 4 Protoniv 2025-02-13 13:27:35 UTC
(In reply to Nicolas Fella from comment #3)
> It should show you the right amount of pressure in a range between 0 and 1
> at all times regardless of the hardware's pressure range. If the results
> don't look right then it's probably a driver or libinput issue

Hi, thanks to the quick reply!
I ran the command "sudo libinput debug-events" and sadly, the result is aligned with the tablet tester, which doesn't look right.
Comment 5 Nicolas Fella 2025-02-13 13:32:30 UTC
Thanks. That at least matches what I expected. That means this is most likely not an issue with Plasma code.

Can you please report this to https://gitlab.freedesktop.org/libinput/libinput/-/issues ?
Comment 6 Protoniv 2025-02-13 14:47:15 UTC
Reported, thanks for your help!
https://gitlab.freedesktop.org/libinput/libinput/-/issues/1089