- Instead of document what works, now the page should just document what does not work and is there any solution. --Fengchao (talk) 01:34, 7 February 2023 (UTC)
Stylus and screen rotation
All currently listed ways on how to rotate your touchscreen/stylus do first rotate the screen and then in separate steps rotate the touchscreen/stylus accordingly.
I think the solution from Touchscreen#Using a touchscreen in a multi-head setup is cleaner:
One "maps" the touchscreen/stylus device to the correct screen (e.g. on startup). And then if the screen is rotated (e.g. on KDE Plasma in the normal Display Configuration) the touchscreen/stylus will rotates as well!
Here is an example working for my Lenovo Yoga Thinkpad convertible with touch and stylus:
cat << EOF >> ~/.xinitrc # Map touchscreen and pen to correct screen xinput --map-to-output 'Wacom Pen and multitouch sensor Finger touch' eDP1 xinput --map-to-output 'Wacom Pen and multitouch sensor Pen stylus' eDP1 xinput --map-to-output 'Wacom Pen and multitouch sensor Pen eraser' eDP1 EOF
Edit: I just realized, I have to execute the above 3 xinput lines each time I rotate the eDP1 screen. But what do you think, shall we mention this as a method in the Tablet article as well?