linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Aaron Lu <aaron.lu@intel.com>
To: Kirill Tkhai <tkhai@yandex.ru>, linux-acpi@vger.kernel.org
Cc: rjw@rjwysocki.net, Jani Nikula <jani.nikula@linux.intel.com>
Subject: Re: [PATCH] ACPI: video: Ignore BIOS initial backlight value for HP 250 G1
Date: Mon, 28 Oct 2013 11:24:33 +0800	[thread overview]
Message-ID: <526DD8F1.9040801@intel.com> (raw)
In-Reply-To: <100851382097404@web21g.yandex.ru>

On 10/18/2013 07:56 PM, Kirill Tkhai wrote:
> On HP 250 G1 laptops, BIOS reports minimum backlight on boot and
> causes backlight to dim completely. This ignores the initial backlight
> values and set to max brightness.
> 
> Reference: https://bugzilla.kernel.org/show_bug.cgi?id=63111

According to the acpidump:

The ASL code initialize initial brightness level to 100, but only for OS
that is pre-vista. Don't know why it does this...

Method (_INI, 0, NotSerialized)  // _INI: Initialize
{
	If (LLess (OSYS, 0x07D6))
	{
		Store (0x64, BRTL)
	}
	... ...
}

Method (_BQC, 0, NotSerialized)  // _BQC: Brightness Query Current
{
	Return (BRTL)
}

Since it is not initialized in _INI(as we report to firmware we are
'Windows 2012'), the video module was told by _BQC the initial brightness
level is 0 and then set backlight level to 0 and leads to a black screen
after boot up.

> Signed-off-by: Kirill Tkhai <tkhai@yandex.ru>

The patch looks good to me.
Reviewed-by: Aaron Lu <aaron.lu@intel.com>

Thanks,
Aaron

> ---
>  drivers/acpi/video.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
> index 3270d3c..6456466 100644
> --- a/drivers/acpi/video.c
> +++ b/drivers/acpi/video.c
> @@ -490,6 +490,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
>  		DMI_MATCH(DMI_PRODUCT_NAME, "HP Pavilion m4 Notebook PC"),
>  		},
>  	},
> +	{
> +	 .callback = video_ignore_initial_backlight,
> +	 .ident = "HP 250 G1",
> +	 .matches = {
> +		DMI_MATCH(DMI_BOARD_VENDOR, "Hewlett-Packard"),
> +		DMI_MATCH(DMI_PRODUCT_NAME, "HP 250 G1 Notebook PC"),
> +		},
> +	},
>  	{}
>  };
>  
> --
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


      reply	other threads:[~2013-10-28  3:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-18 11:56 [PATCH] ACPI: video: Ignore BIOS initial backlight value for HP 250 G1 Kirill Tkhai
2013-10-28  3:24 ` Aaron Lu [this message]

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=526DD8F1.9040801@intel.com \
    --to=aaron.lu@intel.com \
    --cc=jani.nikula@linux.intel.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=rjw@rjwysocki.net \
    --cc=tkhai@yandex.ru \
    /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;
as well as URLs for NNTP newsgroup(s).