All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Davis <alex14641@yahoo.com>
To: "wmkoolen@science.uva.nl" <wmkoolen@science.uva.nl>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [bisected] i915 dpms does not switch back light on
Date: Thu, 27 Oct 2011 13:38:24 -0700 (PDT)	[thread overview]
Message-ID: <1319747904.1731.YahooMailNeo@web130113.mail.mud.yahoo.com> (raw)
In-Reply-To: <1319743670.62757.YahooMailNeo@web130109.mail.mud.yahoo.com>



>I've been having this problem as well. I created a patch that fixes the problem for me and others:
>
>diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c
>index 6f56676..a9e0c7b 100644
>--- a/drivers/gpu/drm/i915/intel_panel.c
>+++ b/drivers/gpu/drm/i915/intel_panel.c
>@@ -262,6 +262,8 @@ void intel_panel_disable_backlight(struct drm_device *dev)
>                dev_priv->backlight_level = intel_panel_get_backlight(dev);
>                dev_priv->backlight_enabled = false;
>        }
>+
>+       intel_panel_set_backlight(dev, 0);
> }
>

If the patch above doesn't work, try this one:

diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c
index 6f56676..a9e0c7b 100644
--- a/drivers/gpu/drm/i915/intel_panel.c
+++ b/drivers/gpu/drm/i915/intel_panel.c
@@ -262,6 +262,8 @@ void intel_panel_disable_backlight(struct drm_device *dev)
                dev_priv->backlight_level = intel_panel_get_backlight(dev);
                dev_priv->backlight_enabled = false;
        }
+
+       intel_panel_set_backlight(dev, 0);
 }
 
 void intel_panel_enable_backlight(struct drm_device *dev)

  reply	other threads:[~2011-10-27 20:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-27 19:27 Re:[bisected] i915 dpms does not switch back light on Alex Davis
2011-10-27 20:38 ` Alex Davis [this message]
2011-10-31 13:57   ` [bisected] " Wouter M. Koolen
2011-10-31 23:41     ` Alex Davis
  -- strict thread matches above, loose matches on Subject: below --
2011-10-27 10:19 Wouter M. Koolen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1319747904.1731.YahooMailNeo@web130113.mail.mud.yahoo.com \
    --to=alex14641@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wmkoolen@science.uva.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.