ACPI / video: Add systems that should favor native backlight interface
Subsystems (2)
PATCH v3 1/1 ACPI / video: Add systems that should favor native backlight interface
From: Aaron Lu <[email protected]>
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. To be specific, the ThinkPad T430s/X230/X1 Carbon, Lenovo Yoga 13, Dell Inspiron 7520, Acer Aspire 5733Z and HP ProBook 4340s are added here, if they appear in some other DMI table before, they are removed from there.
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
HP ProBook 4340s:
Reference: http://redmine.russianfedora.pro/issues/1258
--- drivers/acpi/blacklist.c | 8 ----- drivers/acpi/video.c | 81 ++++++++++++++++++++++++++++++++++++++++++--- drivers/acpi/video_detect.c | 8 ----- 3 files changed, 76 insertions(+), 21 deletions(-)
drivers/acpi/blacklist.c +0 -8
@@ -261,14 +261,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 +76 -5
108 lines not on this page · raw message
drivers/acpi/video_detect.c +0 -8
@@ -168,14 +168,6 @@ static struct dmi_system_id video_detect_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "UL30A"), }, }, - { - .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.4.2
Hi Igor,
Quoted 31 lines · Igor Gnatenko
From: Aaron Lu <[email protected]>
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_backlightparameter to true for those systems so that video backlight control interface will not be created. To be specific, the ThinkPad T430s/X230/X1 Carbon, Lenovo Yoga 13, Dell Inspiron 7520, Acer Aspire 5733Z and HP ProBook 4340s are added here, if they appear in some other DMI table before, they are removed from there.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:
Reported-by Theodore Tso <[email protected]>Reported-and-tested-by Peter Weber <[email protected]>Reference: https://bugzilla.kernel.org/show_bug.cgi?id=51231
Thinkpad X230:Reported-and-tested-by Igor Gnatenko <[email protected]>Reference: https://bugzilla.kernel.org/show_bug.cgi?id=51231
ThinkPad X1 Carbon:Reported-and-tested-by Igor Gnatenko <[email protected]>Lenovo Yoga 13:
Reported-by Lennart Poettering <[email protected]>Reported-and-tested-by Kevin Smith <[email protected]>Reference: https://bugzilla.kernel.org/show_bug.cgi?id=63811
Dell Inspiron 7520:Reported-by Rinat Ibragimov <[email protected]>Acer Aspire 5733Z:
Quoted 8 lines
Reported-by <[email protected]>Reference: https://bugzilla.kernel.org/show_bug.cgi?id=62941
HP ProBook 4340s:Reported-and-tested-by Vladimir Sherenkov <[email protected]>Reference: http://redmine.russianfedora.pro/issues/1258
Signed-off-by Aaron Lu <[email protected]>Signed-off-by Igor Gnatenko <[email protected]>
Thanks for updating this patch.
In the meantime, I plan to make some small modifications to this patch in next revision:
1 remove the win8 OSI check, I've seen win7 laptops that also needs to
have only the GPU interface left and checking win8 doesn't make much sense now;
2 add more entries for laptops that appeared in bugzilla recently.
Quoted 3 lines · Aaron Lu
1 remove the win8 OSI check, I've seen win7 laptops that also needs to
have only the GPU interface left and checking win8 doesn't make much sense now;
Are we sure that those aren't simply some other bug?
Signature · 1 line
Matthew Garrett <[email protected]>
Quoted 7 lines · Matthew Garrett
Quoted 3 lines · Aaron Lu
1 remove the win8 OSI check, I've seen win7 laptops that also needs to
have only the GPU interface left and checking win8 doesn't make much sense now;Are we sure that those aren't simply some other bug?
Well, the firmware on that laptop makes use of EC to do backlight control and the fact that the firmware interface doesn't work while the GPU's work seems to indicate that the backlight control circuit is not routed to EC. I think this is the same case as Win8 laptops.
Quoted 7 lines · Aaron Lu
Quoted 6 lines · Matthew Garrett
Quoted 3 lines · Aaron Lu
1 remove the win8 OSI check, I've seen win7 laptops that also needs to
have only the GPU interface left and checking win8 doesn't make much sense now;
Quoted 6 lines
Quoted 1 line
Are we sure that those aren't simply some other bug?
Well, the firmware on that laptop makes use of EC to do backlight control and the fact that the firmware interface doesn't work while the GPU's work seems to indicate that the backlight control circuit is not routed to EC. I think this is the same case as Win8 laptops.
We know that Windows 8 graphics drivers don't use the ACPI interface, and that systems change their behaviour as a result, in some cases with absolutely no way for the ACPI interface could possibly work. I haven't seen any cases where that's obviously true for any non-Windows 8 systems. EC interfaces that don't work are often due to Linux leaving the hardware in a state other than the one expected by the firmware. We shouldn't assume that it's the same issue until we've investigated further.
Signature · 1 line
Matthew Garrett <[email protected]>
Quoted 15 lines · Matthew Garrett
Quoted 7 lines · Aaron Lu
Quoted 6 lines · Matthew Garrett
Quoted 3 lines · Aaron Lu
1 remove the win8 OSI check, I've seen win7 laptops that also needs to
have only the GPU interface left and checking win8 doesn't make much sense now;Quoted 6 lines
Quoted 1 line
Are we sure that those aren't simply some other bug?
Well, the firmware on that laptop makes use of EC to do backlight control and the fact that the firmware interface doesn't work while the GPU's work seems to indicate that the backlight control circuit is not routed to EC. I think this is the same case as Win8 laptops.
Quoted 4 lines
We know that Windows 8 graphics drivers don't use the ACPI interface, and that systems change their behaviour as a result, in some cases with absolutely no way for the ACPI interface could possibly work. I haven't seen any cases where that's obviously true for any non-Windows 8
Perhaps I'm not clear, I didn't mean non-Windows 8 systems will all favor GPU's interface, I just meant for one specific win7 laptop I could re-use the existing code to make the GPU's interface as the only one left. And to achieve this, the Win8 OSI check in acpi_video_verify_backlight_support has to be gone.
BTW, I actually think use_native_backlight param should mean "the native backlight control interface will be the only one available on the system", it doesn't need to go side by side with Win8 OSI check.
Quoted 2 lines
systems. EC interfaces that don't work are often due to Linux leaving the hardware in a state other than the one expected by the firmware. We
Good to know this, thanks.
Quoted 2 lines
shouldn't assume that it's the same issue until we've investigated further.
OK, but I honestly don't have any idea how to proceed, in case you have some time, the bug is:
https://bugzilla.kernel.org/show_bug.cgi?id=66501
Quoted 11 lines · Aaron Lu
Quoted 4 lines · Matthew Garrett
We know that Windows 8 graphics drivers don't use the ACPI interface, and that systems change their behaviour as a result, in some cases with absolutely no way for the ACPI interface could possibly work. I haven't seen any cases where that's obviously true for any non-Windows 8
Perhaps I'm not clear, I didn't mean non-Windows 8 systems will all favor GPU's interface, I just meant for one specific win7 laptop I could re-use the existing code to make the GPU's interface as the only one left. And to achieve this, the Win8 OSI check in
acpi_video_verify_backlight_supporthas to be gone.
We could do that, but why do we think that's the correct fix? The plan is to remove the native list entirely and do this for all Windows 8 systems, so the Win8 OSI check is the right thing to do.
Signature · 1 line
Matthew Garrett <[email protected]>
Quoted 7 lines · Matthew Garrett
Quoted 6 lines · Aaron Lu
Quoted 4 lines · Matthew Garrett
We know that Windows 8 graphics drivers don't use the ACPI interface, and that systems change their behaviour as a result, in some cases with absolutely no way for the ACPI interface could possibly work. I haven't seen any cases where that's obviously true for any non-Windows 8
Quoted 8 lines
Quoted 5 lines
Perhaps I'm not clear, I didn't mean non-Windows 8 systems will all favor GPU's interface, I just meant for one specific win7 laptop I could re-use the existing code to make the GPU's interface as the only one left. And to achieve this, the Win8 OSI check in
acpi_video_verify_backlight_supporthas to be gone.We could do that, but why do we think that's the correct fix? The plan is to remove the native list entirely and do this for all Windows 8
What do you mean by native list, systems that are Win8 based but don't work with the GPU's backlight interface?
If so, it doesn't seem we have such a native list now and if we don't make use_native_backlight=1 by default, we couldn't generate such a list to start with...
BTW, it doesn't seem everyone agrees with this plan. May I ask, Rafael and Daniel, what's your opinion please? We need to agree with something to move things forward.