ACPI: video: More backlight quirks
cover ACPI: video: More backlight quirks
Hi Rafael,
With the backlight changes landing in 6.1.y now showing up in distribution repositories I have been receiving a steady stream of backlight bug reports by email.
These bug-reports fall into various categories and most of them are already fixed with some recent fixes which are in 6.1.7 and later.
One category (unfortunately) requires adding DMI quirks.
I have been receiving reports from users with pre Windows 8 laptops, who used to pass acpi_backlight=vendor on the kernel commandline to hide a non functioning acpi_video# backlight device, so that userspace will use the native (GPU driver) backlight device instead.
Starting with 6.1.y acpi_backlight=vendor is now also honored by the native backlight drivers, hiding the native backlight device, leaving these users with no backlight device at all.
This leads to them sending me a bug-report. Which in a way is a good thing because these models really needed to have a DMI quirk added all along, but this was never reported upstream.
The fix here is to use "acpi_backlight=native" and to set this through a DMI quirk so that things will work out of the box.
The Acer Aspire 4810T quirk from a couple of days was like this and the first quirk in this series is too.
I expect to receive more bug-reports like this, so you can expect a steady trickle of backlight quirk patches from me the coming time.
Note the second quirk in this series is also a "acpi_backlight=native" quirk, but the root cause is somewhat different, see the commit msg.
Regards,
Hans
Hans de Goede (2):
ACPI: video: Add backlight=native DMI quirk for HP Pavilion g6-1d80nr
ACPI: video: Add backlight=native DMI quirk for HP EliteBook 8460p
drivers/acpi/video_detect.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
Signature · 1 line
2.39.0
PATCH 1/2 ACPI: video: Add backlight=native DMI quirk for HP Pavilion g6-1d80nr
The HP Pavilion g6-1d80nr predates Windows 8, so it defaults to using acpi_video# for backlight control, but this is non functional on this model.
Add a DMI quirk to use the native backlight interface which does work properly.
--- drivers/acpi/video_detect.c | 9 +++++++++ 1 file changed, 9 insertions(+)
drivers/acpi/video_detect.c +9 -0
@@ -618,6 +618,15 @@ static const struct dmi_system_id video_detect_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "UX303UB"), }, }, + { + .callback = video_detect_force_native, +/* HP Pavilion g6-1d80nr / B4U19UA */ + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Hewlett-Packard" ), +DMI_MATCH (DMI_PRODUCT_NAME ,"HP Pavilion g6 Notebook PC" ), + DMI_MATCH(DMI_PRODUCT_SKU, "B4U19UA"), + }, + }, { .callback = video_detect_force_native,/* Samsung N150P */
Signature · 1 line
2.39.0
PATCH 2/2 ACPI: video: Add backlight=native DMI quirk for HP EliteBook 8460p
In reply to Hans de GoedeThe HP EliteBook 8460p predates Windows 8, so it defaults to using acpi_video# for backlight control.
Starting with the 6.1.y kernels the native radeon_bl0 backlight is hidden in this case instead of relying on userspace preferring acpi_video# over native backlight devices.
It turns out that for the acpi_video# interface to work on the HP EliteBook 8460p, the brightness needs to be set at least once through the native interface, which now no longer is done breaking backlight control.
The native interface however always works without problems, so add a quirk to use native backlight on the EliteBook 8460p to fix this.
--- drivers/acpi/video_detect.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/acpi/video_detect.c +8 -0
@@ -618,6 +618,14 @@ static const struct dmi_system_id video_detect_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "UX303UB"), }, }, + { + .callback = video_detect_force_native, +/* HP EliteBook 8460p */ + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Hewlett-Packard" ), + DMI_MATCH(DMI_PRODUCT_NAME, "HP EliteBook 8460p"), + }, + }, { .callback = video_detect_force_native,/* HP Pavilion g6-1d80nr / B4U19UA */
Signature · 1 line
2.39.0
Rafael J. Wysocki
maintainerQuoted 43 lines · Hans de Goede
Hi Rafael,
With the backlight changes landing in 6.1.y now showing up in distribution repositories I have been receiving a steady stream of backlight bug reports by email.
These bug-reports fall into various categories and most of them are already fixed with some recent fixes which are in 6.1.7 and later.
One category (unfortunately) requires adding DMI quirks.
I have been receiving reports from users with pre Windows 8 laptops, who used to pass acpi_backlight=vendor on the kernel commandline to hide a non functioning acpi_video# backlight device, so that userspace will use the native (GPU driver) backlight device instead.
Starting with 6.1.y acpi_backlight=vendor is now also honored by the native backlight drivers, hiding the native backlight device, leaving these users with no backlight device at all.
This leads to them sending me a bug-report. Which in a way is a good thing because these models really needed to have a DMI quirk added all along, but this was never reported upstream.
The fix here is to use "acpi_backlight=native" and to set this through a DMI quirk so that things will work out of the box.
The Acer Aspire 4810T quirk from a couple of days was like this and the first quirk in this series is too.
I expect to receive more bug-reports like this, so you can expect a steady trickle of backlight quirk patches from me the coming time.
Note the second quirk in this series is also a "acpi_backlight=native" quirk, but the root cause is somewhat different, see the commit msg.
Regards,
Hans
Quoted 8 lines
Hans de Goede (2):
ACPI: video: Add backlight=native DMI quirk for HP Pavilion g6-1d80nr
ACPI: video: Add backlight=native DMI quirk for HP EliteBook 8460pdrivers/acpi/video_detect.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)--
Both applied as 6.2-rc material, thanks!