]>
Commit | Line | Data |
---|---|---|
2cb7cef9 BS |
1 | From: Thomas Renninger <trenn@suse.de> |
2 | Subject: Blacklist HP laptop (6530b) to not use generic ACPI backlight interface | |
3 | References: bnc#491802 | |
4 | Patch-Mainline: never, this will be IGD driven which is too risky to backport | |
5 | ||
6 | ||
7 | Signed-off-by: Thomas Renninger <trenn@suse.de> | |
8 | ||
9 | --- | |
10 | drivers/acpi/video_detect.c | 20 ++++++++++++++++++++ | |
11 | 1 file changed, 20 insertions(+) | |
12 | ||
13 | Index: linux-2.6.27-SLE11_BRANCH/drivers/acpi/video_detect.c | |
14 | =================================================================== | |
15 | --- linux-2.6.27-SLE11_BRANCH.orig/drivers/acpi/video_detect.c | |
16 | +++ linux-2.6.27-SLE11_BRANCH/drivers/acpi/video_detect.c | |
17 | @@ -142,6 +142,25 @@ find_video(acpi_handle handle, u32 lvl, | |
18 | return AE_OK; | |
19 | } | |
20 | ||
21 | +static int set_dmi_blacklisting(const struct dmi_system_id *id) | |
22 | +{ | |
23 | + printk(KERN_NOTICE "%s detected - adjusting backlight video\n", | |
24 | + id->ident); | |
25 | + acpi_video_support |= (long)id->driver_data; | |
26 | + return 0; | |
27 | +} | |
28 | + | |
29 | +static struct dmi_system_id video_backlight_blacklist[] = { | |
30 | + { set_dmi_blacklisting, | |
31 | + "HP 6530b", { | |
32 | + DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), | |
33 | + DMI_MATCH(DMI_PRODUCT_NAME, "6530b") | |
34 | + }, | |
35 | + (void *) ACPI_VIDEO_BACKLIGHT_DMI_VENDOR | |
36 | + }, | |
37 | + {}, | |
38 | +}; | |
39 | + | |
40 | /* | |
41 | * Returns the video capabilities of a specific ACPI graphics device | |
42 | * | |
43 | @@ -176,6 +195,7 @@ long acpi_video_get_capabilities(acpi_ha | |
44 | * ACPI_VIDEO_BACKLIGHT_DMI_VENDOR; | |
45 | *} | |
46 | */ | |
47 | + dmi_check_system(video_backlight_blacklist); | |
48 | } else { | |
49 | status = acpi_bus_get_device(graphics_handle, &tmp_dev); | |
50 | if (ACPI_FAILURE(status)) { |