Skip to content

Commit 9f4e646

Browse files
tuxedo-wsegregkh
authored andcommitted
ACPI: video: Force backlight native for Clevo NL5xRU and NL5xNU
commit c844d22 upstream. Clevo NL5xRU and NL5xNU/TUXEDO Aura 15 Gen1 and Gen2 have both a working native and video interface. However the default detection mechanism first registers the video interface before unregistering it again and switching to the native interface during boot. This results in a dangling SBIOS request for backlight change for some reason, causing the backlight to switch to ~2% once per boot on the first power cord connect or disconnect event. Setting the native interface explicitly circumvents this buggy behaviour by avoiding the unregistering process. Signed-off-by: Werner Sembach <wse@tuxedocomputers.com> Cc: All applicable <stable@vger.kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 0b2ffba commit 9f4e646

1 file changed

Lines changed: 75 additions & 0 deletions

File tree

drivers/acpi/video_detect.c

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,81 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
409409
DMI_MATCH(DMI_PRODUCT_NAME, "GA503"),
410410
},
411411
},
412+
/*
413+
* Clevo NL5xRU and NL5xNU/TUXEDO Aura 15 Gen1 and Gen2 have both a
414+
* working native and video interface. However the default detection
415+
* mechanism first registers the video interface before unregistering
416+
* it again and switching to the native interface during boot. This
417+
* results in a dangling SBIOS request for backlight change for some
418+
* reason, causing the backlight to switch to ~2% once per boot on the
419+
* first power cord connect or disconnect event. Setting the native
420+
* interface explicitly circumvents this buggy behaviour, by avoiding
421+
* the unregistering process.
422+
*/
423+
{
424+
.callback = video_detect_force_native,
425+
.ident = "Clevo NL5xRU",
426+
.matches = {
427+
DMI_MATCH(DMI_SYS_VENDOR, "TUXEDO"),
428+
DMI_MATCH(DMI_BOARD_NAME, "NL5xRU"),
429+
},
430+
},
431+
{
432+
.callback = video_detect_force_native,
433+
.ident = "Clevo NL5xRU",
434+
.matches = {
435+
DMI_MATCH(DMI_SYS_VENDOR, "SchenkerTechnologiesGmbH"),
436+
DMI_MATCH(DMI_BOARD_NAME, "NL5xRU"),
437+
},
438+
},
439+
{
440+
.callback = video_detect_force_native,
441+
.ident = "Clevo NL5xRU",
442+
.matches = {
443+
DMI_MATCH(DMI_SYS_VENDOR, "Notebook"),
444+
DMI_MATCH(DMI_BOARD_NAME, "NL5xRU"),
445+
},
446+
},
447+
{
448+
.callback = video_detect_force_native,
449+
.ident = "Clevo NL5xRU",
450+
.matches = {
451+
DMI_MATCH(DMI_SYS_VENDOR, "TUXEDO"),
452+
DMI_MATCH(DMI_BOARD_NAME, "AURA1501"),
453+
},
454+
},
455+
{
456+
.callback = video_detect_force_native,
457+
.ident = "Clevo NL5xRU",
458+
.matches = {
459+
DMI_MATCH(DMI_SYS_VENDOR, "TUXEDO"),
460+
DMI_MATCH(DMI_BOARD_NAME, "EDUBOOK1502"),
461+
},
462+
},
463+
{
464+
.callback = video_detect_force_native,
465+
.ident = "Clevo NL5xNU",
466+
.matches = {
467+
DMI_MATCH(DMI_SYS_VENDOR, "TUXEDO"),
468+
DMI_MATCH(DMI_BOARD_NAME, "NL5xNU"),
469+
},
470+
},
471+
{
472+
.callback = video_detect_force_native,
473+
.ident = "Clevo NL5xNU",
474+
.matches = {
475+
DMI_MATCH(DMI_SYS_VENDOR, "SchenkerTechnologiesGmbH"),
476+
DMI_MATCH(DMI_BOARD_NAME, "NL5xNU"),
477+
},
478+
},
479+
{
480+
.callback = video_detect_force_native,
481+
.ident = "Clevo NL5xNU",
482+
.matches = {
483+
DMI_MATCH(DMI_SYS_VENDOR, "Notebook"),
484+
DMI_MATCH(DMI_BOARD_NAME, "NL5xNU"),
485+
},
486+
},
412487

413488
/*
414489
* Desktops which falsely report a backlight and which our heuristics

0 commit comments

Comments
 (0)