ACPI video: ignore BIOS backlight value for HP dm4
PATCH 1/1 ACPI video: ignore BIOS backlight value for HP dm4
On a HP Pavilion dm4 laptop the BIOS sets minimum backlight on boot, completely dimming the screen. Ignore this initial value for this machine.
---
This is the same situation as with the HP Folio
(http://www.spinics.net/lists/linux-acpi/msg40401.html).
Without this patch, the only way to get a correct display is with the video.use_bios_initial_backlight=0 command line switch. With it the display works out of the box.
Abraços,
Gustavo
drivers/acpi/video.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/acpi/video.c +8 -0
@@ -447,6 +447,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = { DMI_MATCH(DMI_PRODUCT_NAME, "HP Folio 13 - 2000 Notebook PC"), }, }, + { + .callback = video_ignore_initial_backlight, + .ident = "HP Pavilion dm4", + .matches = { + DMI_MATCH(DMI_BOARD_VENDOR, "Hewlett-Packard"), + DMI_MATCH(DMI_PRODUCT_NAME, "HP Pavilion dm4 Notebook PC"), + }, + }, {} };
Signature · 6 lines
1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Rafael J. Wysocki
AppliedQuoted 6 lines · Gustavo Maciel Dias Vieira
On a HP Pavilion dm4 laptop the BIOS sets minimum backlight on boot, completely dimming the screen. Ignore this initial value for this machine.
Signed-off-by Gustavo Maciel Dias Vieira <[email protected]>
Quoted 8 lines
---
This is the same situation as with the HP Folio
(http://www.spinics.net/lists/linux-acpi/msg40401.html).Without this patch, the only way to get a correct display is with the video.use_bios_initial_backlight=0 command line switch. With it the display works out of the box.
Applied to linux-pm.git/linux-next.
Thanks,
Rafael
Quoted 23 lines
drivers/acpi/video.c | 8 ++++++++ 1 file changed, 8 insertions(+)drivers/acpi/video.c +8
-0@@ -447,6 +447,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = { DMI_MATCH(DMI_PRODUCT_NAME, "HP Folio 13 - 2000 Notebook PC"), }, }, + { + .callback = video_ignore_initial_backlight, + .ident = "HP Pavilion dm4", + .matches = { + DMI_MATCH(DMI_BOARD_VENDOR, "Hewlett-Packard"), + DMI_MATCH(DMI_PRODUCT_NAME, "HP Pavilion dm4 Notebook PC"), + }, + }, {} };
Signature · 2 lines
I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.