Bug 753881 - i915 - screen flickering
Summary: i915 - screen flickering
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: xorg-x11-drv-intel
Version: 16
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Adam Jackson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-14 18:22 UTC by Eduard VANKO
Modified: 2012-06-25 22:41 UTC (History)
20 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-20 16:21:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
there is a horizontal line under the submarine picture (590.40 KB, image/jpeg)
2011-11-14 18:22 UTC, Eduard VANKO
no flags Details
there is a shadow right to the black window (649.93 KB, image/jpeg)
2011-11-14 18:23 UTC, Eduard VANKO
no flags Details
dmesg output (123.05 KB, application/octet-stream)
2011-11-14 18:26 UTC, Eduard VANKO
no flags Details
lsmod |grep i915 output (275 bytes, application/octet-stream)
2011-11-14 18:27 UTC, Eduard VANKO
no flags Details
partial lspci -kv output (964 bytes, application/octet-stream)
2011-11-14 18:27 UTC, Eduard VANKO
no flags Details
/var/log/messages output (4.22 MB, application/octet-stream)
2011-11-14 18:29 UTC, Eduard VANKO
no flags Details
/var/log/Xorg.0.log output (34.25 KB, text/x-log)
2011-11-14 18:31 UTC, Eduard VANKO
no flags Details
dmesg output before sleep with corrupted graphics on external monitor (123.06 KB, application/octet-stream)
2012-04-04 12:22 UTC, Eduard VANKO
no flags Details
dmesg output after sleep with correct graphics on external monitor (123.25 KB, application/octet-stream)
2012-04-04 12:23 UTC, Eduard VANKO
no flags Details
intel_reg_dumper output before sleep with corrupted graphics on external monitor (11.18 KB, application/octet-stream)
2012-04-04 12:24 UTC, Eduard VANKO
no flags Details
intel_reg_dumper output after sleep with correct graphics on external monitor (11.17 KB, application/octet-stream)
2012-04-04 12:27 UTC, Eduard VANKO
no flags Details
Dumps of dmesg and intel_reg_dump for different situations (see comment). (77.77 KB, application/x-gzip)
2012-04-09 07:15 UTC, Matej
no flags Details

Description Eduard VANKO 2011-11-14 18:22:13 UTC
Created attachment 533592 [details]
there is a horizontal line under the submarine picture

Description of problem:
After installation of Fedora 16, x86_64, KDE desktop on HP EliteBook 2730p wih integrated Intel Graphics, the screen is flickering 

Version-Release number of selected component (if applicable):
Fedora 16 x86_64 (Verne), all 3.* kernels, also testing kernels, i915 driver

How reproducible:
Install Fedora 16 x86_64 with KDE

Actual results:
Screes is flickering

Expected results:
Screen is not flickering

Additional info:
When flickering, the screen seems to be moved about 1/3 to the right. There are 2 ways to solve this:
1. disable KMS with kernel parameter "nomodeset", but native LVDS resolution 1280x800 is missing
2. use 2.6.* kernel From Fedora 15
All logs are made with "drm.debug=0x04" kernel parameter

Comment 1 Eduard VANKO 2011-11-14 18:23:19 UTC
Created attachment 533593 [details]
there is a shadow right to the black window

Comment 2 Eduard VANKO 2011-11-14 18:24:49 UTC
One more discovery - there is not flickering, when cpu is intensively used...

Comment 3 Eduard VANKO 2011-11-14 18:26:13 UTC
Created attachment 533594 [details]
dmesg output

Comment 4 Eduard VANKO 2011-11-14 18:27:23 UTC
Created attachment 533595 [details]
lsmod |grep i915 output

Comment 5 Eduard VANKO 2011-11-14 18:27:56 UTC
Created attachment 533596 [details]
partial lspci -kv output

Comment 6 Eduard VANKO 2011-11-14 18:29:49 UTC
Created attachment 533597 [details]
/var/log/messages output

Comment 7 Eduard VANKO 2011-11-14 18:31:14 UTC
Created attachment 533598 [details]
/var/log/Xorg.0.log output

Comment 8 Josh Boyer 2011-11-14 18:45:21 UTC
Does this happen if you pass i915.i915_enable_fbc=0 on the kernel command line?

Comment 9 Eduard VANKO 2011-11-14 19:06:12 UTC
This i915.i915_enable_fbc=0 parameter does not solve this problem...

Comment 10 Adam Jackson 2011-11-15 16:55:19 UTC
What about i915.powersave=0 ?

Comment 11 Eduard VANKO 2011-11-18 07:01:41 UTC
i915.powersave=0 does not solve this problem, but there is another discovery - when external monitor is connected via VGA output on docking station and activated this external VGA output, the flickering stops...

Comment 12 Matej 2011-11-28 14:25:34 UTC
I have exactly the same problem on exactly the same configuration (on Fedora 16 -- all 3.* kernels, starting with the live CD; the same computer: EliteBook 2730p, with GMA 4500MHD graphics; and i915 driver).

I am using Gnome Shell though.

Yes, I can confirm that the flickering disappears when an external VGA monitor is attached.

As a side note: the external monitor doesn't display the proper resolution and the screen is clipped and positioned wrongly (the image is always cut on the edges). But when I suspend and wake the computer, the external screen becomes perfect. Very weird.

Comment 13 bminaker 2011-12-06 00:11:12 UTC
I think that this is a duplicate of bug 738813.  I have experienced the same result on my HP2730p with the GMA4500MHD, using the F16 live image.  Also, I am quite certain this is a kernel bug, as I experience the same behaviour on Arch Linux when uprading just the kernel from 3.0.7, to anything newer, including 3.1, 3.1.1, 3.1.2, 3.1.3, and 3.1.4.  I've also tried a live image of the newest Ubuntu, with kernel 3.2, and the problem exists there as well.

Comment 14 Rhem 2011-12-06 23:02:47 UTC
Yes same system HP2730, same problem with F16 live image. On-line updates did not fix the problem. Now using Ubuntu kernel 3.0.0-13 with Gnome 3 now with no problems.

Comment 15 Matej 2011-12-07 10:44:50 UTC
I can also confirm that CPU-intensive tasks make the flicker noticeably less severe (the flicker almost disappeared when I was updating Fedora, specifically when YUM was expanding the deltas and then when the updates were actually installed--it should be noted that the flicker did not diminish when YUM was downloading the packages).

Comment 16 marc.novel 2011-12-11 18:10:51 UTC
I can confirm bminaker report. This must certainly be a kernel regression.  With 3.0.1-3.fc16.i686 no flickering occurs, but with any kernel newer (incl.3.2.0-0.rc4.git5.1.fc17.i686) the flickering occurs.

Comment 17 August Schwerdfeger 2011-12-11 18:42:15 UTC
On an EliteBook 2730p, for me the problem occurs with both Fedora 15 and 16. On Fedora 15, running kernel 2.6.38.6-26.rc1.fc15.x86_64 I got no flicker, but with kernel 2.6.41-4-1.fc15.x86_64 I did.

Comment 18 bminaker 2011-12-14 05:01:12 UTC
I can add kernel 3.1.5 to the list from above, as also giving problems.  I should add the the kernel 3.2 I referred to in my previous comment was rc3, if I recall correctly.  I read something about Intel patches for rc5, so I'm hopeful that a fix may be close at hand.

Comment 19 Matej 2011-12-22 20:13:11 UTC
I can also confirm the flickering is present in kernel 3.1.5-6.fc16.i686.

Comment 20 Matej 2011-12-25 23:10:39 UTC
Flicker still present (and still extremely annoying) in kernel 3.1.6-1.fc16.i686.

Comment 21 Matej 2011-12-26 15:56:19 UTC
Just for fun:

I am running this to completely remove the flicker:

   nice -n 19 bash -c "while [[ true ]]; do i=0; done"

Caveat: say goodbye to battery life.

Comment 22 Rhem 2011-12-28 12:56:39 UTC
So the problem is exclusive to the EliteBook 2730p with the newer kernel? My guess is its anything with the GMA4500MHD. These Intel graphics have always been a problem for me. The GMA500 I gave up on. Only got this machine because it had a pen-able screen and better battery life than the AMD versions.

Comment 23 Eduard VANKO 2011-12-29 07:27:44 UTC
Rhem: I have only one EliteBook 2730p with GMA4500MHD, so I don't know if it's only this notebook graphics issue or it's issue for all GMA4500MHD...

Tested kernels 3.1.6-1.fc16.x86_64 and latest rawhide 3.2.0-0.rc7.git0.1.fc17 - flickering is still present...

Comment 24 bminaker 2012-01-15 06:14:58 UTC
I can confirm August's comments that the latest F15 kernel (kernel-2.6.41-4-1.fc15.x86_64) also causes problems, and that the newest F16 kernel (kernel-3.1.8-2.fc16.x86_64) does too.

Comment 25 Matej 2012-01-16 11:28:20 UTC
Still the same horrible flicker with kernel-3.1.9-1.fc16.i686.

Is there anything we can do to help track down the bug or maybe even fix it?

Could you give us some guidelines on how to build and install the driver from Fedora's sources? Is it possible to just use Fedora's source RPMs and build/install from them? Any links to online resources regarding this?

Comment 26 Rhem 2012-01-20 23:50:46 UTC
Ok, accidentally just updated Ubuntu, now running kernel-3.0.0-14-generic-pae and gnome 3. But no flicker problem. So is it really the kernel? I'm eager to go back to fedora as soon as.

Comment 27 bminaker 2012-01-21 01:16:28 UTC
Hi Rhem,

On Arch Linux I was okay with anything up to 3.0.7, but anything 3.1.x caused problems.  I was surprised to see the issue show up in 2.6.41 on Fedora, but I've seen it.  I think 2.6.41 on Fedora is actually more recent than 3.0.x on Arch.  I suspect there must have been some Intel driver backported from 3.0.x to 2.6.41.  I would recommend that you not upgrade your Ubuntu much further, for sure no 3.1 series.

Comment 28 bminaker 2012-01-25 06:48:10 UTC
Tried kernel-3.2.1-3.fc16.x86_64 today, problem still exists.

Comment 29 Matej 2012-01-27 10:46:35 UTC
I can confirm that the crazy flicker is still present in kernel-3.2.1-3.fc16.i686.

Comment 30 bminaker 2012-01-28 02:25:57 UTC
Tried kernel-3.3.0-0.rc1.git3.1.fc17.x86_64 under F16 today.  I thought for a second that our problem was solved, as there was no flicker throughout the boot process.  Sadly, once the KDM login screen appears, the flicker reappears, somehow different and more severe than before.  It appeared to depend on mouse action also.

Comment 31 bminaker 2012-01-28 06:40:05 UTC
Interesting news.  If I boot using kernel-3.3.0-0.rc1.git3.1.fc17.x86_64 under F16, but only to runlevel 3 (the prompt screen) instead of runlevel 5 (graphical login manager), the flicker is gone.  There are a couple of warnings about intel drm bad pixel format during boot, but no flicker.  If I log in and start X from the command line, the flicker reappears, and stays, even if I log back out.

Comment 32 Eduard VANKO 2012-01-29 06:19:39 UTC
    tested latest kernel-3.2.2-1.fc16.x86_64, also latest rawhide
    kernel-3.3.0-0.rc1.git3.1.fc17.x86_64, runlevel 5, problem is still present...

Comment 33 harri 2012-02-06 10:33:39 UTC
I have also EliteBook 2730p and with F16 and different kernels the screen flickers. With external display no problems. I tried Ubuntu 11.10 with gnome 3 and it worked without problems. I have no time to debug but system worked perfectly before upgrade from F15 to F16.

Dualbooting to W7 and there are no issues (except being Windows it is not usable anyhow, used for testing and compatibility purposes)

Comment 34 Matej 2012-02-07 11:16:14 UTC
The problem is still present in kernel-3.2.3-2.fc16.i686.

Btw, it seems like nobody is taking notice of this bug. Does Intel have a bug tracker for its Linux driver? Maybe we should post the reports there.

Comment 35 Matej 2012-02-07 11:22:01 UTC
I found this:

https://bugs.freedesktop.org/show_bug.cgi?id=43123

It seems like the same issue.

Comment 36 bminaker 2012-02-07 16:04:38 UTC
Hi Matej,

I thought the same thing and already posted there as well.  Also, I tried one of the Fedora 17 Rawhide nightly builds the other day, and the bug is still there.  It doesn't appear until after the boot process is over, but shows up at the login screen.

Comment 37 Matej 2012-02-29 10:35:05 UTC
The flicker is still present (with the same highly obtrusive intensity) in the kernel 3.2.7-1.fc16.i686.

Comment 38 Pau 2012-04-02 09:46:20 UTC
Hello,

This is a real problem for me because I am way too much used to fedora and I have been sticking to f14 for a long time because of this bug. I spent the last 3 days trying to update to f16 (fresh install) and make it work with my 30" DELL monitor. It has been a nightmare and impossible for me. Now I am running debian for a while. Debian wheezy had the same problem and squeeze (kernel 2.6.32) is working perfectly fine, but there is no gnome3 on squeeze and I want to start getting used to it.

I was happy to find out this bug report. I thought I was going nuts... I have the same problem but only with the external monitor and the resolution being screwed up. No flicker for me (thinkpad x201s), though.

I wonder about the following...

Could it be possible to install f16 and _downgrade_ the kernel to one of the 2.6 series? (I am feeling like working with windows, btw, downgrading the system to make it work, though I do not have to pay for it, at least...).

My question:

(1) Can I pick up a kernel from here 

http://koji.fedoraproject.org/koji/packageinfo?packageID=8

say, kernel-2.6.20-1.2954.fc6

and stick to it? I.e. make sure that a 

yum upgrade

will not delete it?

Cheers,

Pau

Comment 39 Pau 2012-04-02 11:39:39 UTC
PS: I mean fc16, of course.... so e.g. kernel-2.6.39-0.fc16

Comment 40 Pau 2012-04-02 16:50:21 UTC
Hi,

I seem to have found a fix to this... If I open the monitor configuration interface and choose what I want, the external monitor goes black, as described BUT if I suspend the system and wake it up, the configuration is what I chose.

Ugly, but it works.

I just wanted to let you know.

Pau
PS: Installing older kernels did not help, though

Comment 41 Paulo Zanoni 2012-04-02 19:17:59 UTC
Hi

For all those that can reproduce the bug and somehow make the problem stop appearing (like Pau from comment #40):

Please reproduce the problem, then run intel_reg_dumper from intel-gpu-tools and attach the file.

Then, "fix" the problem (for example, by suspending/resuming), and then run intel_reg_dumper again, and attach the file.

I'd also like to see the "dmesg" output in the "working" and "non-working" case. If you boot with drm.debug=0x6 it might help too.

For more information on intel_reg_dumper:
http://intellinuxgraphics.org/intel_reg_dumper.html

Comment 42 Eduard VANKO 2012-04-04 07:17:12 UTC
To Pau & others:

I have divided the problems with Intel graphics to 2 parts:
1. Problem with flickering when no external monitor is connected
2. Problem with external monitor connection
I have opened this bug report only for first part of problems, I know also about problem with external monitor, but I was thinking about opening of another bug report for this.

1. Problem with flickering when no external monitor is connected
----------------------------------------------------------------
It's problably kenrel driver based bug, affected kernels:
3.1 and newer
2.6.41 and newer - probably graphics driver backport from 3.1 kernel
latest functional fc16 kernel from koji:
http://kojipkgs.fedoraproject.org/packages/kernel/3.0.1/3.fc16/x86_64/kernel-3.0.1-3.fc16.x86_64.rpm - 64 bit kernel
http://kojipkgs.fedoraproject.org/packages/kernel/3.0.1/3.fc16/i686/kernel-3.0.1-3.fc16.i686.rpm - 32 bit kernel
This problem dissapears when external monitor is connected!

2. Problem with external monitor connection
-------------------------------------------
Problems with all kernels, 2 symptoms:
1. bad resolution on lower resolution monitors
2. corrupted image on high resolution monitors (my case - 24" Sun monitor, resolution 1920x1200)

Solution: go to sleep mode & wake up computer

Comment 43 Eduard VANKO 2012-04-04 12:15:40 UTC
To Paulo (comment #40):

Thank you for your advice, I will attach required files.
Environment: kernel 3.3.0-8.fc16.x86_64 with drm debug turned on, external monitor 24" Sun, resolution 1920x1200

Comment 44 Eduard VANKO 2012-04-04 12:22:02 UTC
Created attachment 575104 [details]
dmesg output before sleep with corrupted graphics on external monitor

Comment 45 Eduard VANKO 2012-04-04 12:23:13 UTC
Created attachment 575105 [details]
dmesg output after sleep with correct graphics on external monitor

Comment 46 Eduard VANKO 2012-04-04 12:24:32 UTC
Created attachment 575106 [details]
intel_reg_dumper output before sleep with corrupted graphics on external monitor

Comment 47 Eduard VANKO 2012-04-04 12:27:14 UTC
Created attachment 575107 [details]
intel_reg_dumper output after sleep with correct graphics on external monitor

Comment 48 Matej 2012-04-09 07:15:09 UTC
Created attachment 576123 [details]
Dumps of dmesg and intel_reg_dump for different situations (see comment).

Here is what I did to obtain the dumps:

1. Booted the machine afresh (without an external monitor). The flicker was painfully present. I dumped dmesg and IRD (intel reg dump) into files `flicker.noexternal.beforesuspend.*`.

2. I attached the external monitor, which removed the flicker, but the screen on the external monitor was clipped and streched (disproportionally--circles appeared as ellipses and squares as non-equilateral rectangles). Then I took dumps :-) for this situation: `noflicker.brokenexternal.beforesuspend.*`.

3. I then suspended/waked the computer. However, the external screen was still clipped and stretched! So, nothing changed for the external screen. Still, the flicker was gone... The dumps for this situation: `noflicker.stillbrokenexternal.aftersuspend.*`.

I hope this helps.

Comment 49 Eduard VANKO 2012-04-09 18:49:24 UTC
To Matej (comment #48):

I haven't tested connecting external monitor when notebook was running (I have always connected external monitor before turning on notebook), maybe it is the reason why suspend don't work...

Comment 50 Rob ter Linden 2012-04-15 12:00:28 UTC
I am running RHEL 6.2.
Had a lot of issues with the GMA500 chipset in my Sony Vaio P.
Now with ELRepo kernel I fixed all issues by installing the latest 3.3 kernel available.

I would advice to upgrade your kernel to 3.3, as all my issues are resolved (laggy screen, no external display etc).

Comment 51 Pau 2012-04-15 13:28:31 UTC
Hi,

I had to unfortunately switch to debian squeeze since it's using the 2.6 something kernel and all of this disappeared immediately.

This is why I could not make the tests etc, because I had to catch up with my work, which was already delayed...

@Rob: Please elaborate or point to a link on how to upgrade the kernel to 3.3 because I would like to go back to fedora as soon as possible.

Cheers,

Pau

Comment 52 Rob ter Linden 2012-04-15 13:40:18 UTC
Hi Pau,

Fedora 16 it should be available here: http://koji.fedoraproject.org/koji/packageinfo?packageID=8 

Please keep in mind that Fedora 17 is build on kernel 3.3.
So if you want to try it with the latest system Fedora 17, but is Alpha ofcourse.
http://fedoraproject.org/en/get-prerelease

So if 17 is released all your issues could be fixed.
But Fedora 16 with a upgrade to kernel 3.3 is the best shot.

Greetings,

Rob

Comment 53 Eduard VANKO 2012-04-15 22:50:05 UTC
To Rob, Pau

There are more GMA graphics types, I have Intel GMA4500MHD graphics, not GMA500, kernel 3.3 doesn't solve this issues...

Comment 54 Pau 2012-04-18 09:42:31 UTC
Confirmed: The beta release gives the same problem

[root@localhost liveuser]# uname -a
Linux localhost.localdomain 3.3.0-1.fc17.i686 #1 SMP Mon Mar 19 03:19:22 UTC 2012 i686 i686 i386 GNU/Linux


and I cannot configure the external monitor.

:(

Comment 55 Pau 2012-04-18 09:57:33 UTC
PS: I tried to yum upgrade the live system, but it gave me a "bus error" and rebooted before I could try to restart X

Comment 56 marc.novel 2012-04-18 13:22:02 UTC
In case of my GMA 4500MHD it seems that this bug has been corrected with a kernel of the 3.4 series. While I was still able to reproduce this bug with a 3.3 kernel, no flickering occurs when using the latest kernel from kooij (3.4.0-0.rc3.git1.1.fc18.i686).

Comment 57 Eduard VANKO 2012-04-23 12:25:33 UTC
To Marc (Comment 56):

Thank you for good hint, I confirm that kernel 3.4 solves all issues. I have tested kernel-3.4.0-0.rc3.git4.1.fc18.x86_64 from here: http://kojipkgs.fedoraproject.org/packages/kernel/3.4.0/0.rc3.git4.1.fc18/x86_64/kernel-3.4.0-0.rc3.git4.1.fc18.x86_64.rpm
There are some warnings when installing kernel 3.4, I hope that doesn't matter...
Kernel 3.4 probably won't be officially released under Fedora 16, maybe under Fedora 17...

Comment 58 Pau 2012-04-29 12:57:49 UTC
Hi,

same here. I switched to ubuntu and I can confirm the same issue with kernels up to 3.3

The newest one, 3.4x solves the thing:

Linux deukalion 3.4.0-030400rc4-generic-pae #201204230908 SMP Mon Apr 23 13:23:25 UTC 2012 i686 i686 i386 GNU/Linux

Cheers,

Pau

Comment 59 André Felício 2012-06-03 23:31:19 UTC
I installed the 3.4 kernel today.

Using kernel 3.4 in HP2730p and still have the same problem.

Comment 60 Msquared 2012-06-06 13:54:30 UTC
I had the same flicker problem with my HP2730p; I was getting constant flicker on the built-in display, even during boot (I'm not sure what happens when I plug in an external monitor, since I haven't tried that).

However, installing the 3.4.0 kernel from http://koji.fedoraproject.org/koji/buildinfo?buildID=321678 fixed the flicker for me.

Comment 61 Msquared 2012-06-06 14:02:09 UTC
Kernel 3.4.1 from http://koji.fedoraproject.org/koji/buildinfo?buildID=321994 also seems to work OK on my setup.

Comment 62 Msquared 2012-06-19 13:49:25 UTC
The latest kernel packages in the "updates" Yum repo fixes the problem for me.

Comment 63 André Felício 2012-06-19 16:20:20 UTC
I'm testing kernel 3.4.3 is now working perfectly. No more screen flickering.
:)

Comment 64 Rhem 2012-06-20 00:54:15 UTC
Confirm fixed HP2730p. Awesome.

3.4.2-4.fc17.x86_64

Installed F17 then update.
Confirm feeling sickly after watching update on flicky screen. Working perfectly, thanku :)

Comment 65 Matej 2012-06-25 22:41:23 UTC
I also confirm it's fixed for me. Although (as previously pointed out) the flicker is still present during boot state (only before the greeter shows up).


Note You need to log in before you can comment on or make changes to this bug.