ACPI / video: Add systems that should favour native backlight interface
Subsystems (2)
PATCH v4 1/1 ACPI / video: Add systems that should favour native backlight interface
Some system's ACPI video backlight control interface is broken and the native backlight control interface should be used by default. This patch sets the use_native_backlight parameter to true for those systems so that video backlight control interface will not be created. For detailed models that are added here, reference the following list.
Note that the user specified kernel cmdline option will always have the highest priority, i.e. if use_native_backlight=0 is specified and the system is in the DMI table, the video module will not skip registering backlight interface for it.
Thinkpad T430s:
Reference: https://bugzilla.kernel.org/show_bug.cgi?id=51231
Thinkpad X230:
Reference: https://bugzilla.kernel.org/show_bug.cgi?id=51231
ThinkPad X1 Carbon:
Lenovo Yoga 13:
Reference: https://bugzilla.kernel.org/show_bug.cgi?id=63811
Dell Inspiron 7520:
Acer Aspire 5733Z:
Reference: https://bugzilla.kernel.org/show_bug.cgi?id=62941
Acer Aspire V5-431:
Reference: https://bugzilla.kernel.org/show_bug.cgi?id=68751
HP ProBook 4340s:
Reference: http://redmine.russianfedora.pro/issues/1258
HP EliteBook/ProBook 2013 models, ZBook and some others:
--- drivers/acpi/blacklist.c | 8 --- drivers/acpi/video.c | 139 ++++++++++++++++++++++++++++++++++++++++++-- drivers/acpi/video_detect.c | 16 ----- 3 files changed, 134 insertions(+), 29 deletions(-)
drivers/acpi/blacklist.c +0 -8
@@ -260,14 +260,6 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = { }, { .callback = dmi_disable_osi_win8, - .ident = "Dell Inspiron 15R SE", - .matches = { -DMI_MATCH (DMI_SYS_VENDOR ,"Dell Inc." ), - DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 7520"), - }, - }, - { - .callback = dmi_disable_osi_win8, .ident = "ThinkPad Edge E530", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
drivers/acpi/video.c +134 -5
166 lines not on this page · raw message
drivers/acpi/video_detect.c +0 -16
@@ -168,22 +168,6 @@ static struct dmi_system_id video_detect_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "UL30A"), }, }, - { - .callback = video_detect_force_vendor, - .ident = "HP EliteBook Revolve 810", - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), - DMI_MATCH(DMI_PRODUCT_NAME, "HP EliteBook Revolve 810 G1"), - }, - }, - { - .callback = video_detect_force_vendor, - .ident = "Lenovo Yoga 13", - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), - DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo IdeaPad Yoga 13"), - }, - }, { }, };
Signature · 1 line
1.8.5.3
drivers/acpi/video.c static struct dmi_system_id video_dmi_table[] __initdata = { · line 541
Quoted 9 lines · Aaron Lu
drivers/acpi/video.c +9
-0+ { + .callback = video_set_use_native_backlight, + .ident = "HP EliteBook 2013 models", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), + DMI_MATCH(DMI_PRODUCT_NAME, "HP EliteBook "), + DMI_MATCH(DMI_PRODUCT_NAME, " G1"), + }, + },
I see my device is listed here but the above doesn't really use native backlight because it is still in acpi_osi blacklist. Tried this and I can see both acpi_video0 and intel_backlight listed under /sys/class/backlight. Was this the intention?
At Tue, 18 Feb 2014 12:34:42 +0200,
Quoted 16 lines · Mika Westerberg
drivers/acpi/video.c static struct dmi_system_id video_dmi_table[] __initdata = { · line 541
Quoted 9 lines · Aaron Lu
drivers/acpi/video.c +9
-0+ { + .callback = video_set_use_native_backlight, + .ident = "HP EliteBook 2013 models", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), + DMI_MATCH(DMI_PRODUCT_NAME, "HP EliteBook "), + DMI_MATCH(DMI_PRODUCT_NAME, " G1"), + }, + },I see my device is listed here but the above doesn't really use native backlight because it is still in
acpi_osiblacklist. Tried this and I can see bothacpi_video0andintel_backlightlisted under/sys/class/backlight. Was this the intention?
The acpi_osi blacklist commit (2d4054d84224) has to be reverted, as I mentioned earlier. But the revert can be done individually after merging this patch. Rafael, could you care?
Takashi
Quoted 19 lines · Takashi Iwai
At Tue, 18 Feb 2014 12:34:42 +0200,
Quoted 16 lines · Mika Westerberg
drivers/acpi/video.c static struct dmi_system_id video_dmi_table[] __initdata = { · line 541
Quoted 9 lines · Aaron Lu
drivers/acpi/video.c +9
-0+ { + .callback = video_set_use_native_backlight, + .ident = "HP EliteBook 2013 models", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), + DMI_MATCH(DMI_PRODUCT_NAME, "HP EliteBook "), + DMI_MATCH(DMI_PRODUCT_NAME, " G1"), + }, + },I see my device is listed here but the above doesn't really use native backlight because it is still in
acpi_osiblacklist. Tried this and I can see bothacpi_video0andintel_backlightlisted under/sys/class/backlight. Was this the intention?
Quoted 3 lines
The
acpi_osiblacklist commit (2d4054d84224) has to be reverted, as I mentioned earlier. But the revert can be done individually after merging this patch. Rafael, could you care?
Done. Please check the result in linux-pm.git/linux-next.
Thanks,
Rafael
Mika Westerberg
Tested-byQuoted 20 lines · Rafael J. Wysocki
Quoted 19 lines · Takashi Iwai
At Tue, 18 Feb 2014 12:34:42 +0200,
Quoted 16 lines · Mika Westerberg
drivers/acpi/video.c static struct dmi_system_id video_dmi_table[] __initdata = { · line 541
Quoted 9 lines · Aaron Lu
drivers/acpi/video.c +9
-0+ { + .callback = video_set_use_native_backlight, + .ident = "HP EliteBook 2013 models", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), + DMI_MATCH(DMI_PRODUCT_NAME, "HP EliteBook "), + DMI_MATCH(DMI_PRODUCT_NAME, " G1"), + }, + },I see my device is listed here but the above doesn't really use native backlight because it is still in
acpi_osiblacklist. Tried this and I can see bothacpi_video0andintel_backlightlisted under/sys/class/backlight. Was this the intention?
Quoted 5 lines
Quoted 3 lines
The
acpi_osiblacklist commit (2d4054d84224) has to be reverted, as I mentioned earlier. But the revert can be done individually after merging this patch. Rafael, could you care?Done. Please check the result in linux-pm.git/linux-next.
With your revert and this patch from Aaron, backlight on my HP EliteBook Revolve G1 works fine, thanks!
Quoted 20 lines · Rafael J. Wysocki
Quoted 19 lines · Takashi Iwai
At Tue, 18 Feb 2014 12:34:42 +0200,
Quoted 16 lines · Mika Westerberg
drivers/acpi/video.c static struct dmi_system_id video_dmi_table[] __initdata = { · line 541
Quoted 9 lines · Aaron Lu
drivers/acpi/video.c +9
-0+ { + .callback = video_set_use_native_backlight, + .ident = "HP EliteBook 2013 models", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), + DMI_MATCH(DMI_PRODUCT_NAME, "HP EliteBook "), + DMI_MATCH(DMI_PRODUCT_NAME, " G1"), + }, + },I see my device is listed here but the above doesn't really use native backlight because it is still in
acpi_osiblacklist. Tried this and I can see bothacpi_video0andintel_backlightlisted under/sys/class/backlight. Was this the intention?
Quoted 5 lines
Quoted 3 lines
The
acpi_osiblacklist commit (2d4054d84224) has to be reverted, as I mentioned earlier. But the revert can be done individually after merging this patch. Rafael, could you care?Done. Please check the result in linux-pm.git/linux-next.
Is it will merge to 3.14 ?
P.S. why you don't using rafael@ mail ? *joke*
Quoted 4 lines
Thanks,
Rafael
Signature · 1 line
-Igor Gnatenko
Quoted 21 lines · Igor Gnatenko
Quoted 20 lines · Rafael J. Wysocki
Quoted 19 lines · Takashi Iwai
At Tue, 18 Feb 2014 12:34:42 +0200,
Quoted 16 lines · Mika Westerberg
drivers/acpi/video.c static struct dmi_system_id video_dmi_table[] __initdata = { · line 541
Quoted 9 lines · Aaron Lu
drivers/acpi/video.c +9
-0+ { + .callback = video_set_use_native_backlight, + .ident = "HP EliteBook 2013 models", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), + DMI_MATCH(DMI_PRODUCT_NAME, "HP EliteBook "), + DMI_MATCH(DMI_PRODUCT_NAME, " G1"), + }, + },I see my device is listed here but the above doesn't really use native backlight because it is still in
acpi_osiblacklist. Tried this and I can see bothacpi_video0andintel_backlightlisted under/sys/class/backlight. Was this the intention?
Quoted 6 lines
Quoted 5 lines
Quoted 3 lines
The
acpi_osiblacklist commit (2d4054d84224) has to be reverted, as I mentioned earlier. But the revert can be done individually after merging this patch. Rafael, could you care?Done. Please check the result in linux-pm.git/linux-next.
Is it will merge to 3.14 ?
That's the plan.
Quoted 1 line
P.S. why you don't using rafael@ mail ? *joke*
Because it is hooked up to gmail. And I actually do use it sometimes.
Thanks,
Rafael
Quoted 25 lines · Mika Westerberg
Quoted 24 lines · Rafael J. Wysocki
Quoted 22 lines · Takashi Iwai
At Tue, 18 Feb 2014 12:34:42 +0200,
Quoted 16 lines · Mika Westerberg
drivers/acpi/video.c static struct dmi_system_id video_dmi_table[] __initdata = { · line 541
Quoted 9 lines · Aaron Lu
drivers/acpi/video.c +9
-0+ { + .callback = video_set_use_native_backlight, + .ident = "HP EliteBook 2013 models", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), + DMI_MATCH(DMI_PRODUCT_NAME, "HP EliteBook "), + DMI_MATCH(DMI_PRODUCT_NAME, " G1"), + }, + },I see my device is listed here but the above doesn't really use native backlight because it is still in
acpi_osiblacklist. Tried this and I can see bothacpi_video0andintel_backlightlisted under/sys/class/backlight. Was this the intention?The
acpi_osiblacklist commit (2d4054d84224) has to be reverted, as I mentioned earlier. But the revert can be done individually after merging this patch. Rafael, could you care?
Quoted 6 lines
Quoted 1 line
Done. Please check the result in linux-pm.git/linux-next.
With your revert and this patch from Aaron, backlight on my HP EliteBook Revolve G1 works fine, thanks!
Tested-by Mika Westerberg <[email protected]>
Thanks for the test Mika and sorry for all the confusions caused.
-Aaron