Flickering with version 2.4.0

Bug #256142 reported by Emil Soleyman
130
This bug affects 6 people
Affects Status Importance Assigned to Milestone
X.Org X server
Fix Released
Medium
xf86-video-intel
Fix Released
High
xserver-xorg-video-intel (Ubuntu)
Fix Released
Undecided
Unassigned
Declined for Intrepid by Bryce Harrington

Bug Description

Binary package hint: xserver-xorg-video-intel

This particular problem has been fixed in the git trunk:

http://gitweb.freedesktop.org/?p=xorg/driver/xf86-video-intel.git;a=commitdiff;h=2049ba211e7cdc383976c09f52c2b43acdd59481

Revision history for this message
In , Ben Gamari (bgamari) wrote :

Interestingly, the bug does not effect other pipes. I have had a CRT plugged into the VGA output and it has continued working fine while my laptop's LCD has gone blank.

Revision history for this message
In , Gordon Jin (gordon-jin) wrote :

Please attach xorg.conf and full Xorg.0.log.

Revision history for this message
In , Ben Gamari (bgamari) wrote :

Just to note, my machine is actually a Dell D820 although this problem was originally reported by a mac owner. Sorry, should have mentioned that earlier.

Revision history for this message
In , Ben Gamari (bgamari) wrote :

Created an attachment (id=12690)
My xorg.conf

Revision history for this message
In , Ben Gamari (bgamari) wrote :

Created an attachment (id=12691)
A log from a jittering (not yet blanked) X session

Revision history for this message
In , Ben Gamari (bgamari) wrote :

Created an attachment (id=12704)
Log file from crashed X

Just now the machine froze again, this time with a blank orange screen. I was able to switch to a VT, but the machine apparently locked when I attempted to switch back to X. This might be another issue but then again it might be related. Attached is the log file from the crashed X session

Revision history for this message
In , Ben Gamari (bgamari) wrote :

Any input on this bug? Even advice as how to approach debugging the bug myself would be welcome. I'm fairly competent at debugging driver issues but without an error I don't even know where to start.

Revision history for this message
In , Tino-keitel+fdo (tino-keitel+fdo) wrote :

Maybe a git bisect? The problem is that only a human can the problem, so no automatic bisect is possible.

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Does this still happen if you disable framebuffer compression? Does it still happen with more recent pulls from git?

Revision history for this message
In , Tino-keitel+fdo (tino-keitel+fdo) wrote :

It happens without EXA, and EXA is required for framebuffer compression AFAIK.

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Yes, but the driver defaults to EXA now, and your log indicates that it's in use.

Revision history for this message
In , Tino-keitel+fdo (tino-keitel+fdo) wrote :

To quote my original mail on the xorg mailing list regarding this issue:

----------------------------------------------------------------------
I tried the git version ab2055ebb20aa6de121fa377e488ce91913035ae of
intel_drv.so with an Xorg server version 1.4. The computer is a Mac
mini Core Duo with i945 graphics. A 1680x1050 TFT is connected via
DVI-D.

Every few seconds, the whole screen jittered for some tenth of a
second. After a few minutes of normal work, the whole picture suddenly
became black. Restarting the Xorg server or rebooting via kexec didn't
help. I had to do a hard reboot to get a working Xserver again.

Both of the above bugs already happened with a git version from a few
months ago. I can't tell what exact version that was, but the date
could be the 12th of September.
----------------------------------------------------------------------

This was with EXA disabled.

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Ah ok, thanks for the clarification. I was suspicious of FBC since it rescans the framebuffer every 15 seconds or so, but if you had EXA off, it should have been disabled (you would see messages in your log about it if it was still on for some reason).

Can you build the intel_reg_dumper tool (src/reg_dumper in the git tree) and try to get register dumps from while things are working and then after the screen blanks? If we're lucky, something will have changed and that might give us a clue. Otherwise it might just be a bad mode that the LCD rejects after awhile?

Adding Hong to the cc list since he's been looking at LCD mode programming lately.

Hong, any ideas?

Revision history for this message
In , Tino-keitel+fdo (tino-keitel+fdo) wrote :

I use a modeline in my xorg.conf to get a usable mode at all with version 2.1 (fixed meanwhile in version 2.2, which I would use this this bug would't be present). So I guess that 2.1 and 2.2 use the same mode.

Another detail: a reboot via kexec won't bring back a usable output, the screen stays black. I have do trigger a real reboot without kexec to get back working graphics.

Revision history for this message
In , Hong-liu (hong-liu) wrote :

(In reply to comment #14)
> I use a modeline in my xorg.conf to get a usable mode at all with version 2.1
> (fixed meanwhile in version 2.2, which I would use this this bug would't be
> present). So I guess that 2.1 and 2.2 use the same mode.
>

So which modeline is working with your card?
And would you please attach your xorg log with "modedebug" turned on?

Revision history for this message
In , Hong-liu (hong-liu) wrote :

(In reply to comment #7)
> Any input on this bug? Even advice as how to approach debugging the bug myself
> would be welcome. I'm fairly competent at debugging driver issues but without
> an error I don't even know where to start.
>
Hi, Ben
Would you please turn on the "modedebug" option and attach your xorg.log?
I am not sure whether your 1920x1200 (requires 162M pixel clock) is OK for our LVDS mode programming?

Thanks,
Hong

Revision history for this message
In , Jcnengel (jcnengel) wrote :

Does it help to unload the drm module from git and reload the one from kernel tree? At least that avoids the bug for me even without a reboot (see #13446).

Revision history for this message
In , Tino-keitel+fdo (tino-keitel+fdo) wrote :

I don't use drm from git. I always use the one from the kernel tree.

Revision history for this message
In , Ben Gamari (bgamari) wrote :

Created an attachment (id=12833)
Log of server with ModeDebug enabled

Revision history for this message
In , Ben Gamari (bgamari) wrote :

I just attached a log from Xorg starting with the ModeDebug option enabled. Note that I too run the kernel in-tree DRM modules (presently from 2.6.23). Additionally, it appears that framebuffer compression is enabled in my case.

Revision history for this message
In , sergiomb (sergio-sergiomb) wrote :

Created an attachment (id=12921)
blacklight fixes

Hi, I send this weekend this patch to Jesse Barnes and Lukas Hejtmanek. They are the authors , I just compile what I think is the best .
The patch solve (almost) all my problem, could you give a try , and feed back please

Revision history for this message
In , Ben Gamari (bgamari) wrote :

(In reply to comment #21)
> Created an attachment (id=12921) [details]
> blacklight fixes
>
> Hi, I send this weekend this patch to Jesse Barnes and Lukas Hejtmanek. They
> are the authors , I just compile what I think is the best .
> The patch solve (almost) all my problem, could you give a try , and feed back
> please
>

I have yet to try the patch you provided but unfortunately I doubt this will fix my problem. I'm fairly certain that the backlight on my machine (a Dell Latitude D820) is not controlled by the graphics controller. I'll give it a try anyways though.

Revision history for this message
In , Jcnengel (jcnengel) wrote :

I tested that patch and at least for me it changes nothing. Maybe because I also have a Dell Latitude D820. :)

Revision history for this message
In , Tino-keitel+fdo (tino-keitel+fdo) wrote :

I have this problem with an external Eizo TFT, so it shouldn't have to do anything with ACPI backlight stuff.

Revision history for this message
In , Ben Gamari (bgamari) wrote :

Yeah, sounds like the backlight code isn't the problem. Unfortunately, I've been having difficulty reproducing the problem lately. I don't believe it has happened in the last few days. Has anyone else found that the incidents have stopped wit recent git revisions or have I just had a lucky streak? I never was able to figure out a way to reliably produce the blanking, so maybe it's just been luck that it has stopped. Has anyone found a way to force the problem to occur?

Revision history for this message
In , Ben Gamari (bgamari) wrote :

Created an attachment (id=12933)
The output of intel_reg_dumper while the screen is working

I should point out that while the blanking may have apparently stopped, the jittering continues.

Revision history for this message
In , Jcnengel (jcnengel) wrote :

I just got the blanking error again. one additional remark: suspending to ram and resuming again restores the screen (VBE_POST??).
Also after that compiz had been killed.

Revision history for this message
In , Ben Gamari (bgamari) wrote :

Created an attachment (id=12983)
Register dump during blank screen

I finally managed to get the bug to recur. This time the screen turned straight white. This time I managed to SSH in to the machine and grab a register dump as well. Moreover, I can confirm that suspending and resuming the machine fixes the issue. Additionally I know for a fact that backlight control is not the issue:
  1) When I allowed the machine to sit idle, I could see gnome-power-manager eventually dim the display
  2) My machine does not rely on the GPU for backlight control.

I hope this helps. If there's anything else necessary for debugging, just ask.

- Ben

Revision history for this message
In , Tino-keitel+fdo (tino-keitel+fdo) wrote :

I just tried the latest git (d9df93578b74785c08ba860b4c9aa23b0c89c91c). The jittering is still there. However, no black screen so far.

Revision history for this message
In , Hong-liu (hong-liu) wrote :

(In reply to comment #29)
> I just tried the latest git (d9df93578b74785c08ba860b4c9aa23b0c89c91c). The
> jittering is still there. However, no black screen so far.
>

Would you please try to add some new modes toggling the polarity of HSYNC VSYNC to see if there is a mode working?

Thanks,
Hong

Revision history for this message
In , Ben Gamari (bgamari) wrote :

(In reply to comment #30)
> (In reply to comment #29)
> > I just tried the latest git (d9df93578b74785c08ba860b4c9aa23b0c89c91c). The
> > jittering is still there. However, no black screen so far.
> >
>
> Would you please try to add some new modes toggling the polarity of HSYNC VSYNC
> to see if there is a mode working?
>
> Thanks,
> Hong
>

Have there been any changesets that might fix the issue? I didn't see anything too promising in gitweb. Unfortunately, I won't be able to do any testing for a few weeks. Yesterday I dropped my laptop, triggering all manner of hardware failures. I'll definitely report back when I have my machine back, though.

P.S. Be careful about marking this as fixed. My screen behaved fine for nearly 72 hours once before blacking out four times in a matter of 10 minutes. It's a tricky one...

Revision history for this message
In , Tino-keitel+fdo (tino-keitel+fdo) wrote :

I already use a modeline (because I won't get a correct output without a modeline before 2.2.0).

Modeline "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync

This modeline works fine with 2.1.1, so I think that it should be no problem with 2.2.0, too.

Revision history for this message
In , Hong-liu (hong-liu) wrote :

(In reply to comment #32)
> I already use a modeline (because I won't get a correct output without a
> modeline before 2.2.0).
>
> Modeline "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089
> -hsync +vsync
>
> This modeline works fine with 2.1.1, so I think that it should be no problem
> with 2.2.0, too.
>
Hi, Tino
Since you can workaround your problem with your specific modeline, maybe there are something wrong with your monitor's EDID data. Would you please attach your xorg.log with modedebug turned on?

For Ben's problem, I don't have any clue now :(

Thanks,
Hong

Revision history for this message
In , Ben Gamari (bgamari) wrote :

(In reply to comment #33)
Well, I should have a new computer by Friday (albeit with an i965) so hopefully I'll be able to reproduce it at that point.

- Ben

> (In reply to comment #32)
> > I already use a modeline (because I won't get a correct output without a
> > modeline before 2.2.0).
> >
> > Modeline "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089
> > -hsync +vsync
> >
> > This modeline works fine with 2.1.1, so I think that it should be no problem
> > with 2.2.0, too.
> >
> Hi, Tino
> Since you can workaround your problem with your specific modeline, maybe there
> are something wrong with your monitor's EDID data. Would you please attach your
> xorg.log with modedebug turned on?
>
> For Ben's problem, I don't have any clue now :(
>
> Thanks,
> Hong
>

Revision history for this message
In , Tino-keitel+fdo (tino-keitel+fdo) wrote :

See Bug #10784. I attached logfiles with modedebug enabled to this bug.

Revision history for this message
In , Cpw (cpw) wrote :

Hi, I've also been experiencing this problem (jittery external DVI display, occasional external display blanking). Note that the laptop (Dell D620) doesn't hang, and the Laptop display (which was still enabled through xrandr) is still working. DVI is the only pipe that causes the problem btw (DVI is exposed through a port replicator too- that could be important).

I would love to get this issue fixed. The 2.1 driver didn't suffer from this problem in my experience. 2.2 definitely does. I run the debian packaged from sid.

Christian

Revision history for this message
In , Hong-liu (hong-liu) wrote :

(In reply to comment #36)
> Hi, I've also been experiencing this problem (jittery external DVI display,
> occasional external display blanking). Note that the laptop (Dell D620) doesn't
> hang, and the Laptop display (which was still enabled through xrandr) is still
> working. DVI is the only pipe that causes the problem btw (DVI is exposed
> through a port replicator too- that could be important).
>
Hi, Christian

Your problem is not the same as Ben's. Would you please open a new bug and attach the Xorg.log with modedebug turned on?

Thanks,
Hong

Revision history for this message
In , Jcnengel (jcnengel) wrote :

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

Revision history for this message
In , Hong-liu (hong-liu) wrote :

Created an attachment (id=13717)
enable ssc for lvds dual channel

Hi, Ben

Would you please try this patch? And please attach the xorg log with modedebug turned on (with this patched applied) if problem is still there.

Thanks,
Hong

Revision history for this message
In , Jcnengel (jcnengel) wrote :

I used a slightly adapted version for the current git (origin/xvmc branch), that did not solve the problem, although the log says:
(WW) intel(0): enable SSC clock for LVDS
(WW) intel(0): enabling SSC clock for LVDS, setting dpll_b

Revision history for this message
In , Brice Goglin (brice-goglin) wrote :

Tried on a Dell D420 (i945) with a DVI Dell 2007FP monitor (and LVDS closed), we still get the same blank screen and flickering from time to time.

Revision history for this message
In , Ross Burton (ross) wrote :

I think I'm seeing this too, xserver-xorg 1.4.1, -intel 2.2.0, on a Thinkpad X60.

When I work on the LVDS, the display is fine. When I switch to VGA and disable the LVDS, I get occasional jitters of the screen and sometimes (one every few days) the VGA output turns itself off. If I remove the VGA cable and blindly xrandr --auto, the LVDS turns back on but I can't enable VGA again.

My monitor appears to emit broken EDID, or the intel driver doesn't read it properly, so I need a custom modeline:

Modeline "1680x1050" 149.00 1680 1760 1944 2280 1050 1050 1052 1089

Is this the same issue, or should I file another bug? Can I contribute anything useful?

Revision history for this message
In , Gordon Jin (gordon-jin) wrote :

Increasing priority, as it seems many people are impacted, though I'm not seeing it.

Revision history for this message
In , Tino-keitel+fdo (tino-keitel+fdo) wrote :

I planned to try a git bisect to hunt this bug down. But this week I tested the 2.2 git branch and first thought that the bug is gone, because I didn't notice the jittering and got no blank screen after an hour or so. However, I left the computer running and when I came back from work I had a blank screen. Then I rebooted and after a while I got the jittering again.

So it looks to be hard to reproduce under certain conditions. I saw no procedure to trigger the bug or make it occur faster. Or did I miss something?

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

I wonder if disabling and re-enabling the display is the culprit? If you leave it for awhile, the DPMS callbacks should disable both the outputs and the actual pipes. If you do that a few times can you reproduce the problem?

Revision history for this message
In , Ross Burton (ross) wrote :

I disabled Framebuffer compression and can confirm that this has stopped the jittering for me.

Revision history for this message
In , Tino-keitel+fdo (tino-keitel+fdo) wrote :

I also disabled FramebufferCompression now, and so far got no jittering. However, I'll wait one or two days to be sure.

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

Tino, any more update after these days?

re-title this bug

Revision history for this message
In , Tino-keitel+fdo (tino-keitel+fdo) wrote :

I got neither jittering nor blanking during the last days with framebuffer compression disabled, so it looks like this is the culprit.

Revision history for this message
In , Brice Goglin (brice-goglin) wrote :

I think I can confirm what Tino says. I had blanking at least twice a day on my i945 earlier. With FramebufferCompression disabled, no problem so far.

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Can you give the latest git bits a try? I pushed a change that I hope will fix this...

Revision history for this message
In , Adam Williamson (awilliamson) wrote :

I am experiencing this bug (I believe) on my laptop (i945 chipset). With framebuffer compression enabled, on average every twelve hours (but with a wide variance - sometimes it happens within an hour of rebooting, sometimes over a day), one or both displays is 'blanked' (actually not blanked, but set to displaying all pixels of a single color, usually black but occasionally grey or white or even another color).

For a long time I was running release 2.2.0 in clone mode on the internal display (LVDS) and an external display (VGA). The external display would be blanked, but never the internal display. I recently switched to git as of Sunday, and a side-by-side configuration (VGA right of LVDS). The two times the issue happened in this configuration before I disabled framebuffer compression, *both* displays were blanked.

As others have stated, neither restarting X nor fiddling with xrandr, disconnected and reconnecting the affected head etc can fix it - only a system restart.

Of note is that I did not see any display 'jitters', that I recall.

I will update to today's git, re-enable framebuffer compression, and see if the problem continues to occur...unless this is fixed in the driver, I'm recommending our X maintainer to disable framebuffer compression by default for the next Mandriva release (2008 Spring, due in April).

Revision history for this message
In , Adam Williamson (awilliamson) wrote :

hmm, per comment 36 / 37, mine may not be the same bug. If not, can someone please direct me to the appropriate bug? I can't find it.

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

(In reply to comment #53)
> hmm, per comment 36 / 37, mine may not be the same bug. If not, can someone
> please direct me to the appropriate bug? I can't find it.
>
Adam, if you can confirm disableing FBC will relieve your pain, it might be the same bug.. we will wait for your test result of the latest git tree. thanks.

Revision history for this message
In , Tino-keitel+fdo (tino-keitel+fdo) wrote :

I tested the xf86-video-intel-2.2-branch branch as of commit 2c8f87be99957e0e18d8bcda46bd8706ab374253 on my Mac mini using LVDS connected via DVI. I still get the jitter sometimes, and yesterday I also got a blank screen. So the bug is still present for me.

Revision history for this message
In , Ross Burton (ross) wrote :

I'm running the packaged intel driver in Debian Sid (2.2.0.90 with commit 2c8f87be99957e0e18d8bcda46bd8706ab374253 merged) on a ThinkPad X60 (945GM/GMS) and with frame buffer compression on I get screen jitter on the VGA output (not on LVDS).

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Created an attachment (id=14432)
Change FBC idle mode

Can you give this patch a try? It should (hopefully) change the idle mode for FBC to be a little more bus friendly. It may also be that FBC_CONTROL2 can't be written at all on pre-i965 chips.

Revision history for this message
In , Wyskas (wyskas) wrote :

This bug seems to be fixed in 2.2.1.

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

Tino or Ross, Can you confirm Anton's finding (gone in 2.2.1) ? thanks.

Revision history for this message
In , Ross Burton (ross) wrote :

I turned FBC off with 2.2.1 and still get jittering on my VGA output. I'll try that patch now.

Revision history for this message
In , Ross Burton (ross) wrote :

It appears that Jesse's patch appears to be helping, I've had X running for 20 minutes and no jittering so far.

Revision history for this message
In , Ross Burton (ross) wrote :

Four hours and still no jittering with the patch, which is great.

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Ross, if you're seeing flicker w/FBC disabled, then you may be seeing another bug. Earlier reporters only saw this problem when FBC was on, and my patch should only affect that case. Can you clarify?

Revision history for this message
In , Ross Burton (ross) wrote :

Sorry I meant I disabled the line turning FBC off... :) FBC is enabled now, and I'm not seeing jittering but I used too before the patch was applied.

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Ok, thanks for testing Ross. Fix pushed as 4936e097028b91f4bdc2d9101dc49f6fe586e718.

Revision history for this message
In , Ross Burton (ross) wrote :

I'm sorry to be the bearer of bad news, but despite a day of this patch working, I rebooted today and have jitter again.

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Ok, back to the drawing board then...

Revision history for this message
In , Pbrobinson (pbrobinson) wrote :

I'm seeing the jitter too. I've been seeing this on Fedora rawide (F9 beta). The jitter occurs every 5-10 mins on the internal lcd (1680x150) but during a normal 8-10 hour day I don't normally get a lockup although I have seen it when running for extended periods +24hrs. Interesting thing is I don't think this use to happen on Fedora 8 on the same machine. But I had seen it on F7 with the later releases of the driver on a Dell D620.

The fedora rpm is xorg-x11-drv-i810-2.2.1-15.fc9.x86_64

Device is a HP Compaq nx7400

lspci
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)

Revision history for this message
In , Pbrobinson (pbrobinson) wrote :

I spoke too soon. The latest version running on Fedora (same as one mentioned in comment #68) locks up every 3-4 hours with the screen suddenly going either black or white.

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Peter, does the lockup go away if you disable framebuffer compression?

Revision history for this message
In , Pbrobinson (pbrobinson) wrote :

No idea. How do I disable fb compression?

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Option "framebuffercompression" "off" in the intel driver section of your xorg.conf.

Revision history for this message
In , Pbrobinson (pbrobinson) wrote :

With that I get the following in Xorg.0.log so it looks to be disabled. I've been running it around 10 mins and looks quite good.

(II) intel(0): EDID vendor "QDS", prod id 63
(II) intel(0): Printing DDC gathered Modelines:
(II) intel(0): Modeline "1680x1050"x0.0 119.00 1680 1728 1760 1840 1050 1053 1059 1080 -hsync -vsync (64.7 kHz)
(II) intel(0): EDID vendor "QDS", prod id 63
(II) intel(0): fbc disabled on plane a
(II) intel(0): fbc disabled on plane a
(II) intel(0): fbc disabled on plane a
(II) intel(0): fbc disabled on plane a
(II) intel(0): fbc disabled on plane a

Revision history for this message
In , Pbrobinson (pbrobinson) wrote :

Just an update. Its looking a lot better with the fbc turned off. I don't think its perfect but the random flickers seem to have gone, and touch wood I'm yet to see a lock up after 3-4 hours like I was seeing previously.

Revision history for this message
In , Matěj Cepl (mcepl) wrote :

Created an attachment (id=15590)
/var/log/Xorg.0.log

I am not sure whether this is relevant, even though I have FramebufferCompression set to "no" there is periodicall blinking (I am not sure whether it is exactly regular, but it feels like every minute or so) when whole display blinks for a fraction of second like when visual-bell is set on (but there is no reason to beel set off).

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

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

Revision history for this message
In , Terton (terton) wrote :

I seem to have this same problem, using Ubuntu hardy package xserver-xorg-video-intel 2:2.2.1-1ubuntu12.

I have not tried changing the FramebufferCompression option yet.

One thing I have noticed is that the problem does not start for me until *after* the first time the screen is blanked by the power management. I don't know if that is useful information, but I haven't seen it mentioned before. Once it starts, it happens pretty regularly every 2 minutes or so (but I don't believe it's a fixed pattern).

Actually, I only see lines referring to 'fbc enabled' after the first power management screen blanking, so maybe that's the connection. Sorry, but I'm not really familiar with what the framebuffer compression is supposed to be doing.

I'm seeing this on an external Samsung SyncMaster 220WM 22" LCD at 1680x1050 connected to a Dell Inspiron e1405 with Intel 945GM graphics.

Thanks...

Revision history for this message
In , Terton (terton) wrote :

Also, for what it's worth, I have verified the problem at two separate resolutions, 1680x1050 and 1280x1024, in case that helps re: whether a specific modeline is the problem.

Revision history for this message
In , Pbrobinson (pbrobinson) wrote :

I'm pretty sure others have seen the same thing after as suspend and turning off FBC fixed it for them.

Revision history for this message
In , Terton (terton) wrote :

Yes, thanks, it seems to work for me as well.

However, I am assuming that the developers will eventually want to fix the actual bug so that the FBC feature is usable.

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Can I get the following questions answered by the people who have been seeing this problem?

Does it occur with FBC disabled?
Does it occur on the builtin LCD panel?
Does it occur when only one display is attached (builtin panel or otherwise)?

At this point, I suspect the memory arbitration or FIFO settings may be incorrect in some cases, and FBC exacerbates the problem (but it still might happen in other, non-FBC configs).

I updated the register dumper in git master so that it will dump the FIFO watermark regs, I'd appreciate register dumps from problem configurations.

In the meantime, I'm trying to reproduce locally by abusing my memory arbitration & FIFO watermark regs...

Revision history for this message
In , Terton (terton) wrote :

In my experience,

-- No, it does not occur with FBC disabled.
-- No, it does not occur on the built-in panel.
-- Not sure if the built-in panel is meant to be considered permanently "attached", but the problem does happen when I am using only the external monitor and have turned off the built-in panel with 'xrandr --output LVDS --off' (in fact this is the normal case where I see the problem).

Revision history for this message
In , Jcnengel (jcnengel) wrote :

Three answers:
- No, it does not occur while FBC disabled
- If you mean LVDS: Yes, that is my only display
- The same as above: It occurs, if only LVDS is attached and active

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Created an attachment (id=16394)
Add FIFO debug code & default values

Success (maybe). I was able to reproduce the flickering as described by allocating less FIFO RAM to plane A, and eventually the display blanked. The debug code included in this patch caught the underrun status and printed an error in my log, and once the display blanked I needed to reboot for things to work again.

The patch also includes basic FIFO settings, which will override the BIOS values and may prevent the problem, but I'm still interested in getting answers to the questions I posed earlier.

Thanks,
Jesse

Revision history for this message
In , Notting (notting) wrote :

(In reply to comment #81)
> Does it occur with FBC disabled?

Have not seen it in the month+ since I disabled FBC.

> Does it occur on the builtin LCD panel?

That's the only place I saw it as...

> Does it occur when only one display is attached (builtin panel or otherwise)?

... I generally only run with the LVDS active.

Revision history for this message
In , Pbrobinson (pbrobinson) wrote :

Does it occur with FBC disabled?

No

Does it occur on the builtin LCD panel?

Yes

Does it occur when only one display is attached (builtin panel or otherwise)?

I only use the builtin LCD panel.

Revision history for this message
In , Ross Burton (ross) wrote :

- I don't get jittering with FBC disabled. I do get occasional screen blanking still.
- I only see jittering on VGA output to a LCD panel, not LVDS
- When I see jittering the LVDS is disabled, so there is only one output

I just noticed that my previous xorg log after a screen black/reboot contains this:

(WW) intel(0): PRB0_CTL (0x0001f001) indicates ring buffer enabled
(WW) intel(0): PRB0_HEAD (0xb0613474) and PRB0_TAIL (0x000135c8) indicate ring buffer not flushed
(WW) intel(0): Existing errors found in hardware state.

That said, I'll update to git drivers shortly.

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

So no one wants to test the last patch? Another good default to try in case the stock patch doesn't work would be to set DSPARB to 48, that should split the FIFO RAM equally between planes A & B, which are the only ones the current driver uses.

Revision history for this message
In , Guillaume Melquiond (guillaume-melquiond) wrote :

To answer the questions:
- Jitter only happens with FBC.
- It happens only on the VGA display. (But that is because the LVDS is always on plane B, due to my DRM being the one from kernel 2.6.25 and not from git master.)

I have tried the patch. It did not fix the issue at all (though it may have reduced how often it occurs). Nevertheless, you seem to be on the right track: Whenever a flicker occurs, an "underrun on pipe A" line appears in my log.

I will now play with the DSPARB register. When you said 48, did you mean that the register should be set to 0x2FB0? (Just to be sure I understand the documentation correctly.) Should I care about display C / overlay?

Revision history for this message
In , Guillaume Melquiond (guillaume-melquiond) wrote :

With DSPARB set to 0x2FB0, it is still as bad as before. But with 0x2FC0, the VGA display is finally stable!

Once I have a fixed DRM, I will try again with 0x2FB0. (Since the DRM will set the LVDS on plane A hopefully, the clock rate will be lowered on the fifo of plane A.)

Revision history for this message
In , Eugene San (eugenesan) wrote :

(In reply to comment #88)
> So no one wants to test the last patch? Another good default to try in case
> the stock patch doesn't work would be to set DSPARB to 48, that should split
> the FIFO RAM equally between planes A & B, which are the only ones the current
> driver uses.
>

I am testing the patch...
I've tried it with 2.3.1 from debian/unstable and flickering and coloured
blanking gone. BUT, Totally black screen with huge amount of "(EE) intel(0):
underrun on pipe A!".
After that I've tried 2.2.1 from Ubuntu/Hardy and it's still flickering and probably will get blank very soon.

Do you want me to supply any additional info or perform test?

P.S.
I am using GM945 on Mac Mini with LCD connected to DVI-D.

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Excellent, thanks a lot for testing. One other thing I'm hoping you can try: set DSPARB to (95 << 7) | (48)? That should remove most of the FIFO entries for display plane C, and hopefully keep things stable...

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Guillaume, yeah you shouldn't have to care about display plane C, you can allocate 1 or 0 FIFO entries for it since we don't use it. Thanks a lot for trying this out, we really need to set DSPARB better. An even split between pipe B and A might not be appropriate in some cases, e.g. running 1920x1200 on pipe a and 640x480 on pipe B, so we'll have to do some bandwidth calculations and set it...

Revision history for this message
In , Guillaume Melquiond (guillaume-melquiond) wrote :

Bandwidth calculations may not be needed. Since the underrun seems to happen only with FBC, and since FBC is only enabled when only plane A is on, a solution would be: when enabling FBC, set DSPARB to 95/95; when disabling FBC, set DSPARB back to the default value 28/59.

Moreover, the FBC could perhaps be disabled for very high resolutions. (But is the chip fast enough to drive them?) At least in my case, 64/95 is fine for 1600x1200x4 at 60Hz. So I guess 1920x1200 should be fine with 95/95.

Revision history for this message
In , Guillaume Melquiond (guillaume-melquiond) wrote :

I don't know why it worked yesterday. (I'm sure it worked, since I verified with reg_dumper that the FBC was on.) But today, it does not work anymore: The underruns are back while I'm still using the 64/95 split. There must be something missing.

Revision history for this message
In , Guillaume Melquiond (guillaume-melquiond) wrote :

The current situation is really surprising: Switching VTs was enough to stop the underrun flood (I didn't even have to restart it). I have now been running X for several hours without a single flicker, while the FBC is still enabled. So I'm not even sure my 64/95 split makes a difference, perhaps the 48/95 would have been sufficient. Could there be some kind of race condition when setting the fifo or FBC that would confuse the chipset?

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Maybe you're running into the DSPARB programming limitations? It's only supposed to be written when either all pipes are off or only one pipe is active with all planes directed at it... I think you could move the write of DSPARB into EnterVT after the output & crtc "dpms off" calls.

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Created an attachment (id=16666)
Fixup DSPARB default value

Ok, here's the patch I'd like to push, can you give it a try and make sure it still fixes things for you?

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Created an attachment (id=16667)
Fixup FIFO underrun on modeset

Oops, please try this patch instead. It fixes up the FIFO underrun status bit during mode setting as well, to avoid false positives (FIFO underrun is normal during mode setting, but in other cases indicates a bug).

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Ok, I pushed the fix as 2e1425246ccc75216247b0c2fa6fce2635db472b.

Revision history for this message
In , Jcnengel (jcnengel) wrote :

Using latest git xf96-video-intel I experience some buffer underruns on Pipe B together with a jittering of the image on the attached LVDS.
As Jesse told me I changed the critical value for DSPARB_BSTART_SHIFT from 64 to 48 and upto now it feels good. :)

Revision history for this message
In , Jcnengel (jcnengel) wrote :

OK, it is not yet totally gone, but not that frequent as before.

Revision history for this message
In , Tino-keitel+fdo (tino-keitel+fdo) wrote :

Hi,

I tried git bd137a19dc29dd466eac030e040f729ed0807e3f from the master branch and still get jittering and a blank display after some time. This build includes commit 2e1425246ccc75216247b0c2fa6fce2635db472b which should fix this issue, right? At least for me, it doesn't.

In the Xorg log file, I still see those "(EE) intel(0): underrun on pipe A!" messages.

This is a Mac mini Core Duo with Intel i945, DVI, frame buffer compression enabled. I'll now disable it again.

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Ok, thanks for testing, Tino. There's another bug open for this now, #16169, we'll track further improvements to the FIFO allocation there.

Revision history for this message
In , Tino-keitel+fdo (tino-keitel+fdo) wrote :

On my Mac mini Core Duo with i945, I also have a blank display after some time. In this case, I need to reboot to get the display back.

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

I'm still talking with the chipset guys about this; hopefully we'll have a resolution soon.

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Out of curiosity, what does xrandr report on your machines? Can you attach your X log with "modedebug" enabled?

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

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

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Created an attachment (id=17574)
split dsparb appropriately

Can you guys give this patch a try? Rather than statically allocating FIFO entries, it tries to choose a good split based on the programmed modes. Hopefully this will fix things for people without introducing any regressions.

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Johannes and/or Jonathan, can you give the attached patch a try? It's one of the final blockers for the 2.4 release, I want to make sure it works. If it doesn't, I've still got another idea we can try.

Revision history for this message
In , Jcnengel (jcnengel) wrote :

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

I am sorry, Jesse, but your patch makes the whole thing even worse, since the display does not even come up.

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Created an attachment (id=17729)
fix dsparb split

Oops, had an off by one in there. This one fixes that and includes 845/865 support too. Please try again!

Revision history for this message
In , Jcnengel (jcnengel) wrote :

That one seems to work perfectly. Thanks a lot! :)

Revision history for this message
In , Eric Anholt (eric-anholt) wrote :

Committed a slight variation on the patch. Thanks to everyone for testing on this one!

Revision history for this message
In , Tino-keitel+fdo (tino-keitel+fdo) wrote :

In what branch was the commit? And what was the commit hash? The only relevant commit I see is in master, but that one (b37a2a8ca82279468e3806dcf77d5fa7bdd0e874) only talks about 855 chips.

Revision history for this message
In , Jcnengel (jcnengel) wrote :

It is commit b8ca1c747a679c931267363639fc0bc690cae2d6.

Revision history for this message
Emil Soleyman (emilsoleyman) wrote :

Binary package hint: xserver-xorg-video-intel

This particular problem has been fixed in the git trunk:

http://gitweb.freedesktop.org/?p=xorg/driver/xf86-video-intel.git;a=commitdiff;h=2049ba211e7cdc383976c09f52c2b43acdd59481

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

Thanks for the pointer to the patch, we'll get this in soonish.

Changed in xserver-xorg-video-intel:
assignee: nobody → bryceharrington
status: New → Triaged
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

the patch is already included in -1ubuntu1:

xserver-xorg-video-intel (2:2.4.0-1ubuntu1) intrepid; urgency=low

   * Merge with debian experimental.
   * 20_thinkpad_g40_quirk.patch: don't remove another quirk, must've been
     a mistake (and not related to G40).
   * 21_quirk_lenovo.patch: rename and drop the HP quirk, since it's
     upstream.
   * rules: drop the change to not build intel_reg_dumper, libpciaccess is
     in main now.
   * changelog: bring back old entries lost during an old merge (ahem..).
   * Fixes from upstream 2.4-branch:
     30_update_dsparb.patch
     - Update DSPARB while planes are still off.
     31_reorder_visuals.patch
     - Reorder visuals reported by the intel driver.
     32_dont_program_dsparb.patch
     - Don't program dsparb on new Intel chip.
     33_fix_hp_pavilion_quirk.patch
     - Fix up the HP Pavilion ze4944ea quirk. The chip is 855GM, not GM45.

Changed in xserver-xorg-video-intel:
assignee: bryceharrington → nobody
status: Triaged → Fix Released
Revision history for this message
Pedro Villavicencio (pedro) wrote :

It is included? I have that version installed (2:2.4.0-1ubuntu1) and I'm still having flickering with a Intel 945GM/GMS card, thanks.

Revision history for this message
Emil Soleyman (emilsoleyman) wrote :

Timo,

Thanks for pointing out the patch. I did not realize it was included. Just like Pedro, I too am still seeing flickering on my Thinkpad Z61t laptop (using the Intel 945GM/GMS card) and it is only occurring when launching new applications.

Please let me know what I can do to help debug this problem.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Ok, in that case I'll reopen the bug. The patch is included, but apparently doesn't fix the issue.

Changed in xserver-xorg-video-intel:
status: Fix Released → Triaged
Revision history for this message
Emil Soleyman (emilsoleyman) wrote :

Whenever I open an application, I see the following in the Xorg.0.log file:

(EE) intel(0): underrun on pipe B!

I am attaching my Xorg.0.log file to this bug report as it was generated with the ModeDebug option turned on. I also found some discussions relating to underruns and blank displays with recent driver versions (including 2.4.0 and git trunk).

http://bugs.freedesktop.org/show_bug.cgi?id=13326
http://bugs.freedesktop.org/show_bug.cgi?id=16169

Changed in xorg-server:
status: Unknown → Fix Released
Changed in xserver-xorg-video-intel:
status: Unknown → Fix Released
Revision history for this message
K. Lange (k-lange) wrote :

While this does seem to often be happening when starting a new application window, I've seen it happen at random while just using Firefox.

Revision history for this message
mewithafez (firefish17) wrote :

I can confirm this as well, updated yesterday I believe and is still flickering.

Revision history for this message
Achim (ach1m) wrote :

Does anybody know if the new intel driver 2.4.1 will fix this Problem?

http://lists.freedesktop.org/archives/xorg/2008-August/038056.html

Regards
Achim

Revision history for this message
Emil Soleyman (emilsoleyman) wrote :

One of the most recent git commits fixes this particular problem. I am attaching a set of patches taken from git head that help to alleviate this problem. Please use them as you see fit.

Revision history for this message
Emil Soleyman (emilsoleyman) wrote :
Revision history for this message
Emil Soleyman (emilsoleyman) wrote :
Revision history for this message
Emil Soleyman (emilsoleyman) wrote :
Revision history for this message
Emil Soleyman (emilsoleyman) wrote :
Revision history for this message
Emil Soleyman (emilsoleyman) wrote :
Revision history for this message
mewithafez (firefish17) wrote :

I'm sorry, not sure how to apply those patches and confirm, do you have an idea of when/if these might reach intrepid in the package in question?

Revision history for this message
Bruce Cowan (bruce89-deactivatedaccount) wrote :

2.4.1 is now in Intrepid, so testing it would be useful.

Revision history for this message
stef70 (stephane-chauveau-central) wrote :

Still the same for me with 2.4.1 : Flickering when launching applications
I have a i915.

When flickering occurs, I have the following in the logs:

(II) intel(0): EDID vendor "AUO", prod id 8468
(II) intel(0): Printing DDC gathered Modelines:
(II) intel(0): Modeline "1280x800"x0.0 75.00 1280 1301 1333 1408 800 804 808 816 -hsync -vsync (53.3 kHz)
(II) intel(0): EDID vendor "AUO", prod id 8468
(EE) intel(0): underrun on pipe B!

Revision history for this message
Mathieu Pellerin (nirvn-asia) wrote :

Still flickering using intel driver 2.4.1 with an intel mobile gm965 graphic card on a dell latitude d830.

Revision history for this message
mewithafez (firefish17) wrote :

After all updates, still flickering.

Revision history for this message
Emil Soleyman (emilsoleyman) wrote :

The flickering is still there because the most recent Ubuntu driver fails to include the "38_no_pipe_for_hotplug.patch" or that matter has failed to include git commit 7b6f4d22211d71480caf6335a3eacaacff369371 (http://gitweb.freedesktop.org/?p=xorg/driver/xf86-video-intel.git;a=commit;h=7b6f4d22211d71480caf6335a3eacaacff369371).

Revision history for this message
Damien Churchill (damoxc) wrote :

https://edge.launchpad.net/~damoxc/+archive

I applied the patch and uploaded to my ppa if anyone is interested.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

sweet, that patch stopped my mouse moving every time a gtk+ app was started, or 'xrandr -q' was ran manually.. I'll add it to the package, thanks!

Revision history for this message
Martin Knudsen (brainwashed) wrote :

Damien Churchill's package works like a charm. Thanks alot!

Revision history for this message
Franck (alci) wrote :

I tested Damien's package and it seems to work great. Thanks you Damien.

However I still get this two lines added in Xorg.0.log everytime I launch a new app :

(II) intel(0): I2C device "LVDSDDC_C:ddc2" registered at address 0xA0.
(II) intel(0): I2C device "LVDSDDC_C:ddc2" removed.

The third line that was saying (EE) underrun on pipe B has disappeared, but I wonder what the remaining two line that keep being appended to my log means ?

Anyone has a hint ?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xserver-xorg-video-intel - 2:2.4.1-1ubuntu2

---------------
xserver-xorg-video-intel (2:2.4.1-1ubuntu2) intrepid; urgency=low

  * 22_no_pipe_for_hotplug_detection.patch: Don't allocate a pipe for
    hotplug detection. (LP: #256142)

 -- Timo Aaltonen <email address hidden> Tue, 02 Sep 2008 16:13:52 +0300

Changed in xserver-xorg-video-intel:
status: Triaged → Fix Released
Revision history for this message
Damien Churchill (damoxc) wrote :

I've removed the package from my ppa now the fix is released.

Revision history for this message
stef70 (stephane-chauveau-central) wrote :

No improvements for me with 2:2.4.1-1ubuntu2

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Yeah same for me I'm still having flickering, is there any logs we can submit in order to give you more info? thanks!.

Revision history for this message
stef70 (stephane-chauveau-central) wrote :

I believe that i just found a temporary workaround.

Since the flickering seems to be caused by the automatic mode detection on my non-connected VGA output, I used xrandr to force a mode on that output.

I used the following commands

xrandr --newmode dummy 75.00 1280 1301 1333 1408 800 804 808 816 -hsync -vsync
xrandr --addmode VGA dummy
xrandr --output VGA --mode dummy

Those commands cause a lot of flickering but after them, flickering is gone.

The result can be verified with

 $ xrandr --prop | cat -n
     1 Screen 0: minimum 320 x 200, current 1280 x 800, maximum 1280 x 1280
     2 VGA disconnected 1280x800+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
     3 dummy 65.3*
     4 LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 261mm x 163mm
     5 EDID_DATA:
     6 00ffffffffffff0006af142100000000
     7 010f0103801a10780a30259855548827
     8 24505400000001010101010101010101
     9 0101010101014c1d0080502010301520
    10 440005a3100000190000000000000000
    11 00000000000000000001000000fe0057
    12 35333832004231323145570a000000fe
    13 00fffdf3e9bb8d6f0001010a2020005f
    14 PANEL_FITTING: full
    15 supported: center full_aspect full
    16 BACKLIGHT_CONTROL: native
    17 supported: native legacy combination kernel
    18 BACKLIGHT: 0 (0x00000000) range: (0,0)
    19 1280x800 65.3*+
    20 1024x768 60.0
    21 800x600 60.3
    22 640x480 59.9
    23 TV disconnected (normal left inverted right x axis y axis)
    24 BOTTOM: 37 (0x00000025) range: (0,100)
    25 RIGHT: 46 (0x0000002e) range: (0,100)
    26 TOP: 36 (0x00000024) range: (0,100)
    27 LEFT: 54 (0x00000036) range: (0,100)
    28 TV_FORMAT: NTSC-M
    29 supported: NTSC-M NTSC-443 NTSC-J PAL-M
    30 PAL-N PAL

The interesting line is 3 which indicates that my "dummy" mode is activated for the VGA output.

PS: I used a 1280x800 mode because this is the resolution of my laptop panel and, somehow, using a smaller resolution caused my gnome panels to be resized.

Revision history for this message
stef70 (stephane-chauveau-central) wrote :

WARNING! The xrandr commands from my previous post must be adapted to set a mode on a NON CONNECTED output. Specifying some incorrect modelines on a connected output could damage your monitor.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Ok, reopening.. Server logfiles are usually useful.

Changed in xserver-xorg-video-intel:
status: Fix Released → Confirmed
Revision history for this message
stef70 (stephane-chauveau-central) wrote :

See also the following upstream bug

   http://bugs.freedesktop.org/show_bug.cgi?id=17405

And here is my log

Revision history for this message
Juan Pablo Salazar Bertín (snifer) wrote :

Flickering has stopped for me with latest package, but what I'm seeing in Xorg log (same as comment #18 except for the (EE) line) is probably due to bug #245383.

snifer@snifer-laptop:~$ dpkg -l | grep xserver-xorg-video-intel
ii xserver-xorg-video-intel 2:2.4.1-1ubuntu2 X.Org X server -- Intel i8xx, i9xx display d

Revision history for this message
Franck (alci) wrote :

For me, 1ubuntu2 partly fixes the problem.

In fact, I had two distinct symptoms, that is :

1) screen was flickering or "blittering", whole parts of the background had erratic moves
2) mouse pointer was "flipping", that is the pointer was switching from one point to another one about 20 pixels on the lower right

1) is fixed by 1ubuntu2. It was associated with the "underrun on pipe B" message in the log, and this error has disappeared as well.

2) remains. It is associated with another message in the log, that is not an error message (EE) but an information (II):

(II) intel(0): I2C device "LVDSDDC_C:ddc2" registered at address 0xA0.
(II) intel(0): I2C device "LVDSDDC_C:ddc2" removed.

I opened a new bug specific to the second problem (#264228). Should I mark it as a duplicate of this one, or should this one remain closed and work go on #264228 ?

Revision history for this message
BC7333 (brian-abtrafco) wrote :

This just started today for me after updating to newest alpha

(EE) intel(0): Mode 1280x1024 does not fit virtual size 1024x1024 - internal error
(EE) intel(0): underrun on pipe B!
(EE) intel(0): underrun on pipe B!
(II) intel(0): I2C device "LVDSDDC_C:ddc2" registered at address 0xA0.
(II) intel(0): I2C device "LVDSDDC_C:ddc2" removed.
(EE) intel(0): Mode 1280x1024 does not fit virtual size 1024x1024 - internal error
(II) intel(0): I2C device "LVDSDDC_C:ddc2" registered at address 0xA0.
(II) intel(0): I2C device "LVDSDDC_C:ddc2" removed.
(EE) intel(0): Mode 1280x1024 does not fit virtual size 1024x1024 - internal error
(EE) intel(0): underrun on pipe B!
(EE) intel(0): underrun on pipe B!
(EE) intel(0): underrun on pipe B!

Revision history for this message
Franck (alci) wrote :

I have tested 1ubuntu2 with a video-projector connected on VGA output.

In these conditions, each time I launch an application, the screen becomes black on both output (VGA+LCD) and then comes back...

Revision history for this message
noah (noah1-deactivatedaccount) wrote :
Download full text (6.1 KiB)

I have the same issue here on a HP/Compaq D510 SFF computer (business model).
Things worked fine in Ubuntu Hardy but after an upgrade to Intrepid in August, X broke, and is still broken.
I'm running 2.6.27-3 with and xserver-xorg-video-intel 2:2.4.1-1ubuntu4

My display manager is KDM.
Whenever I try to login to KDE4 the screen goes black after the first KDE icon (during startup) appears during KDE initialization.

If I enable desktop effects in Gnome, X also dies.

Restarting X or KDM doesn't help either, I need to reboot the computer.
My Xorg0.log is full of:
  (EE) intel(0): underrun on pipe A!

The last entries in Xorg.0.log before things go crazy are these:
(II) Initializing built-in extension XEVIE
(II) AIGLX: Screen 0 is not DRI2 capable
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 11, (OK)
drmOpenByBusid: Searching for BusID pci:0000:00:02.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 11, (OK)
drmOpenByBusid: drmOpenMinor returns 11
drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
(II) AIGLX: enabled GLX_MESA_copy_sub_buffer
(II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
(II) AIGLX: enabled GLX_texture_from_pixmap with driver support
(II) AIGLX: Loaded and initialized /usr/lib/dri/i915_dri.so
(II) GLX: Initialized DRI GL provider for screen 0
(II) intel(0): Setting screen physical size to 338 x 270
(EE) intel(0): underrun on pipe A!
(II) config/hal: Adding input device Microsoft Microsoft 5-Button Mouse with IntelliEye(TM)
(II) LoadModule: "evdev"

(II) Loading /usr/lib/xorg/modules/input//evdev_drv.so
(II) Module evdev: vendor="X.Org Foundation"
        compiled for 1.5.0, module version = 2.0.99
        Module class: X.Org XInput Driver
        ABI class: X.Org XInput driver, version 2.1
(**) Microsoft Microsoft 5-Button Mouse with IntelliEye(TM): always reports core events
(**) Microsoft Microsoft 5-Button Mouse with IntelliEye(TM): Device: "/dev/input/event3"
(II) Microsoft Microsoft 5-Button Mouse with IntelliEye(TM): Found x and y relative axes
(II) Microsoft Microsoft 5-Button Mouse with IntelliEye(TM): Found 5 mouse buttons
(II) Microsoft Microsoft 5-Button Mouse with IntelliEye(TM): Configuring as mouse
(II) XINPUT: Adding extended input device "Microsoft Microsoft 5-Button Mouse with IntelliEye(TM)" (type: MOUSE)
(**) Microsoft Microsoft 5-Button Mouse with IntelliEye(TM): YAxisMapping: buttons 4 and 5
(**) Microsoft Microsoft 5-Button Mouse with IntelliEye(TM): EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) config/hal: Adding input device Apple, Inc Apple Keyboard
(**) Apple, Inc Apple Keyboard: always reports core events
(**) Apple, Inc Apple Keyboard: Device: "/dev/input/event2"
(II) Apple, Inc Apple Keyboard: Found keys
(II) Apple, Inc Apple Keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "Apple, Inc Apple Keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Apple, Inc Apple Keyboard: xkb_rules: "evdev"
(**) Option "xkb_model" "pc105"
(**) Apple, Inc Apple Keyboard: xkb_model: "pc105"
(**) Option "xkb_layout" "se"
(**) Apple, Inc Apple Keyboard: xkb_layout: "se"
(**) Opti...

Read more...

Revision history for this message
Paul Gevers (paul-climbing) wrote :

I have the same problem as the last remark, I can use GNOME, but not KDE. I'll attach the log files and config file. The .old is from the failed KDE session, the .log is from the successful GNOME session.

Revision history for this message
Paul Gevers (paul-climbing) wrote :
Revision history for this message
Paul Gevers (paul-climbing) wrote :
Revision history for this message
Yves Glodt (yglodt) wrote :

How about getting the version 2.5 of the driver into intrepid?

It will be released tomorrow, and yesterday the final rc was released:
http://lists.freedesktop.org/archives/xorg/2008-October/039496.html

Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

Yves, it's *far* too late for that. Drivers can often have regressions.

FWIW, I don't experience this anymore, and haven't in a long time, so I suspect it's a different bug to the original.

Revision history for this message
Jeremy Northeast (jeremy-northeast) wrote : Re: [Bug 256142] Re: Flickering with version 2.4.0

The latest xorg driver in the latest intrepid update has resolved this
issue.

Sarah Hobbs wrote:
> Yves, it's *far* too late for that. Drivers can often have regressions.
>
> FWIW, I don't experience this anymore, and haven't in a long time, so I
> suspect it's a different bug to the original.
>

Bryce Harrington (bryce)
Changed in xserver-xorg-video-intel:
status: Confirmed → Fix Released
Revision history for this message
jbrsks (jkras) wrote :

>The latest xorg driver in the latest intrepid update has resolved this
>issue.
If "this issue" relates to the original bug (flickering: for me only after resuming from a suspend), it still occurs (though improved) on most recent available updates (2:2.4.1-1ubuntu10). Xorg.0.log looks similar to those previously posted (lots of "underrun pipe A")
I lost the thread a little: I thought the patch in 2.5 from upstream has already been applied in Ubuntu. If the patch has been applied, the bug should remain open.

Revision history for this message
Matt Foster (matt-foster42) wrote :

I have this problem as well on a Dell Latitude D620. Lot's of buffer underuns, and dual display with an external VGA is unusable - the external VGA keeps on flicking on and off.

root@psll09551:/var/log# dpkg -l | grep -i intel
rc 915resolution 0.5.3-1ubuntu1 resolution modification tool for Intel graphic chipset
ii wvdial 1.60.1+nmu2 PPP dialer with built-in intelligence
ii xserver-xorg-video-i810 2:2.4.1-1ubuntu10 X.Org X server -- Intel i8xx, i9xx display driver
ii xserver-xorg-video-intel 2:2.4.1-1ubuntu10 X.Org X server -- Intel i8xx, i9xx display driver

lspci -vnn:
00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller [8086:27a2] (rev 03)
        Subsystem: Dell Device [1028:01c2]
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at eff00000 (32-bit, non-prefetchable) [size=512K]
        I/O ports at eff8 [size=8]
        Memory at d0000000 (32-bit, prefetchable) [size=256M]
        Memory at efec0000 (32-bit, non-prefetchable) [size=256K]
        Capabilities: [90] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
        Capabilities: [d0] Power Management version 2
        Kernel modules: intelfb

root@psll09551:/var/log# uname -a
Linux psll09551 2.6.27-7-generic #1 SMP Fri Oct 24 06:42:44 UTC 2008 i686 GNU/Linux

Xorg.conf:
Section "Device"
        Identifier "Configured Video Device"
EndSection

Section "Monitor"
        Identifier "Configured Monitor"
EndSection

Section "Screen"
        Identifier "Default Screen"
        Monitor "Configured Monitor"
        Device "Configured Video Device"
Subsection "Display"
          Depth 24
          Virtual 1440 1924
        EndSubSection

EndSection

When running just on the panel display, it works OK ish, although some of the desktop effects are very sluggish, I'm running KDE.

Revision history for this message
Wesley Schwengle (wesleys) wrote :
Revision history for this message
Wesley Schwengle (wesleys) wrote :

Reopening bug, if this unwanted please inform me so I can create a new bug report which addresses this issue.

Changed in xserver-xorg-video-intel:
status: Fix Released → New
Revision history for this message
Paul Gevers (paul-climbing) wrote :

Comment 39 was mine[1].

In my case KDE does not crash, but it does not give me a desktop. I have had different appearances in the recent past: black screen, white screen and now my GNOME background (it is different from the background I had in KDE). I can start all the programs that I like using <ALT-F2>. Gnome works like a charm. Usually I do get a Aport message if I tried KDE and are back to Gnome (related to skim or scim and xrandr). I do think those are reported elsewhere, but until now I have not found out the proper bug number.

[1] https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/256142/comments/39

Revision history for this message
TStahl (mail-myname-tstahl) wrote :

The problem persist for me (with an i915 card) both with the latest driver in intrepid and with the 2.5.0 from PPA. Only a downgrade to 2.3.2 is able to solve the buffer underruns.

Revision history for this message
Paul Gevers (paul-climbing) wrote :

I am testing KDE (and using) again and I get a crash from plasma. This time I was offered a backtrace which I am attaching. Still, I can only start programs with <ALT-F2>

I will also attach a screenshot of my empty desktop. I sometimes get the feeling that I am on a secondary screen with the controls invisible on the first screen. This is especially the case when KDE is reporting a crash or possible updates, because usually you get a message window attached to the task-bar, but in my case it is attached to the left-top corner of my screen, as if the task-bar is really over there.

Revision history for this message
Paul Gevers (paul-climbing) wrote :
Revision history for this message
jbrsks (jkras) wrote :

Has this bug report wandered off the original bug?

Revision history for this message
Paul Gevers (paul-climbing) wrote : Start new bug?

> Has this bug report wandered off the original bug?

I was thinking the same thing this morning. Do you reckon I should start
a new bug? Against plasma?

Revision history for this message
Omegamormegil (omegamormegil) wrote :

I still experience flickering on the bottom 1/4th of the screen while loading some applications, and I'm using Gnome. I have an intel 915 graphics card. It has gotten better since Alpha 4, but it's still an issue. So, it's not just a KDE issue, if anyone was wondering.

Revision history for this message
Arnaud Quette (aquette) wrote :

with a Dell Latitude D630, I got lot's of buffer underuns as soon as I enable the external display.
In that case, the dual display (with an external LCD display) doesn't work and I got an empty desktop.

00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)

Using an up to date Intrepid with xserver-xorg-video-intel = 2:2.4.1-1ubuntu10

Revision history for this message
Wesley Schwengle (wesleys) wrote :

https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/256142/comments/47

I do not have the issue anymore as I downgraded KDE to version 3, see Xorg.0.log relevant entries:

(II) intel(0): Fixed memory allocation layout:
(II) intel(0): 0x00000000-0x0001ffff: ring buffer (128 kB)
(II) intel(0): 0x00020000-0x00024fff: HW cursors (20 kB)
(II) intel(0): 0x00025000-0x0002cfff: logical 3D context (32 kB)
(II) intel(0): 0x007df000: end of stolen memory
(II) intel(0): 0x007df000-0x007dffff: overlay registers (4 kB, 0x00000000271fa000 physical
)
(II) intel(0): 0x007e0000-0x011a3fff: front buffer (10000 kB)
(II) intel(0): 0x011a4000-0x02eeffff: exa offscreen (30000 kB)
(II) intel(0): 0x02ef0000-0x038b3fff: back buffer (10000 kB)
(II) intel(0): 0x038b4000-0x04277fff: depth buffer (10000 kB)
(II) intel(0): 0x04278000-0x06277fff: classic textures (32768 kB)
(II) intel(0): 0x08000000: end of aperture
(II) intel(0): Output configuration:
(II) intel(0): Pipe A is on
(II) intel(0): Display plane A is now enabled and connected to pipe A.
(II) intel(0): Output VGA is connected to pipe A
(II) intel(0): [drm] mapped front buffer at 0xe07e0000, handle = 0x2c0fc000
(II) intel(0): [drm] dma control initialized, using IRQ 16

Revision history for this message
Stefan Cornelius (stefan-cornelius) wrote :

https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/256142/comments/55
> So, it's not just a KDE issue, if anyone was wondering.

I'm using XFCE. While I don't get any crashes, I can certainly confirm the annoying flickering.

Revision history for this message
Arnaud Quette (aquette) wrote :

uh, strange. while I failed all the morning in my attempt to switch to dual screen (see my above report), it's now working!
And I've obviously not changed anything, nor rebooted nor done anything (except coding and mailing ;-)

here is the output from Xorg.0.log, just after the successful switch to dual screen:
(II) intel(0): EDID vendor "SAM", prod id 170
(II) intel(0): EDID vendor "LPL", prod id 3073
(II) intel(0): DDCModeFromDetailedTiming: 1280x800 Warning: We only handle seperate sync.
(II) intel(0): Printing DDC gathered Modelines:
(II) intel(0): Modeline "1280x800"x0.0 72.17 1280 1320 1352 1432 800 808 816 840 -hsync -vsync (50.4 kHz)
(II) intel(0): Modeline "1280x800"x0.0 72.17 1280 1320 1352 1432 800 808 816 840 -hsync -vsync (50.4 kHz)
(II) intel(0): EDID vendor "LPL", prod id 3073
(II) intel(0): DDCModeFromDetailedTiming: 1280x800 Warning: We only handle seperate sync.

still Intrepid/Gnome on a Dell Latitude D630...

Revision history for this message
derPeter (derpeter) wrote :

same problem on an intel macbook with 945GM/GMS.

(II) intel(0): I2C device "SDVOB DDC Bus:ddc2" registered at address 0xA0.
(II) intel(0): I2C device "SDVOB DDC Bus:ddc2" removed.
(II) intel(0): xf86BindGARTMemory: bind key 2 at 0x087a8000 (pgoffset 34728)
(II) intel(0): xf86UnbindGARTMemory: unbind key 2
(EE) intel(0): underrun on pipe B!

Errors occurs using xrandr with 2 screens. The flickering only occurs on the laptop screen.

If I open a video application the hole screen turn shortly black with the first 2 lines of the log.

the last line comes during the flickering of the laptop screen. It happens sometime without a reason but mostly if the screen changes its brightness.

(intreped actual patch level, gnome desktop)

Revision history for this message
Nikolay Pavlov (qpadla-deactivatedaccount) wrote :

Same problem on Dell Inspiron 1300 after upgrading to 8.10:
(II) intel(0): Printing DDC gathered Modelines:
(II) intel(0): Modeline "1280x800"x0.0 72.25 1280 1328 1360 1440 800 802 808 823 -hsync -vsync (50.2 kHz)
(II) intel(0): Modeline "1280x800"x0.0 72.25 1280 1328 1360 1440 800 802 808 823 -hsync -vsync (50.2 kHz)
(II) intel(0): EDID vendor "LPL", prod id 43264
(II) intel(0): DDCModeFromDetailedTiming: 1280x800 Warning: We only handle seperate sync.
(EE) intel(0): underrun on pipe B!

VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)

xserver-xorg-video-intel 2:2.4.1-1ubuntu10

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

> > Has this bug report wandered off the original bug?
>
> I was thinking the same thing this morning. Do you reckon I should start
> a new bug? Against plasma?

Yes, flickering is such a generic symptom that can be caused by so many different things, that it's very likely that folks commenting and confirming since this was reopened are actually seeing some different problem. For the sake of the mailboxes of the original reporters (for whom it sounds like their flickering issue was solved), please open a NEW bug if you're seeing flickering behavior still.

Changed in xserver-xorg-video-intel:
status: New → Fix Released
Revision history for this message
Joey Stanford (joey) wrote :
Revision history for this message
Michael Zehrer (zehrer) wrote :

I can confirm this bug on my Fujitsu Siemens Amilo Si 15120 running the latest intrepid, please see the attached xorg log.

Revision history for this message
Danniello (danniello) wrote :

Ubuntu 8.10
xserver-xorg-video-intel 2.4.1-1ubuntu10

Asus EeePC 901
Intel Mobile 945GME and/or Intel Mobile 945GM/GMS/GME, 943/940GML

sudo lshw -c display

  *-display:0 UNCLAIMED

       description: VGA compatible controller

       product: Mobile 945GME Express Integrated Graphics Controller

       vendor: Intel Corporation

  *-display:1 UNCLAIMED

       description: Display controller

       product: Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller

       vendor: Intel Corporation

When I am working only on integrated LCD (1024x600x60) - everything is OK.
When I connect d-sub to my old CRT monitor (Philips Brilliance 109P, 1280x960x85, internal laptop LCD off) for some time is almost OK (sometimes screen flickers - in Xorg.0.log driver again recognise monitor ModeLines).
After some time, especially when I start movie in Totem or SMPlayer, screen disappears (sound works, everything works, but no display on CRT - all screen filled with one colour) - driver is starting filling Xorg.0.log with many "(EE) intel(0): underrun on pipe A!
".

I could switch to terminal (Ctrl+Alt+F1) - display works again on LCD and CRT. If I back to X (Ctrl+Alt+F7) - still no display. I could restart laptop or start another X session (xinit -- :1) - works again OK...

I changed d-sub cable, problem still remains, but I have little impression that is happening less often... Maybe driver is sending/receiving too weak signal to/from monitor?

Revision history for this message
Jens Gustedt (jens-gustedt) wrote :

Hi, just adding to this bug, please direct me to an appropriate one if you think there is a better one.

I observed the same `underrun' error on for my Intel card after seeking for the reasons of
occasional crashes of X that I observed on my machine. First I though that this would be
hibernation related, since it was then when this happened. But now I see that it occurs when
switching the console.

So happening under hibernation is probably just a side effect when switching console, there.

I am running

xserver-xorg-video-intel 2:2.4.1-1ubuntu10.1

Has anybody an idea if dowgrading to 2:2.4.1-1ubuntu10 (without the .1) could help?

Thanks

Jens

Revision history for this message
Paul van Genderen (paulvg) wrote :

Sorry for posting to this bug, but bug #256142 was marked as a duplicate of this bug. However I think these bugs are unrelated because if this was fixed, how come I still get:

(EE) intel(0): underrun on pipe B!

in Xorg.0.log? I don't know what's best, filing a new report, reopening this one, or something else.

(Attached is yet another log, just in case.)

Revision history for this message
Brian Harkness (maestro-bwh) wrote :

See:

https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/221119

I am frustrated because using the vesa driver, apparently there is a dpms bug which keeps the display from shutting off. So no driver really works for me.

Ari (ari-nevala)
Changed in xserver-xorg-video-intel (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Ari - please don't just reopen a bug without leaving any explanation

Changed in xserver-xorg-video-intel (Ubuntu):
status: Confirmed → Fix Released
Changed in xserver-xorg-video-intel:
importance: Unknown → High
Changed in xorg-server:
importance: Unknown → Medium
Changed in xorg-server:
importance: Medium → Unknown
Changed in xserver-xorg-video-intel:
importance: High → Unknown
Changed in xserver-xorg-video-intel:
importance: Unknown → High
Changed in xorg-server:
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.