]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.14.111/acpi-video-extend-chassis-type-detection-with-a-lunc.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.14.111 / acpi-video-extend-chassis-type-detection-with-a-lunc.patch
CommitLineData
04fd09d4
SL
1From a4e4dcaa9b54241e1641f4ce06703a337ee9ba08 Mon Sep 17 00:00:00 2001
2From: Hans de Goede <hdegoede@redhat.com>
3Date: Mon, 7 Jan 2019 17:08:21 +0100
4Subject: ACPI / video: Extend chassis-type detection with a "Lunch Box" check
5
6[ Upstream commit d693c008e3ca04db5916ff72e68ce661888a913b ]
7
8Commit 53fa1f6e8a59 ("ACPI / video: Only default only_lcd to true on
9Win8-ready _desktops_") introduced chassis type detection, limiting the
10lcd_only check for the backlight to devices where the chassis-type
11indicates their is no builtin LCD panel.
12
13The purpose of the lcd_only check is to avoid advertising a backlight
14interface on desktops, since skylake and newer machines seem to always
15have a backlight interface even if there is no LCD panel. The limiting
16of this check to desktops only was done to avoid breaking backlight
17support on some laptops which do not have the lcd flag set.
18
19The Fujitsu ESPRIMO Q910 which is a compact (NUC like) desktop machine
20has a chassis type of 0x10 aka "Lunch Box". Without the lcd_only check
21we end up falsely advertising backlight/brightness control on this
22device. This commit extend the dmi_is_desktop check to return true
23for type 0x10 to fix this.
24
25Fixes: 53fa1f6e8a59 ("ACPI / video: Only default only_lcd to true ...")
26Signed-off-by: Hans de Goede <hdegoede@redhat.com>
27Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
28Signed-off-by: Sasha Levin <sashal@kernel.org>
29---
30 drivers/acpi/acpi_video.c | 1 +
31 1 file changed, 1 insertion(+)
32
33diff --git a/drivers/acpi/acpi_video.c b/drivers/acpi/acpi_video.c
34index 9f56c066227c..e39a1489cc72 100644
35--- a/drivers/acpi/acpi_video.c
36+++ b/drivers/acpi/acpi_video.c
37@@ -2142,6 +2142,7 @@ static bool dmi_is_desktop(void)
38 case 0x05: /* Pizza Box */
39 case 0x06: /* Mini Tower */
40 case 0x07: /* Tower */
41+ case 0x10: /* Lunch Box */
42 case 0x11: /* Main Server Chassis */
43 return true;
44 }
45--
462.19.1
47