Skip to content

Commit c844d22

Browse files
tuxedo-wserafaeljw
authored andcommitted
ACPI: video: Force backlight native for Clevo NL5xRU and NL5xNU
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>
1 parent 09688c0 commit c844d22

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

419494
/*
420495
* Desktops which falsely report a backlight and which our heuristics

0 commit comments

Comments
 (0)