All of lore.kernel.org
 help / color / mirror / Atom feed
From: Darren Hart <dvhart@infradead.org>
To: Azael Avalos <coproscefalo@gmail.com>
Cc: platform-driver-x86@vger.kernel.org,
	linux-kernel@vger.kernel.org, stable@vger.kernel.org,
	Fabian Koester <fabian.koester@bringnow.com>
Subject: Re: [PATCH] toshiba_acpi: Fix blank screen at boot if transflective backlight is supported
Date: Fri, 20 Nov 2015 15:16:32 -0800	[thread overview]
Message-ID: <20151120231632.GC7413@malice.jf.intel.com> (raw)
In-Reply-To: <1447644767-356-1-git-send-email-coproscefalo@gmail.com>

On Sun, Nov 15, 2015 at 08:32:47PM -0700, Azael Avalos wrote:
> If transflective backlight is supported and the brightness is zero
> (lowest brightness level), the set_lcd_brightness function will activate
> the transflective backlight, making the LCD appear to be turned off.
> 
> This patch fixes the issue by incrementing the brightness level, and
> by doing so, avoiding the activation of the tranflective backlight.

So... I'm not sure this is a bug or even wrong behavior. The lowest setting on
my Thinkpad Yoga 12 is also "off" in Linux. Same is true for my Mac Book Pro (in
Mac OS X).

From what I can tell, what this patch does is merely disable the lowest setting.

What is it about this behavior that is considered to be wrong?

> 
> Cc: <stable@vger.kernel.org> # 4.3+
> Reported-and-tested-by: Fabian Koester <fabian.koester@bringnow.com>
> Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
> ---
>  drivers/platform/x86/toshiba_acpi.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c
> index 2ca3f91..b6a7dc9 100644
> --- a/drivers/platform/x86/toshiba_acpi.c
> +++ b/drivers/platform/x86/toshiba_acpi.c
> @@ -2634,6 +2634,14 @@ static int toshiba_acpi_setup_backlight(struct toshiba_acpi_dev *dev)
>  	brightness = __get_lcd_brightness(dev);
>  	if (brightness < 0)
>  		return 0;
> +	/*
> +	 * If transflective backlight is supported and the brightness is zero
> +	 * (lowest brightness level), the set_lcd_brightness function will
> +	 * activate the transflective backlight, making the LCD appear to be
> +	 * turned off, simply increment the brightness level to avoid that.
> +	 */
> +	if (dev->tr_backlight_supported && brightness == 0)
> +		brightness++;
>  	ret = set_lcd_brightness(dev, brightness);
>  	if (ret) {
>  		pr_debug("Backlight method is read-only, disabling backlight support\n");
> -- 
> 2.6.2
> 
> 

-- 
Darren Hart
Intel Open Source Technology Center

WARNING: multiple messages have this Message-ID (diff)
From: Darren Hart <dvhart@infradead.org>
To: Azael Avalos <coproscefalo@gmail.com>
Cc: platform-driver-x86@vger.kernel.org,
	linux-kernel@vger.kernel.org, stable@vger.kernel.org,
	Fabian Koester <fabian.koester@bringnow.com>
Subject: Re: [PATCH] toshiba_acpi: Fix blank screen at boot if transflective backlight is supported
Date: Fri, 20 Nov 2015 15:16:32 -0800	[thread overview]
Message-ID: <20151120231632.GC7413@malice.jf.intel.com> (raw)
In-Reply-To: <1447644767-356-1-git-send-email-coproscefalo@gmail.com>

On Sun, Nov 15, 2015 at 08:32:47PM -0700, Azael Avalos wrote:
> If transflective backlight is supported and the brightness is zero
> (lowest brightness level), the set_lcd_brightness function will activate
> the transflective backlight, making the LCD appear to be turned off.
> 
> This patch fixes the issue by incrementing the brightness level, and
> by doing so, avoiding the activation of the tranflective backlight.

So... I'm not sure this is a bug or even wrong behavior. The lowest setting on
my Thinkpad Yoga 12 is also "off" in Linux. Same is true for my Mac Book Pro (in
Mac OS X).

>From what I can tell, what this patch does is merely disable the lowest setting.

What is it about this behavior that is considered to be wrong?

> 
> Cc: <stable@vger.kernel.org> # 4.3+
> Reported-and-tested-by: Fabian Koester <fabian.koester@bringnow.com>
> Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
> ---
>  drivers/platform/x86/toshiba_acpi.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c
> index 2ca3f91..b6a7dc9 100644
> --- a/drivers/platform/x86/toshiba_acpi.c
> +++ b/drivers/platform/x86/toshiba_acpi.c
> @@ -2634,6 +2634,14 @@ static int toshiba_acpi_setup_backlight(struct toshiba_acpi_dev *dev)
>  	brightness = __get_lcd_brightness(dev);
>  	if (brightness < 0)
>  		return 0;
> +	/*
> +	 * If transflective backlight is supported and the brightness is zero
> +	 * (lowest brightness level), the set_lcd_brightness function will
> +	 * activate the transflective backlight, making the LCD appear to be
> +	 * turned off, simply increment the brightness level to avoid that.
> +	 */
> +	if (dev->tr_backlight_supported && brightness == 0)
> +		brightness++;
>  	ret = set_lcd_brightness(dev, brightness);
>  	if (ret) {
>  		pr_debug("Backlight method is read-only, disabling backlight support\n");
> -- 
> 2.6.2
> 
> 

-- 
Darren Hart
Intel Open Source Technology Center

  reply	other threads:[~2015-11-20 23:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-16  3:32 [PATCH] toshiba_acpi: Fix blank screen at boot if transflective backlight is supported Azael Avalos
2015-11-20 23:16 ` Darren Hart [this message]
2015-11-20 23:16   ` Darren Hart
2015-11-20 23:46   ` Azael Avalos
2015-11-21  0:48     ` Darren Hart

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=20151120231632.GC7413@malice.jf.intel.com \
    --to=dvhart@infradead.org \
    --cc=coproscefalo@gmail.com \
    --cc=fabian.koester@bringnow.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    /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.