Bug 3421

Summary: Can't get RandR rotation status from xinput driver
Product: xorg Reporter: Zachary Whitley <zachary>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED MOVED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: high CC: ceder, e.a.b.piel, furryball, hramrach, khnz
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on: 21129    
Bug Blocks:    

Description Zachary Whitley 2005-05-28 11:51:57 UTC
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.
Comment 1 Adam Jackson 2005-08-01 09:11:02 UTC
*** Bug 3923 has been marked as a duplicate of this bug. ***
Comment 2 Daniel Stone 2007-02-27 01:26:53 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 3 Eric Piel 2009-11-30 04:39:14 UTC
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.
Comment 4 Michal Suchanek 2010-06-18 04:23:08 UTC
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.
Comment 5 Paul Wolneykien 2012-02-23 13:10:57 UTC
(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.
Comment 6 GitLab Migration User 2018-12-13 22:15:14 UTC
-- 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.