[Bug 83021] Brightness is automatically set to zero when switching from X session to tty

bugzilla-daemon at bugzilla.kernel.org bugzilla-daemon at bugzilla.kernel.org
Mon Aug 25 06:11:00 PDT 2014


https://bugzilla.kernel.org/show_bug.cgi?id=83021

--- Comment #3 from Gabriele Mazzotta <gabriele.mzt at gmail.com> ---
Created attachment 148021
  --> https://bugzilla.kernel.org/attachment.cgi?id=148021&action=edit
dmesg with drm.debug=0xe

1) 29.866760 is when I switched back to my X session, the bug happens right
before that.

2) It doesn't work. The following works:

diff --git a/drivers/gpu/drm/i915/intel_panel.c
b/drivers/gpu/drm/i915/intel_panel.c
index 59b028f..10f6ecd 100644
--- a/drivers/gpu/drm/i915/intel_panel.c
+++ b/drivers/gpu/drm/i915/intel_panel.c
@@ -946,7 +946,8 @@ void intel_panel_enable_backlight(struct intel_connector
*connector)

     WARN_ON(panel->backlight.max == 0);

-    if (panel->backlight.level == 0) {
+    if (panel->backlight.level == 0 ||
+        panel->backlight.level <= panel->backlight.min) {
         panel->backlight.level = panel->backlight.max;
         if (panel->backlight.device)
             panel->backlight.device->props.brightness =

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the intel-gfx-bugs mailing list