[i855] screen corruption when switching resolution

Bug #391084 reported by Jonas Haraldsson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xf86-video-intel
Invalid
Medium
linux (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: xserver-xorg-video-intel

Screen corruption on xrandr --output VGA --mode 1280x1024.

This happens on i855GM in Jaunty.

The highest resolution on the laptop monitor is 1024x768.
The external monitor is detected and I can choose 1280x1024, but when I do, the display output gets corrupted.

This seems to be very similar to bug #325781

[lspci]
00:00.0 Host bridge: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
00:00.1 System peripheral: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
00:00.3 System peripheral: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
00:02.1 Display controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)

Revision history for this message
Jonas Haraldsson (jonas-393950) wrote :
Revision history for this message
Jonas Haraldsson (jonas-393950) wrote :
Revision history for this message
Jonas Haraldsson (jonas-393950) wrote :
Revision history for this message
Jonas Haraldsson (jonas-393950) wrote :
description: updated
description: updated
Bryce Harrington (bryce)
Changed in xserver-xorg-video-intel (Ubuntu):
status: New → Confirmed
Revision history for this message
Bryce Harrington (bryce) wrote :

[This is an automatic notification.]

A new major version of the -intel driver is now available in Karmic.

This version includes a major reworking of the acceleration
architecture, which resolves a huge number of issues. We do not know
whether it resolves the issue you reported.

Would you mind testing Karmic Alpha-2 and seeing if it is still a
problem? CD ISO images are available here:

  http://cdimages.ubuntu.com/releases/karmic/

If the issue can still be reproduced on karmic, please report here with
your findings, and attach a fresh Xorg.0.log from your test, and we will
be able to forward the bug upstream.

Otherwise, if the bug no longer exists in Karmic, let us know that as
well.

In the off chance you encounter different bugs while attempting to test
Karmic, please report those as new bug reports.

Changed in xserver-xorg-video-intel (Ubuntu):
status: Confirmed → New
status: New → Incomplete
Revision history for this message
Jonas Haraldsson (jonas-393950) wrote :

I repeated the same test with the Karmic Alpha-2 live CD and got the same result, still corrupted display when switching to 1280x1024 resolution.

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

Thanks for testing

Changed in xserver-xorg-video-intel (Ubuntu):
importance: Undecided → Medium
status: Incomplete → Confirmed
Geir Ove Myhr (gomyhr)
tags: added: 855gm corruption jaunty karmic
Revision history for this message
Geir Ove Myhr (gomyhr) wrote :

To get an idea where in the code the problem is, could you try disabling a few things (only one at a time) to see if it makes the problem go away:
- System -> Preferences -> Appearance -> Visual Effects: Set to none
- In xorg.conf "Device" section, one of the following lines at a time:
  Option "NoAccel" "true"
  Option "Tiling" "false"
  Option "DRI" "false"

Revision history for this message
Jonas Haraldsson (jonas-393950) wrote :

I tested all four changes in Jaunty:

1. Visual effects: none => solves the problem
2. NoAccel: true => solves the problem
3. Tiling: false => does not help
4. DRI: false => solves the problem

With the Karmic Alpha-2 live CD I only tested the first change:

1. Visual effects: none => solves the problem

Do you want me to test the other three changes as well in Karmic Koala?

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

Hi Jonas, what you've tested is sufficient, but please also attach a fresh Xorg.0.log and Xorg.0.log.old from after reproducing the issue.

We just uploaded a new version of the driver today with a lot of fixes, so if you can update to the latest Karmic before reproducing the issue, that would be very helpful.

Changed in xserver-xorg-video-intel (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Jonas Haraldsson (jonas-393950) wrote :

Hi,

Until now I have only tested on Karmic with the Alpha2 live-CD.

Today I upgraded my laptop to Karmic and updated to all the newest packages.

After the upgrade the resolution of the external display changed back to 1024x768. (I had it working at 1280x1024).
Changing the resolution with xrandr did not work at all any more. Nothing happens when i type, for example:
xrandr --output VGA --mode 1280x1024, or some other resolution, no error message, no flickering display, just nothing.

Then I opened the Gnome display settings dialog and when I unchecked "Mirror displays" and turned off the laptop monitor, I could change the external monitor resolution to 1280x1024. This worked fine.

Then I opened the Gnome display settings dialog again and turned on the laptop monitor, with the laptop monitor and external monitor side-by-side. I was informed that the virtual resolution in xorg.conf would be changed and was then prompted to log out and in again.

After restarting the computer, the X-Server and GDM stopped working completely. I only get a text mode login-prompt and nothing more.

So now I can not get GDM running at all. I am not sure of if this is a new bug.
Any hint of what to do next would be appreciated.

I attach the Xorg.0.log and Xorg.0.log.old.

After tomorrow, I will not have access to this computer again until in september.

Revision history for this message
Jonas Haraldsson (jonas-393950) wrote :
Revision history for this message
Jonas Haraldsson (jonas-393950) wrote :

After restoring xorg.conf to default (removing virtual resolution), X-Server / GDM works again.

Now changing resolution of the external display works without problems, even with
System -> Preferences -> Appearance -> Visual Effects: normal.

But the other problem remains, that xrandr does not work (nothing happens).

I attach Xorg.0.log and Xorg.0.log.old agagin.

Revision history for this message
Jonas Haraldsson (jonas-393950) wrote :
Bryce Harrington (bryce)
Changed in xserver-xorg-video-intel (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Bryce Harrington (bryce) wrote :

Hi Jonas,

I've forwarded your bug upstream to https://bugs.freedesktop.org/show_bug.cgi?id=22976 - please subscribe to this report in case upstream needs further information or wishes you to test something. Thanks ahead of time!

Changed in xserver-xorg-video-intel (Ubuntu):
status: Confirmed → Triaged
Changed in xserver-xorg-video-intel:
status: Unknown → Confirmed
Revision history for this message
Bryce Harrington (bryce) wrote :

Upstream has asked for some further information - please follow up on the upstream bug.

Revision history for this message
In , Juho-mikko-pellinen-lut (juho-mikko-pellinen-lut) wrote :

Created an attachment (id=28145)
Log with Dell plugged in to VGA from the start

I get drm/dri-errors to X-log when starting my computer with external display plugged in. The desktop resolution ends up being 1024x768 and it cannot be changed.

System info:
Chipset in use:
915GM (Laptop: Acer Travelmate 4101WLMi, Centrino with Pentium-M)
uname - m: i686
xf86-video-intel-2.8.0
x11-base/xorg-server-1.6.2-r1
media-libs/mesa-7.5-r2 "Mesa: Mesa 7.5 DEBUG build Jul 27 2009 20:39:10"
x11-libs/libdrm-2.4.11
kernel: 2.6.30-gentoo-r4
Linux distribution: Gentoo
Machine or mobo model: Acer Travelmate 4010WLMi
Display connectors: in use: VGA, LVDS; not used currently TV-out (S-video)
VGA: Dell 2007FP, 1600x1200 4:3 display.
LVDS: 1280x800 laptop panel

Reproduce steps:
Plug in external display (VGA).
Reboot the computer (cold/warm reboot, restarting X is not enough)
The computer starts in 1024x786-mode and it cannot be changed with xrandr.
The screen flashes every time xrandr is run though and xrandr reports correct detected resolution.

How to use "normally":
Unplug VGA connector, reboot and let X start up fully, connect external display to VGA (it is automatically in clone mode). Use xrandr to shut off LVDS and change VGA to 1600x1200.

PS. I have access to Dell 1503FP (1024x786) if this is thought to be a problem with this particular display.

Revision history for this message
In , Juho-mikko-pellinen-lut (juho-mikko-pellinen-lut) wrote :

Created an attachment (id=28146)
Log when VGA is not connnected to anything

Revision history for this message
In , Juho-mikko-pellinen-lut (juho-mikko-pellinen-lut) wrote :

Created an attachment (id=28147)
xorg.conf in use.

This (xorg.conf) is quite empty currently and even without config the situation stays the same.

Revision history for this message
In , Juho-mikko-pellinen-lut (juho-mikko-pellinen-lut) wrote :

Errors in short:
~ $ grep EE Xorg.0.log.withDellPluggedAndOn
Current Operating System: Linux pallokala 2.6.30-gentoo-r4 #2 PREEMPT Wed Jul 29 09:05:55 EEST 2009 i686
 (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(II) Loading extension MIT-SCREEN-SAVER
(EE) intel(0): [drm] Failed to open DRM device for : No such file or directory
(EE) intel(0): Failed to become DRM master.
(EE) intel(0): Failed to initialize kernel memory manager

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

are you using a prestine gentoo build? if so, please tell us where can we download it. And, have you tried LiveCD from other distros?

Revision history for this message
In , Juho-mikko-pellinen-lut (juho-mikko-pellinen-lut) wrote :

I'm using pristine ebuild from portage: http://packages.gentoo.org/package/x11-drivers/xf86-video-intel
The ebuild is here if you need it:
http://viewcvs.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-intel/xf86-video-intel-2.8.0.ebuild?rev=1.1&view=markup
AFAIK there are no patches yet added to 2.8.0.

I haven't tried this with any other liveCD, but I saw similar problems with both 2.7.99.901 and .902. And most probably with 2.7.1.
I can try Ubuntu 9.04 tonight/tomorrow.

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

ping~. Better to try Karmic Alpha3, if you choose Ubuntu ...

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

ping~

Revision history for this message
In , Juho-mikko-pellinen-lut (juho-mikko-pellinen-lut) wrote :

I'm currently downloading Karmic Koala Alpha3 and will test it tonight.
The Alpha4 is released in three days so I can also try it this week.

Revision history for this message
In , Juho-mikko-pellinen-lut (juho-mikko-pellinen-lut) wrote :

I'm currently running Ubuntu Karmix Koala Alpha3 and xrandr seems to be working.
I booted up and the display was 1024x768, but I could change the resolution to 1600x1200 and turn the LVDS-panel off with commands:
ubuntu@ubuntu:~$ xrandr --output LVDS1 --off
ubuntu@ubuntu:~$ xrandr --output VGA1 --mode 1600x1200

Before this was not possible when external display was plugged in.

The only major difference with this (Ubuntu) compared to my system is the kernel version. Mine is 2.6.30-gentoo-r4 while Alpha3 has 2.6.31-3. I didn't find any other major differences.

DRM-settings show up in log successfully like:
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
drmOpenByBusid: Searching for BusID pci:0000:00:02.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
drmOpenByBusid: drmOpenMinor returns 8
drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0

Next thing I will do is to upgrade my kernel to 2.6.31-something and see if this problem goes away.

Revision history for this message
In , Juho-mikko-pellinen-lut (juho-mikko-pellinen-lut) wrote :

Created an attachment (id=28486)
Xorg log of Karmic Koala Alpha3

This is the Xorg.0.log of Ubuntu Karmic Koala Alpha3.

Revision history for this message
In , Juho-mikko-pellinen-lut (juho-mikko-pellinen-lut) wrote :

Created an attachment (id=28487)
dmesg of Karmic Koala Alpha3

dmesg of Ubuntu Karmic Koala Alpha3 booting up with Dell plugged in.

Revision history for this message
In , Juho-mikko-pellinen-lut (juho-mikko-pellinen-lut) wrote :

I just emerged and compiled the most recent vanilla kernel 2.6.31-rc5 and now everything is working as it should.

The X.log has the following lines:
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 9, (OK)
drmOpenByBusid: Searching for BusID pci:0000:00:02.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 9, (OK)
drmOpenByBusid: drmOpenMinor returns 9
drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0

I think this bug can be closed now, because new kernel fixes this problem.

On the other hand glxgears reports now:
~ $ glxgears
Mesa: Mesa 7.5 DEBUG build Jul 27 2009 20:39:10
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn compression/decompression unavailable
4271 frames in 5.0 seconds = 854.177 FPS

Not Karmic Koala and neither the earlier 2.6.30 displayed that error IIRC.
But it is in no means fatal.

Other interesting point is that the Karmic Koala reported 4200fps while I get only 800fps, but it is probably because my system has a lot more background programs running.

Thanks for your time.
:)

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

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

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

According to the upstream bug, this was actually a kernel issue, solved in the 2.6.31-rc5 release, which we include in Karmic now. Feel free to reopen if you still find it to be a problem.

Changed in xserver-xorg-video-intel:
status: Confirmed → Unknown
affects: xserver-xorg-video-intel (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
status: Triaged → Fix Released
Changed in xserver-xorg-video-intel:
status: Unknown → Invalid
Changed in xserver-xorg-video-intel:
importance: Unknown → Medium
Changed in xserver-xorg-video-intel:
importance: Medium → Unknown
Changed in xserver-xorg-video-intel:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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