Logging out and back in has the touchscreen rotation out of sync with the display
Affected version
Using Debian unstable with Gnome on Wayland (mutter 3.38.1).
Bug summary
I have a tablet with a detachable keyboard, whose accelerometer doesn't yet work on my installation (Chuwi Hi10 X). Unfortunately, the default orientation of the screen is Portrait, but when I have it docked onto the keyboard it's in Landscape mode. As a result, when I first log into GNOME, everything is rotated.
I go and rotate the display (ironically, from Landscape to Portrait Left - GNOME thinks it's Landscape while it's in fact Portrait), and everything works great. I log out of GNOME and back in, the display orientation is kept, but the touch screen isn't in sync with the display. Taps are registered at a different spot than where they actually are. I need to rotate the screen to "Landscape" to make it in Portrait mode again, and back to "Portrait Left" to bring it to Landscape again, and then everything works again.
Steps to reproduce
- Have a touchscreen device without auto-rotation
- Go to Display settings and manually rotate the tablet
- Log out
- Log back in
- Try to tap somewhere
What happened
Taps are not registered at the same spot you're looking at, but rotated
What did you expect to happen
Taps are registered at the same spot you're looking at when tapping
Relevant logs, screenshots, screencasts etc.
N/A