Skip to content

Commit 143176a

Browse files
qyl27rafaeljw
authored andcommitted
ACPI: video: Add quirk for the Colorful X15 AT 23 Laptop
The Colorful X15 AT 23 ACPI video-bus device report spurious ACPI_VIDEO_NOTIFY_CYCLE events resulting in spurious KEY_SWITCHVIDEOMODE events being reported to userspace (and causing trouble there) when an external screen plugged in. Add a quirk setting the report_key_events mask to REPORT_BRIGHTNESS_KEY_EVENTS so that the ACPI_VIDEO_NOTIFY_CYCLE events will be ignored, while still reporting brightness up/down hotkey-presses to userspace normally. Signed-off-by: Yuluo Qiu <qyl27@outlook.com> Co-developed-by: Celeste Liu <CoelacanthusHex@gmail.com> Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 2c9f398 commit 143176a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/acpi/acpi_video.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,15 @@ static const struct dmi_system_id video_dmi_table[] = {
500500
DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 3350"),
501501
},
502502
},
503+
{
504+
.callback = video_set_report_key_events,
505+
.driver_data = (void *)((uintptr_t)REPORT_BRIGHTNESS_KEY_EVENTS),
506+
.ident = "COLORFUL X15 AT 23",
507+
.matches = {
508+
DMI_MATCH(DMI_SYS_VENDOR, "COLORFUL"),
509+
DMI_MATCH(DMI_PRODUCT_NAME, "X15 AT 23"),
510+
},
511+
},
503512
/*
504513
* Some machines change the brightness themselves when a brightness
505514
* hotkey gets pressed, despite us telling them not to. In this case

0 commit comments

Comments
 (0)