Bug 9973 - Xrandr rotation broken
Summary: Xrandr rotation broken
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Eric Anholt
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-14 10:05 UTC by Ross Burton
Modified: 2007-04-16 02:45 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Xorg log (417.94 KB, text/x-log)
2007-02-14 10:07 UTC, Ross Burton
no flags Details

Description Ross Burton 2007-02-14 10:05:26 UTC
modesetting branch of -intel, from head 98318dfcc99264fb7b7ef34568712812aa6300b6 (date 20070209).

If I rotate my 1024x768 screen, instead of the normal thing happening, two things happen:

1) the pixels rotate, but so does the display itself.  If you consider the physical screen to be rotated to the left (and thus portrait) the virtual screen is still landscape and 1024x768. This means that the visible display is clipped

2) updates are very slow.  Dragging windows is an exercise in patience.

Before I switched to the bleeding edge driver, rotating the screen both worked and was fast, so something dramatic is broken.
Comment 1 Ross Burton 2007-02-14 10:07:54 UTC
Created attachment 8705 [details]
Xorg log

This is my xorg.log.
Comment 2 Eric Anholt 2007-02-15 11:22:20 UTC
Are you rotating to the right?  I fixed right rotation two days ago.
Comment 3 Ross Burton 2007-02-15 11:45:35 UTC
I believe I was rotating to the left.
Comment 4 Eric Anholt 2007-02-26 12:24:05 UTC
We fixed some rotation bugs recently.  Could you try again?
Comment 5 Ross Burton 2007-03-09 08:02:22 UTC
Still broken with the RC xserver and intel drivers. 
Comment 6 Ross Burton 2007-03-09 08:03:57 UTC
Also:
* I tried rotating left and right.  As before the display rotated but the geometry of the screen didn't so 1/3rd of my monitor wasn't usable, and 1/3rd of the logical screen was off the side of the physical screen.

* Rendering speed seemed better
Comment 7 Brice Goglin 2007-03-17 12:21:53 UTC
Same problem here with Xserver 1.2.99.902 and Intel driver 1.9.92. Both rotations to left or right give broken rotated display resolutions.

Xserver 1.1.1 with i810 driver 1.7.2 are ok.
Comment 8 Brice Goglin 2007-03-19 09:43:16 UTC
Well, trying to debug this, I found out that
   xrandr --output LVDS --rotate left
works, while
   xrandr -o left
does not (as reported in this bug).

From what I understand, it would mean that XRandr 1.1 rotation is broken while 1.2 works.

Ross, how did you rotate?
Comment 9 Ross Burton 2007-03-19 10:41:39 UTC
Ah yes!

I can confirm, xrandr --output LVDS --rotate left works, xrandr --rotate left doesn't.
Comment 10 WuNian 2007-03-19 23:20:52 UTC
With the latest intel driver(master branch) and xserver(server-1.3-branch) source, I can not reproduce this bug.
Comment 11 Brice Goglin 2007-03-27 06:21:30 UTC
Since Xrandr 1.2 works, no need to block the 2.0 release for this bug.
Comment 12 Ross Burton 2007-03-27 13:22:39 UTC
I can still replicate with the xserver 903/intel 93 releases, although the results are slightly different.  The width of the screen is correctly set but the screen height doesn't appear to change now.
Comment 13 Brice Goglin 2007-03-27 13:47:03 UTC
I can still reproduce with "xrandr -o left" on xserver and driver -rc3. See http://bgoglin.free.fr/broken-xrandr1.1-i945.jpg

"xrandr --output LVDS --rotate left" still works fine.

The only difference I see with rc2 is that my gnome panel does not appear anymore at the bottom of the (rotated) screen.

FYI, this is a Dell Latitude D420 machine with the following board:
00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller [8086:27a2] (rev 03)
Comment 14 Eric Anholt 2007-04-10 13:05:41 UTC
Fixed compat-path rotation yesterday.
Comment 15 Ross Burton 2007-04-16 02:19:40 UTC
I upgraded to xorg-server 1.2.99.905 and -intel 1.9.94 yesterday, and there are still problems.  If I do this on my 1024x768 laptop:

$ xrandr -o left

Then the rotated screen has the right width, 768 pixels, but the height didn't expand to 1024 pixels: the mouse is constrained to a 768x768 area.
Comment 16 Brice Goglin 2007-04-16 02:35:28 UTC
The fix has been committed in the server *after* -rc5 got released, you should wait until a new release candidate is out before reopening.

Brice
Comment 17 Ross Burton 2007-04-16 02:45:41 UTC
Sorry, I thought the release I had was done after the fix. 


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.