It does not refresh well when dragging a window in the rotated screen (Santa Rosa)

Bug #129380 reported by Xiaoyang Yu
58
Affects Status Importance Assigned to Milestone
X.Org X server
Fix Released
High
xserver-xorg-video-intel (Ubuntu)
Fix Released
Medium
Bryce Harrington

Bug Description

Binary package hint: xorg

After rotated the screen by 90, 180, or 270 degree, drag a window on it, the screen do not refresh well.

This occurs on Santa Rosa with Gutsy Tribe 3 IA32 and x86_64 version.

Tags: intel-normal
Changed in xorg:
assignee: nobody → bryceharrington
Revision history for this message
Henrik Nilsen Omma (henrik) wrote :

Hi Xiaoyang,

Could you please install the debugging version of xorg and attach debugging information? See: https://help.ubuntu.com/community/DebuggingXAutoconfiguration and https://wiki.ubuntu.com/DebuggingXorg for details.

Changed in xorg:
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Xiaoyang Yu (xiaoyang-yu) wrote :

Thanks for the instruction.

Please let me know if I missed anything in the attachemented logs.

Revision history for this message
Xiaoyang Yu (xiaoyang-yu) wrote :

The log is for Tribe 5.

The bug changed in Tribe5. When use "xrandr -o 1", the X stopped to response, except the mouse pointer can still move. The system can be logged in remotely.

Revision history for this message
Henrik Nilsen Omma (henrik) wrote :

Thanks. Bryce, could you please have a look at these log files?

Changed in xorg:
status: Incomplete → Triaged
Revision history for this message
In , Bryce Harrington (bryce) wrote :

After rotating on Mobile GM965/GL960 (both IA32 and x86_64) and dragging a window, display artifacts are left on screen (for 2.1.0) or causes X to lock up (for 2.1.1). This is with Ubuntu's xserver 1.3 based on Debian xorg-server 1.3.0.0.dfsg-12.

https://bugs.edge.launchpad.net/ubuntu/+source/xorg/+bug/129380

Revision history for this message
In , Bryce Harrington (bryce) wrote :

Created an attachment (id=11639)
Xorg.0.log

Revision history for this message
In , Bryce Harrington (bryce) wrote :

Created an attachment (id=11640)
gdb output

Revision history for this message
In , Bryce Harrington (bryce) wrote :

Created an attachment (id=11641)
xorg.conf

Revision history for this message
In , Bryce Harrington (bryce) wrote :

Created an attachment (id=11642)
xsession errors

Revision history for this message
In , Bryce Harrington (bryce) wrote :

strace and ltrace output is also available if desired.

Revision history for this message
Bryce Harrington (bryce) wrote : Re: It does not refresh well when dragging a window in the rotated screen

Thanks. I've filed this upstream.

Some info I would suggest including for issues like these are exact steps to reproduce (i.e., commands that you run), and where appropriate, a photograph of the screen. In this case I think there's sufficient info to guess at both of these, but in general those would be helpful.

Also, I've been backporting a lot of fixes to xserver in the past weeks. I don't know if any would fix this specific issue, but it would be helpful if you could re-test with the latest updates to ubuntu.

Revision history for this message
In , Jiang-he (jiang-he) wrote :

An xterm and a twm start on our GM965 then drag it.
The bug can't be reproduced with the latest Xserver and Xf86_video_intel code.

Changed in xorg-server:
status: Unknown → Confirmed
Revision history for this message
Xiaoyang Yu (xiaoyang-yu) wrote : Re: It does not refresh well when dragging a window in the rotated screen

I wanted to re-test with Sep 19 update, but it can not be installed due to Bug #127008 .

Revision history for this message
Xiaoyang Yu (xiaoyang-yu) wrote :

I re-tested it on T61 using the 25 Sep daily build desktop IA32e version, but the bug still exists.

Revision history for this message
Bryce Harrington (bryce) wrote :

I wonder if this could be related to bug 147783.

Revision history for this message
In , Bryce Harrington (bryce) wrote :

I've recently gotten a 965GM desktop system, and was able to reproduce jiang's issue on a fresh Gutsy-beta installation, by opening an xterm and running `xrandr -o 1`. The screen was slightly corrupted, and after dragging the xterm it showed more corruption. See attached photos.

Revision history for this message
In , Bryce Harrington (bryce) wrote :

Created an attachment (id=11902)
Screen before rotating

Revision history for this message
In , Bryce Harrington (bryce) wrote :

Created an attachment (id=11903)
Screen immediately after rotating

Revision history for this message
In , Bryce Harrington (bryce) wrote :

Created an attachment (id=11904)
Screen after rotation, when moving an xterm, showing corruption on screen

Revision history for this message
In , Bryce Harrington (bryce) wrote :

*** Bug 12623 has been marked as a duplicate of this bug. ***

Revision history for this message
Bryce Harrington (bryce) wrote :

I can reproduce this behavior on my 965GM system.

Revision history for this message
Bryce Harrington (bryce) wrote :

Here is a photo showing the corruption that shows up after moving a window while rotated.

Revision history for this message
Henrik Nilsen Omma (henrik) wrote :

Unfortunately we won't be able to get to this for Gutsy as there has been no activity on this upstream. Screen rotation is a fairly new feature to Gutsy and is broken even worse for the vast majority of graphics cards. Removing RC milestone.

Bryce Harrington (bryce)
Changed in xorg:
assignee: bryceharrington → nobody
Bryce Harrington (bryce)
Changed in xorg:
importance: Low → Medium
Revision history for this message
ghstzr0 (ghstzr0) wrote :

I can confirm this bug on my Dell Inspiron 1420n (with preloaded Ubuntu) which has the new intel X3100 chip.

Revision history for this message
In , Michael Fu (michael-fu-intel) wrote :

it seems that fengming can reproduce it on bug# 12623...raise the priority.

Changed in xorg-server:
status: Confirmed → In Progress
Revision history for this message
haplo_09 (haplo-09) wrote :

Have the same bug on my fujitsu T4220 model. Any chances of fixing this bug during next release?

Revision history for this message
In , Fengming-pi (fengming-pi) wrote :

This problem goes away with the latest git code on my machine, so I'm closing it.
  Bryce, please reopen if you can still reproduce it with the latest code on your machine.

Revision history for this message
In , Bryce Harrington (bryce) wrote :

Fengming, is the fix in -intel or in xserver?

Changed in xorg-server:
status: In Progress → Fix Released
Revision history for this message
In , Fengming-pi (fengming-pi) wrote :

For Bryce:
I don't know exactly which commit fix this bug.I only use the latest git code(both Xorg and intel driver).

Bryce Harrington (bryce)
Changed in xserver-xorg-video-intel:
assignee: nobody → bryceharrington
Revision history for this message
Russell Sears (sears) wrote :

Rotation with direct rendering is fixed in hardy as of yesterday (2:2.1.1-4ubuntu2) on my lenovo x61 tablet.

Sadly, the window borders are corrupted and screen rotation breaks in a different way when I enable compiz.

Also, Hardy's xorg breaks my tablet's stylus (it can't seem to find the wacom driver; I'm guessing this is a version conflict, as the newest wacom driver is from gutsy...), so I haven't tested the patch very thoroughly.

Revision history for this message
Bryce Harrington (bryce) wrote :

Russell, thanks for reporting this. Xiaoyang Yu, can you confirm that the rotation and dragging is working for you as well?

The other two issues with window borders and tablets need to be reported as separate bugs, if they're not already. Russell, would you mind checking into this?

Revision history for this message
Russell Sears (sears) wrote : Re: [Bug 129380] Re: It does not refresh well when dragging a window in the rotated screen (Santa Rosa)

Done.

Bryce Harrington wrote:
> Russell, thanks for reporting this. Xiaoyang Yu, can you confirm that
> the rotation and dragging is working for you as well?
>
> The other two issues with window borders and tablets need to be reported
> as separate bugs, if they're not already. Russell, would you mind
> checking into this?
>

Revision history for this message
lcampagn (luke-campagnola) wrote :

Confirmed for gutsy on x60 tablet. I'll try to get hardy running soon so I can do some testing..

Revision history for this message
Xiaoyang Yu (xiaoyang-yu) wrote :

I checked it on a Santa Rosa SDV and found it still not fixed.

I used Gutsy with "apt-get update" to get the latest version. Is there any special packages I need to update manually?

Revision history for this message
Rolla Selbak (rolla-n-selbak) wrote :

I also report the bug still exists on my T61. I perform 'xrandr -0 left' , right, and inverted. All with the same result. I updated my Ubuntu 7.10 today before I tested.

Revision history for this message
Russell Sears (sears) wrote :

It hasn't been fixed in gutsy. You'd need to update to the pre-release version in hardy. That version broke other, more important, things on my system, like synaptics and wacom drivers. Plus, compiz still isn't working properly.

Revision history for this message
Xiaoyang Yu (xiaoyang-yu) wrote : RE: [Bug 129380] Re: It does not refresh well when dragging a window inthe rotated screen (Santa Rosa)

Russell:

Thanks for the information. Can I update to hardy in Gutsy? What command should I use? Or do I need to install a new ISO? Where can I find it?

Thank you very much!

>-----Original Message-----
>From: <email address hidden> [mailto:<email address hidden>] On
>Behalf Of Russell Sears
>Sent: 2007年11月13日 5:46
>To: Yu, Xiaoyang
>Subject: [Bug 129380] Re: It does not refresh well when
>dragging a window inthe rotated screen (Santa Rosa)
>
>It hasn't been fixed in gutsy. You'd need to update to the pre-release
>version in hardy. That version broke other, more important, things on
>my system, like synaptics and wacom drivers. Plus, compiz still isn't
>working properly.
>
>--
>It does not refresh well when dragging a window in the rotated
>screen (Santa Rosa)
>https://bugs.launchpad.net/bugs/129380
>You received this bug notification because you are a direct subscriber
>of the bug.
>

Revision history for this message
Russell Sears (sears) wrote :

I don't really recommend doing this for the current intel ubuntu
package, given the bugs I mentioned above. Also, (according to the xorg
mailing list) there are some performance regressions and other
problems... Things should improve when version 2.2.0 of the driver is
released. Also, it's not easy to download if you're unhappy with the
new server.

If you still want to upgrade to this package (or something else from
hardy), here's how:

Go to synaptic, settings->repositories->third party software->add

Enter this into the dialog with this (one line):

deb http://www.gtlib.gatech.edu/pub/ubuntu hardy main restricted
universe multiverse

or with this:

deb http://mirrors.kernel.org/ubuntu hardy main restricted universe
multiverse

(you can replace the url with your favorite ubuntu mirror if you want)

Hit OK through the dialogs, and click "reload". Upgrade just the
xserver-xorg-video-intel package and any dependencies synaptic says need
to be updated.

Hit apply. Once it's done, go back to settings, and uncheck the entry
you created for hardy. Otherwise, when you update your system, it'll
upgrade everything to hardy versions (which might be what you want...).

You can also selectively upgrade by editing /etc/apt/preferences, or
messing with settings->preferences->distribution in synaptic. Look
online for more info.

Revision history for this message
Xiaoyang Yu (xiaoyang-yu) wrote : RE: [Bug 129380] Re: It does not refresh well when dragging a windowinthe rotated screen (Santa Rosa)

Cool! Thank you very much for the detailed information.

When select to upgrade package xserver-xorg-video-intel, package xserver-xorg-core is required to be upgraded.

I upgraded all the required package. And found the bug is fixed.

Since Visual Effect cannot be enabled on Santa Rosa (https://bugs.launchpad.net/bugs/153818), so I cannot test it with Visual Effect enabled.

Thanks
Xiaoyang (Max)

>-----Original Message-----
>From: <email address hidden> [mailto:<email address hidden>] On
>Behalf Of Russell Sears
>Sent: 2007年11月13日 12:14
>To: Yu, Xiaoyang
>Subject: Re: [Bug 129380] Re: It does not refresh well when
>dragging a windowinthe rotated screen (Santa Rosa)
>
>I don't really recommend doing this for the current intel ubuntu
>package, given the bugs I mentioned above. Also, (according
>to the xorg
>mailing list) there are some performance regressions and other
>problems... Things should improve when version 2.2.0 of the driver is
>released. Also, it's not easy to download if you're unhappy with the
>new server.
>
>If you still want to upgrade to this package (or something else from
>hardy), here's how:
>
>Go to synaptic, settings->repositories->third party software->add
>
>Enter this into the dialog with this (one line):
>
>deb http://www.gtlib.gatech.edu/pub/ubuntu hardy main restricted
>universe multiverse
>
>or with this:
>
>deb http://mirrors.kernel.org/ubuntu hardy main restricted universe
>multiverse
>
>(you can replace the url with your favorite ubuntu mirror if you want)
>
>Hit OK through the dialogs, and click "reload". Upgrade just the
>xserver-xorg-video-intel package and any dependencies synaptic
>says need
>to be updated.
>
>Hit apply. Once it's done, go back to settings, and uncheck the entry
>you created for hardy. Otherwise, when you update your system, it'll
>upgrade everything to hardy versions (which might be what you want...).
>
>You can also selectively upgrade by editing /etc/apt/preferences, or
>messing with settings->preferences->distribution in synaptic. Look
>online for more info.
>
>--
>It does not refresh well when dragging a window in the rotated
>screen (Santa Rosa)
>https://bugs.launchpad.net/bugs/129380
>You received this bug notification because you are a direct subscriber
>of the bug.
>

Revision history for this message
Xiaoyang Yu (xiaoyang-yu) wrote :

Fixed in Hardy.

Changed in xserver-xorg-video-intel:
status: Triaged → Fix Released
Revision history for this message
kyencer (kyle-yencer) wrote :

In gutsy, I have overcome this problem by using the driver from http://www.intellinuxgraphics.org. The following steps were used to solve the issue, until it is fixed in a gutsy package or until hardy comes out.

Install necessary dependencies for building the driver:

sudo apt-get install git-core autoreconf autoconf automake automake-1.9 automake1.9 libtool xserver-xorg-dev pkg-config x11proto-xinerama-dev x11proto-randr-dev x11proto-render-dev x11proto-fonts-dev x11proto-xext-dec x11proto-render-dev x11proto-fonts-dev x11proto-xext-dev libxvmc-dev x11proto-xf86dri-dev libgl1-mesa-dev x11proto-gl-dev

Download the intel driver:

cd /tmp
git-clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-intel

Compile the driver:

cd /tmp/xf86-video-intel
sh autogen.sh
make
sudo make install

Copy the driver into the appropriate location:

sudo cp /usr/lib/xorg/modules/drivers/intel_drv.so /usr/lib/xorg/modules/drivers/intel_drv.so.orig
sudo cp /usr/local/lib/xorg/modules/drivers/intel_drv.so /usr/lib/xorg/modules/drivers/

Logout and restart the X server.

Xrandr rotation should be working great now.

Keep in mind this is a temporary solution, but if you are anxious for this to work on gutsy this is a band aid that will hold you over.

Thanks,

Kyle

Revision history for this message
lcampagn (luke-campagnola) wrote : Re: [Bug 129380] Re: It does not refresh well when dragging a window in the rotated screen (Santa Rosa)

I installed the driver from source as suggested, but this did not fix the
problem. Graphics are still very slow when the screen is rotated.
I'll keep playing with it and post if I can get it fixed..

Luke

On Nov 30, 2007 12:22 AM, kyencer <email address hidden> wrote:

> In gutsy, I have overcome this problem by using the driver from
> http://www.intellinuxgraphics.org. The following steps were used to
> solve the issue, until it is fixed in a gutsy package or until hardy
> comes out.
>
> Install necessary dependencies for building the driver:
>
> sudo apt-get install git-core autoreconf autoconf automake automake-1.9
> automake1.9 libtool xserver-xorg-dev pkg-config x11proto-xinerama-dev
> x11proto-randr-dev x11proto-render-dev x11proto-fonts-dev x11proto-xext-
> dec x11proto-render-dev x11proto-fonts-dev x11proto-xext-dev libxvmc-dev
> x11proto-xf86dri-dev libgl1-mesa-dev x11proto-gl-dev
>
> Download the intel driver:
>
> cd /tmp
> git-clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-intel
>
> Compile the driver:
>
> cd /tmp/xf86-video-intel
> sh autogen.sh
> make
> sudo make install
>
> Copy the driver into the appropriate location:
>
> sudo cp /usr/lib/xorg/modules/drivers/intel_drv.so
> /usr/lib/xorg/modules/drivers/intel_drv.so.orig
> sudo cp /usr/local/lib/xorg/modules/drivers/intel_drv.so
> /usr/lib/xorg/modules/drivers/
>
> Logout and restart the X server.
>
> Xrandr rotation should be working great now.
>
> Keep in mind this is a temporary solution, but if you are anxious for
> this to work on gutsy this is a band aid that will hold you over.
>
> Thanks,
>
> Kyle
>
> --
> It does not refresh well when dragging a window in the rotated screen
> (Santa Rosa)
> https://bugs.launchpad.net/bugs/129380
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
lcampagn (luke-campagnola) wrote :

I have also installed Hardy and this has still not fixed the problem for me.. can somebody post a working xorg.conf or offer some other suggestions?

Revision history for this message
Rolla Selbak (rolla-n-selbak) wrote :

Xiaoyang, you say the problem has been fixed with Hardy Alpha1, correct? Just want to confirm.

Revision history for this message
Xiaoyang Yu (xiaoyang-yu) wrote : RE: [Bug 129380] Re: It does not refresh well when dragging a window inthe rotated screen (Santa Rosa)

Rolla:

Yes. Kevin found this bug is fixed in Hardy Alpha 1.

Revision history for this message
dnquark (leo-alekseyev+launchpad) wrote :

For me the problem is there in Hardy Alpha 4 (Intel 965 adapter). In Gutsy, enabling 3D acceleration prevented screen refresh after rotate. In Hardy, enabling 3D acceleration but disabling compiz solves the problem. However, when compiz is enabled, the screen doesn't refresh after rotate, making it impossible to use compiz + tablet functionality.

Revision history for this message
Andy Gayton (cablehead) wrote :

I've the Intel 965 adapter as well. I've just dist-upgraded to Hardy (stable). I can confirm the behaviour dnquark describes. On gutsy you had to have DRI disabled in order to be able to rotate the screen. On hardy, you can enable DRI - but still require compiz to be disabled.

Revision history for this message
cdivossen (claus-divossen) wrote :

I discovered that the tiling option of the driver mostly solves it for me (Intel 945GM). I used "x11perf -scroll10" to measure the performance:

Normal screen orientation:
> 3000000 reps @ 0.0022 msec (465000.0/sec): Scroll 10x10 pixels

Without the tiling option, in "right" orientation:
> 800000 reps @ 0.0068 msec (148000.0/sec): Scroll 10x10 pixels

After adding Option "Tiling" "false" to the device section in xorg.conf:
> 2000000 reps @ 0.0026 msec (387000.0/sec): Scroll 10x10 pixels

Still a bit slower than in normal orientation, but I don't feel the difference anymore.

Revision history for this message
lcampagn (luke-campagnola) wrote : Re: [Bug 129380] Re: It does not refresh well when dragging a window in the rotated screen (Santa Rosa)

Unfortunately, this fix does not work for me. The benchmark times
using x11perf as suggested are not significantly changed with or
without the tiling option, and web browser scrolling is still
noticeably degraded under rotation.

Q

On Thu, Jul 3, 2008 at 1:56 PM, cdivossen <email address hidden> wrote:
> I discovered that the tiling option of the driver mostly solves it for
> me (Intel 945GM). I used "x11perf -scroll10" to measure the performance:
>
> Normal screen orientation:
>> 3000000 reps @ 0.0022 msec (465000.0/sec): Scroll 10x10 pixels
>
> Without the tiling option, in "right" orientation:
>> 800000 reps @ 0.0068 msec (148000.0/sec): Scroll 10x10 pixels
>
> After adding Option "Tiling" "false" to the device section in xorg.conf:
>> 2000000 reps @ 0.0026 msec (387000.0/sec): Scroll 10x10 pixels
>
> Still a bit slower than in normal orientation, but I don't feel the
> difference anymore.
>
> --
> It does not refresh well when dragging a window in the rotated screen (Santa Rosa)
> https://bugs.launchpad.net/bugs/129380
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
yaroslav (yarik-yarik) wrote :

The following solves the problem for me:

Section "Device"
        Identifier "Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
        Driver "intel"
        BusID "PCI:0:2:0"
        Option "DRI" "true"
        Option "AccelMethod" "EXA"
        Option "Tiling" "No"
EndSection

Revision history for this message
Ricky Brent (rickybrent) wrote :

Turning off tiling made it respond *much* more quickly for me as well. I read there were many disadvantages to doing without tiling, but the massive performance boost while rotated is worth it.

Changed in xorg-server:
importance: Unknown → High
Changed in xorg-server:
importance: High → Unknown
Changed in xorg-server:
importance: Unknown → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.