Bug 3421 - Can't get RandR rotation status from xinput driver
Summary: Can't get RandR rotation status from xinput driver
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
: 3923 (view as bug list)
Depends on: 21129
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-28 11:51 UTC by Zachary Whitley
Modified: 2018-12-13 22:15 UTC (History)
5 users (show)

See Also:
i915 platform:
i915 features:


Attachments

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.