]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/i915: Fix inconsistent backlight level during disabled
authorTakashi Iwai <tiwai@suse.de>
Wed, 16 Nov 2011 09:58:03 +0000 (10:58 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Dec 2011 16:54:08 +0000 (08:54 -0800)
commitd02f594b5287e6b8a0274991b6b6e645cef79b33
tree62a11455666a3b69be4405ca50ebfe861b3590c5
parent8f9940d1bf1d7dface90977031e327ee237408ca
drm/i915: Fix inconsistent backlight level during disabled

commit 04b38670cf46c096705f24e92a8747d1ab89e53c upstream.

When the brightness property is inquired while the backlight is disabled,
the driver returns a wrong value (zero) because it probes the value after
the backlight was turned off.  This caused a black screen even after the
backlight is enabled again.  It should return the internal backlight_level
instead, so that it won't be influenced by the backlight-enable state.

BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=41926
BugLink: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/872652
Tested-by: Kamal Mostafa <kamal@canonical.com>
Cc: Alex Davis <alex14641@yahoo.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/i915/intel_panel.c