When using a tablet pc and the latest nvidia driver there is no way (that I know of) of obtaining the current orientation of the screen. AFIK, currently randr assumes that when you rotate the screen, that you are going to leave the tablet pad where it is and physically rotate the screen 90 deg. To put it another way, if the pad is stationary and the screen is in landscape mode moving on the pad back and forth moves up and down on the screen , after rotating the screen via xrandr the screen is turned 90 degrees to portrait mode and a back and forth motion should move the cursor along the long axis. On a tablet pc the screen and the tablet move in unison so this is not correct on the tablet pc. This would also be the case for a touchscreen. I guess this would require either some way of telling x that the input shouldn't be rotated or provide a way for the input driver to check the current screen orientation and correct it if it needs to.
*** Bug 3923 has been marked as a duplicate of this bug. ***
Sorry about the phenomenal bug spam, guys. Adding xorg-team@ to the QA contact so bugs don't get lost in future.
IIUK, if bug 21129 is fixed (allowing any pointer device to be rotated), this feature could be implemented in "userspace" by a similar application taking care of the screen rotation.
It would be still useful to have some "attached-to" property so that if the screen is rotated the attached input is rotated as well. Otherwise Using the X supplied tools like xrandr or xinput would break the user's setup.
(In reply to comment #3) > IIUK, if bug 21129 is fixed (allowing any pointer device to be rotated), this > feature could be implemented in "userspace" by a similar application taking > care of the screen rotation. Hi! I wrote that kind of userspace tool: https://github.com/wolneykien/xrandr-align Feel free to use it. Any help in developing and testing is much welcome.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/xserver/issues/329.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.