Bug 17930

Summary: [Q965] X freezes when screen rotated
Product: xorg Reporter: Bryce Harrington <bryce>
Component: Driver/intelAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: major    
Priority: high CC: drieschner, tutufan
Version: unspecified   
Hardware: All   
OS: Linux (All)   
URL: https://bugs.edge.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/225400
Whiteboard:
i915 platform: i915 features:

Description Bryce Harrington 2008-10-06 10:55:33 UTC
Forwarding this bug from a Ubuntu reporter:
https://bugs.edge.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/225400

Starting in around 2.3.1, the X server freezes when rotating 90 degrees on this hardware.  In 2.2.x it would rotate but was not very stable and would freeze after certain actions.  Currently it freezes immediately on rotation.  (the screen is drawn and the cursor "works", and the cursor bitmap changes as it's moved around the screen, but beyond that, everything's frozen).

PCI ID:
(II) PCI: 00:02:0: chip 8086,2992 card 1028,01da rev 02 class 03,00,00 hdr 80

Old Xorg.0.log from 2.2.x with xserver 1:7.3+10ubuntu10:
http://launchpadlibrarian.net/14071327/Xorg.0.log.old
Comment 1 Mike Coleman 2008-10-06 11:51:49 UTC
(I'm the original reporter--to Ubuntu--of the bug.)
Comment 2 Michael Drieschner 2008-10-06 12:41:08 UTC
Rotation 90° does work alright if I change, before logging in (in GNOME), the session such that no start scripts are executed. It does not seem that anything is missing afterwards.
Michael
Comment 3 Mike Coleman 2008-10-06 12:43:52 UTC
Michael, is this a suggested fix, or just an observation?  What could be in the startup scripts that could hang the X server so badly, I wonder?
Comment 4 Michael Drieschner 2008-10-06 12:51:57 UTC
It is an obvservation. I have no idea why this comes out -- I am a Newcomer to unbuntu!
Michael 
Comment 5 Michael Drieschner 2008-10-06 13:00:49 UTC
bugzilla-daemon@freedesktop.org schrieb:
> http://bugs.freedesktop.org/show_bug.cgi?id=17930
>
>
>
>
>
> --- Comment #3 from Mike Coleman <tutufan@gmail.com>  2008-10-06 12:43:52 PST ---
> Michael, is this a suggested fix, or just an observation?  What could be in the
> startup scripts that could hang the X server so badly, I wonder?
>
>
>   
It is an obvservation. I have no idea why this comes out -- I am a 
Newcomer to unbuntu!
Michael
Comment 6 Carl Worth 2008-10-13 09:31:12 UTC
Hi Bryce!

I knew we'd have to meet here sooner or later.

I tried to take a look at this bug and here's some of what I found:

* With fairly current, (master within the last couple of weeks at least), X server and xf86-video-intel, I tried various combination of rotation and applications. I rotated both before and after starting GNOME. I ran totem with visualization as well as mplayer rendering with xv, (since the original referenced bug seems to point to problems with xv). And everything worked fine for me---I couldn't find any problems.

* I talked with Keith Packard, and he says that all the rotation code takes place in generic parts of the X server, and the driver should be totally unaware of things. That makes the "starting in around 2.3.1" part of the bug report suspicious. Did the bug really change with xf86-video-intel 2.3.1 or did other things change at the same time?

Since I can't reproduce the bug yet, I'll need some more information from those who can. Specifically, if you can take a broken setup and make it work by switching only the Intel driver, (back to 2.2, say), then that would be very useful information.

Also, if you could update to 2.4 (or even a recent 2.4.9x release candidate for our imminent 2.5 release), and report if things start working for you, that would be great.

Thanks,

-Carl
Comment 7 Bryce Harrington 2008-10-13 10:28:57 UTC
Heya Carl,

@Mike and Michael, can both of you please try what Carl suggests and re-test for this bug against more recent code?  You can get an ISO of intrepid-beta at http://cdimage.ubuntu.com/releases/8.10/beta/.
Comment 8 Mike Coleman 2008-10-14 08:58:10 UTC
I just updated to the next Ubuntu beta, which is at

ii  xserver-xorg-video-intel                   2:2.4.1-1ubuntu6                      X.Org X server -- Intel i8xx, i9xx display d

First off, basic rotation seems to work fine, and furthermore the Ubuntu "visual effects" also seem to work while rotated, which has not worked for me up to this point.  So in this sense, this version is the best ever.  (Hooray!)

3D acceleration (still) does not work correctly, though.  If "visual effects" is not enabled, then the GL window is either black or frozen, except that if I grab the window and move it around, it seems to work perfectly until I stop.  So I guess there's some sort of updating problem.  (The behavior is slightly different between glxgears vs the Ubuntu screensaver preview window.  The former starts in an almost working state, but with a black bar across the top 20% of the window; then, when I touch it, it's frozen while still and works while the window is moving.  The latter starts black, and then likewise once touched is frozen unless the window is in motion (i.e., being moved with the mouse).

If "visual effects" is enabled, the effect looks more complex.  Things only work while the window is being dragged, as above, but the rendering is not correct in this case, and leaves strips of rendered material outside the dragged window.
Comment 9 Carl Worth 2008-10-14 09:38:16 UTC
(In reply to comment #8)
> I just updated to the next Ubuntu beta, which is at
> 
> ii  xserver-xorg-video-intel                   2:2.4.1-1ubuntu6                
>      X.Org X server -- Intel i8xx, i9xx display d


Thanks for trying with newer packages, Mike!

> First off, basic rotation seems to work fine, and furthermore the Ubuntu
> "visual effects" also seem to work while rotated, which has not worked for me
> up to this point.  So in this sense, this version is the best ever.  (Hooray!)

Excellent news.

This particular bug report is about the rotation. So since everything is working correctly, I'll go ahead and mark this bug as fixed. If you do see other issues with rotation, please feel free to reopen the bug.
 
> 3D acceleration (still) does not work correctly, though.

This is in general, right? Not only when rotated? If so, then it would be most helpful if you could open separate bug reports for each separate issue. (For example, I'm not the right person to help with any 3D issues at all.)

Thanks again for your testing and bug reporting. We really appreciate it!

-Carl
Comment 10 Mike Coleman 2008-10-14 10:08:45 UTC
>> 3D acceleration (still) does not work correctly, though.

> This is in general, right? Not only when rotated? If so, then it would be most
> helpful if you could open separate bug reports for each separate issue. (For
> example, I'm not the right person to help with any 3D issues at all.)

I hadn't tried until you asked, but 3D seems to work fine when the display is not rotated, at least when "visual effects" are not enabled.  (It'd be more difficult for me to check the "visual effects" enabled case, but I can if it actually matters here.)

So, yes, I think there is a still a rotation bug.  Whether it's the same bug I will leave as a question to the philosophers.  :-)

Thanks for your work on this--even in its current state this definitely made my day!

Comment 11 Gordon Jin 2008-10-14 20:27:04 UTC
(In reply to comment #10)
> So, yes, I think there is a still a rotation bug.  Whether it's the same bug I
> will leave as a question to the philosophers.  :-)

This should be a different bug, so please file a new bug.
You could also try http://bugs.freedesktop.org/show_bug.cgi?id=17967#c9 to see if vblank_mode impacts your 3d issue.

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.