From: Alex Davis <alex14641@yahoo.com>
To: Keith Packard <keithp@keithp.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"mjg@redhat.com" <mjg@redhat.com>
Subject: Re: [Regression] Laptop screen dark when lid closed and reopened.with 3.1
Date: Sun, 2 Oct 2011 12:20:19 -0700 (PDT) [thread overview]
Message-ID: <1317583219.81808.YahooMailNeo@web130113.mail.mud.yahoo.com> (raw)
In-Reply-To: <1316957004.77729.YahooMailNeo@web130108.mail.mud.yahoo.com>
Sometime in the past: Keith Packard <keithp@keithp.com> wrote:
>> One good thing about the 3.1 kernels is that I now have the /sys/class/backlight/intel_backlight directory
>> in addition to /sys/class/backlight/dell_backlight. With intel_backlight, I can control the LCD brightness;
>> dell_backlight never worked, neither in 3.0 or 3.1.
>
>Can you tell if the screen is blank with the backlight on, or is the
>screen drawn correctly and the backlight off?
>
>If the screen is blank but the backlight is on, then you may want a
>patch which is on my drm-intel-fixes branch.
>
>git://anongit.freedesktop.org/~keithp/linux
>
>If the screen is drawn, but the backlight is off, you may want to try
>reverting the native backlight patch:
>
>aaa6fd2a004147bf32fce05720938236de3361d9
>
>Author: Matthew Garrett <mjg@redhat.com> 2011-08-12 03:11:33
>Committer: Keith Packard <keithp@keithp.com> 2011-08-15 12:10:25
>Parent: 302983e9059e9ef5de3ca7671918eeb237c5971e (drm/i915/pch: Fix integer math bugs in panel fitting)
>
>Not all systems expose a firmware or platform mechanism for changing the backlight intensity on i915, so add native driver support.
>
>--
>keith.packard@intel.com
The following patch fixes the problem for me:
diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c
index 31da77f..9c16243 100644
--- a/drivers/gpu/drm/i915/intel_lvds.c
+++ b/drivers/gpu/drm/i915/intel_lvds.c
@@ -126,8 +126,6 @@ static void intel_lvds_disable(struct intel_lvds *intel_lvds)
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");
This patch is against 3.1 rc8 with Keith Packard's drm-intel-fixes merged in.
Putting printk's in ./drivers/gpu/drm/i915/intel_panel.c showed that intel_get_brightness was being called after
the panel was disabled, which caused a 0 to be saved as the value to restore the brightness. intel_panel_disable_backlight
merely sets the brightness to 0. Commenting out this call allows the correct brightness value to be saved.
Thoughts?
next prev parent reply other threads:[~2011-10-02 19:20 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-20 0:28 [Regression] Laptop screen dark when lid closed and reopened Alex Davis
[not found] ` <CAHR1FHH9bJScYkD7_gDaSd1JZ7eMai+x_-gzUtRZ5jmLSft_WA@mail.gmail.com>
2011-09-20 3:35 ` Alex Davis
[not found] ` <CAHR1FHGAf-UFU2GTK_ZcdxFe2Ngxpf9RtnXeRUOtQ1Fz4mqE3A@mail.gmail.com>
2011-09-20 11:31 ` Pranjal Verma
2011-09-24 12:55 ` [Regression] Laptop screen dark when lid closed and reopened.with 3.1 Alex Davis
2011-09-24 14:48 ` Keith Packard
2011-09-24 15:13 ` Alex Davis
2011-09-24 17:40 ` Keith Packard
2011-09-25 13:23 ` Alex Davis
2011-09-25 20:29 ` Keith Packard
2011-09-25 20:48 ` Alex Davis
2011-09-27 10:16 ` Alex Davis
2011-09-27 17:55 ` Keith Packard
2011-10-02 19:20 ` Alex Davis [this message]
2011-10-02 21:09 ` Alex Davis
2011-10-26 3:19 ` Alex Davis
2011-10-26 15:13 ` Keith Packard
2011-10-26 20:21 ` Kamal Mostafa
2011-10-26 22:52 ` Alex Davis
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=1317583219.81808.YahooMailNeo@web130113.mail.mud.yahoo.com \
--to=alex14641@yahoo.com \
--cc=keithp@keithp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mjg@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®