[Bug 55311] Since 3.7.1-17.1 radeon has no backlight when using vgaswitcheroo (regression)

bugzilla-daemon at bugzilla.kernel.org bugzilla-daemon at bugzilla.kernel.org
Sat Apr 20 07:56:23 PDT 2013


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





--- Comment #30 from Fede <fedevx at yahoo.com>  2013-04-20 14:56:23 ---
Would something like this make any sense? I added the same check (well,
inverse) which was on intel_panel.c but into intel_lvds.c.

The switch does work on my setup. I apologize if that was something horrible to
do.

======================
*** ./linux/drivers/gpu/drm/i915/intel_lvds.c   2013-04-20 13:55:42.000000000
+0800
--- ./intel_lvds.c      2013-04-20 22:31:57.000000000 +0800
***************
*** 216,224 ****
                ctl_reg = PP_CONTROL;
                stat_reg = PP_STATUS;
        }
! 
!       intel_panel_disable_backlight(dev);
! 
        I915_WRITE(ctl_reg, I915_READ(ctl_reg) & ~POWER_TARGET_ON);
        if (wait_for((I915_READ(stat_reg) & PP_ON) == 0, 1000))
                DRM_ERROR("timed out waiting for panel to power off\n");
--- 216,224 ----
                ctl_reg = PP_CONTROL;
                stat_reg = PP_STATUS;
        }
!       if (INTEL_INFO(dev)->gen < 4) {
!               intel_panel_disable_backlight(dev);
!       }
        I915_WRITE(ctl_reg, I915_READ(ctl_reg) & ~POWER_TARGET_ON);
        if (wait_for((I915_READ(stat_reg) & PP_ON) == 0, 1000))
                                                              1,1           Top

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the intel-gfx-bugs mailing list