Bug 423799

Summary: tablet pen input doesn't rotate with screen rotation
Product: [Plasma] kwin Reporter: Zamundaaa <xaver.hugl>
Component: inputAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, benjamin.hennion
Priority: NOR Keywords: wayland
Version: git master   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In: 5.20

Description Zamundaaa 2020-07-02 16:03:30 UTC
SUMMARY
When the screen is rotated the touch inputs get rotated. The same thing should happen for pen inputs.

STEPS TO REPRODUCE
Rotate the screen in system settings and try to use the pen.

OBSERVED RESULT
The input seems to get scaled to the new width and height but not rotated.
If I for example turn the convertible 90 degrees to the left and the screen 90 degrees right in the system settings and put the pen on the now low side of the display it will be recognized as being on the left.

EXPECTED RESULT
The pen input should also be rotated.

SOFTWARE/OS VERSIONS
Windows: -
macOS: -
Linux/KDE Plasma: Manjaro KDE
KDE Plasma Version: 5.19.80
KDE Frameworks Version: 5.72.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION
Tested on a HP Envy x360
Comment 1 Christoph Feck 2020-07-22 19:42:26 UTC
Is this a Wacom pen? The Wacom KCM might have a feature to detect/configure rotation, according to https://invent.kde.org/system/wacomtablet/-/commit/5f42c2174935d7a0a35e7f8a39ed599f9e3ef8d6

If you don't have it installed, please ask in a forum of your distribution for the package name of https://invent.kde.org/system/wacomtablet
Comment 2 Benjamin Hennion 2020-07-23 15:06:00 UTC
I have the same behaviour here on a Surface Pro 3:
Linux: Arch-Linux
Plasma: 5.19.3  (Wayland)
Frameworks: 5.72.0
Qt: 5.15.0

To answer Christoph Feck, the Wacom KCM does not seem to work under a Wayland session (and only the Wayland session features automatic screen rotation). Zamundaaa added the keyword Wayland to this bug report, so I assume they were also on a Wayland session.
Comment 3 Zamundaaa 2020-07-23 17:11:27 UTC
My pen/tablet is not from Wacom and yes, I'm on Wayland, so that would be irrelevant either way (the wacom driver is only for X)