Bug 21182 - [915GM] Screen flickers on backlight change
Summary: [915GM] Screen flickers on backlight change
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: 7.4 (2008.09)
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Jesse Barnes
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-14 13:19 UTC by Sven Arvidsson
Modified: 2009-07-02 16:16 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
eee screen flicker (817.08 KB, video/ogg)
2009-04-14 13:19 UTC, Sven Arvidsson
no flags Details
xorg log using modedebug (528.38 KB, text/plain)
2009-04-14 13:20 UTC, Sven Arvidsson
no flags Details
dmesg log after brightness change (34.65 KB, text/plain)
2009-04-14 13:21 UTC, Sven Arvidsson
no flags Details
xrandr verbose output (3.02 KB, text/plain)
2009-04-14 13:22 UTC, Sven Arvidsson
no flags Details
xorg log using i830-fifo-wm-only-8.patch (66.12 KB, text/plain)
2009-04-15 14:34 UTC, Sven Arvidsson
no flags Details
FIFO setup patch for KMS (19.45 KB, patch)
2009-06-23 17:18 UTC, Jesse Barnes
no flags Details | Splinter Review

Description Sven Arvidsson 2009-04-14 13:19:49 UTC
Created attachment 24795 [details]
eee screen flicker

My Asus Eee PC 701 4G suffers from horrible screen flickering any time the brightness of the backlight is adjusted. I'm attaching a video to the bug report, which shows the backlight being adjusted from 100 to 90% using xbacklight.

This happens both with git master, and at least as far back as 2.6.1. I have only just now been bothered by this bug as gnome-power-manager now seems to use randr to adjust the brightness.

I also get a short, hardly noticeable flicker any time xrandr is invoked, but I guess it's probing the backlight.

I have tried:
- Turning FramebufferCompression off
- Switching between EXA and UXA
- Testing the between the backlight controls (native, legacy, combination and  kernel)
- Going back to using kernel 2.6.26
but none of these have any effect.

Changing the backlight using the hardware buttons on the keyboard, or echo'ing values to /sys/class/backlight/eeepc/brightness does however work with no problem.

System environment:
-- chipset: 910GML 
-- system architecture: 32-bit
-- Linux distribution: Debian unstable
-- Machine or mobo model: Asus Eee PC 701 4G (using latest BIOS from Asus)
-- Display connector: LVDS
-- xf86-video-intel: 9b615a52671aacf34666f90ecfff98651ce6afe2
-- mesa: 7.4
-- xserver: 1.6.0
-- drm: 07646002c6835537c6ae44ef9b3f8480762279b8
-- kernel: 2.6.29
Comment 1 Sven Arvidsson 2009-04-14 13:20:33 UTC
Created attachment 24796 [details]
xorg log using modedebug
Comment 2 Sven Arvidsson 2009-04-14 13:21:25 UTC
Created attachment 24797 [details]
dmesg log after brightness change
Comment 3 Sven Arvidsson 2009-04-14 13:22:01 UTC
Created attachment 24798 [details]
xrandr verbose output
Comment 4 Jesse Barnes 2009-04-14 18:22:47 UTC
Can you try the patch at https://bugs.freedesktop.org/attachment.cgi?id=24651?  This looks like pipe underruns based on the video, but I'd like to be sure.
Comment 5 Sven Arvidsson 2009-04-14 23:09:22 UTC
Backlight control seems a lot more well behaved after applying the patch, no flicker. 

Unfortunately I now get flickering almost constantly when there is large changes to the screen (moving windows around etc.) and the log file is filled with errors about "underrun on pipe B!".

Comment 6 Jesse Barnes 2009-04-15 08:53:50 UTC
Oh interesting... Can you attach your log containing a few of the underruns?
Comment 7 Sven Arvidsson 2009-04-15 14:34:45 UTC
Created attachment 24831 [details]
xorg log using i830-fifo-wm-only-8.patch

Sure. This is the log just after logging in and launching gnome-terminal.
Comment 8 Jesse Barnes 2009-06-23 17:18:44 UTC
Created attachment 27065 [details] [review]
FIFO setup patch for KMS

Is it possible for you to use KMS on this machine?  If so, can you give this patch a try?
Comment 9 Sven Arvidsson 2009-06-24 07:26:39 UTC
With KMS and the patch applied, things seems to work fine. There's no more flicker when xrandr is run or when gnome-power-manager adjusts the backlight.

But for some reason, xbacklight reports "No outputs have backlight property" and they are indeed gone from the verbose output of xrandr. Maybe this is normal?
Comment 10 Jesse Barnes 2009-06-24 10:54:25 UTC
Ok good to hear.  Yeah, with KMS the backlight is controlled through /sys/class/backlight.  We may not expose it via a property at all...
Comment 11 Sven Arvidsson 2009-06-25 05:31:34 UTC
By the way, will this patch make it for 2.6.31?
Comment 12 Jesse Barnes 2009-06-25 09:08:32 UTC
Yeah, that's the goal.  I'll close this with a link to the commit when that happens.
Comment 13 Jesse Barnes 2009-07-02 16:16:26 UTC
Fix pushed, thanks for testing!

author	Shaohua Li <shaohua.li@intel.com>
commit	7662c8bd6545c12ac7b2b39e4554c3ba34789c50

drm/i915: add FIFO watermark support


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.