aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86
diff options
context:
space:
mode:
authorAzael Avalos <coproscefalo@gmail.com>2015-11-15 22:32:47 -0500
committerDarren Hart <dvhart@linux.intel.com>2015-11-20 19:43:13 -0500
commitbae5336f0aaedffa115dab9cb3d8a4e4aed3a26a (patch)
tree5f94af9cd1cfaa9ca5217ede976c332b74010d4f /drivers/platform/x86
parent13ae84f9486b5a1b3614c3da37cba561b8eb3c7f (diff)
toshiba_acpi: Fix blank screen at boot if transflective backlight is supported
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. 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> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86')
-rw-r--r--drivers/platform/x86/toshiba_acpi.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c
index 3aed8a4618ce..4f722aa0c7b3 100644
--- a/drivers/platform/x86/toshiba_acpi.c
+++ b/drivers/platform/x86/toshiba_acpi.c
@@ -2484,6 +2484,14 @@ static int toshiba_acpi_setup_backlight(struct toshiba_acpi_dev *dev)
2484 brightness = __get_lcd_brightness(dev); 2484 brightness = __get_lcd_brightness(dev);
2485 if (brightness < 0) 2485 if (brightness < 0)
2486 return 0; 2486 return 0;
2487 /*
2488 * If transflective backlight is supported and the brightness is zero
2489 * (lowest brightness level), the set_lcd_brightness function will
2490 * activate the transflective backlight, making the LCD appear to be
2491 * turned off, simply increment the brightness level to avoid that.
2492 */
2493 if (dev->tr_backlight_supported && brightness == 0)
2494 brightness++;
2487 ret = set_lcd_brightness(dev, brightness); 2495 ret = set_lcd_brightness(dev, brightness);
2488 if (ret) { 2496 if (ret) {
2489 pr_debug("Backlight method is read-only, disabling backlight support\n"); 2497 pr_debug("Backlight method is read-only, disabling backlight support\n");