diff options
author | Len Brown <len.brown@intel.com> | 2011-01-12 05:09:35 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2011-01-12 05:09:35 -0500 |
commit | 3e098984073795bff5e5e3edbc1f5b0514c47c92 (patch) | |
tree | 5bdc87d02aa7e85c62eab82872a3f6e8c3a3b1b2 /drivers/acpi/video.c | |
parent | da8aeb92d4853f37e281f11fddf61f9c7d84c3cd (diff) | |
parent | 99fd1895ef603f1a0fa9af478c96c637a7b4529d (diff) |
Merge branch 'bugzilla-21212' into release
Diffstat (limited to 'drivers/acpi/video.c')
-rw-r--r-- | drivers/acpi/video.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index 177b4ddc3479..9f8c465d381b 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c | |||
@@ -80,6 +80,13 @@ module_param(brightness_switch_enabled, bool, 0644); | |||
80 | static int allow_duplicates; | 80 | static int allow_duplicates; |
81 | module_param(allow_duplicates, bool, 0644); | 81 | module_param(allow_duplicates, bool, 0644); |
82 | 82 | ||
83 | /* | ||
84 | * Some BIOSes claim they use minimum backlight at boot, | ||
85 | * and this may bring dimming screen after boot | ||
86 | */ | ||
87 | static int use_bios_initial_backlight = 1; | ||
88 | module_param(use_bios_initial_backlight, bool, 0644); | ||
89 | |||
83 | static int register_count = 0; | 90 | static int register_count = 0; |
84 | static int acpi_video_bus_add(struct acpi_device *device); | 91 | static int acpi_video_bus_add(struct acpi_device *device); |
85 | static int acpi_video_bus_remove(struct acpi_device *device, int type); | 92 | static int acpi_video_bus_remove(struct acpi_device *device, int type); |
@@ -705,9 +712,11 @@ acpi_video_init_brightness(struct acpi_video_device *device) | |||
705 | * when invoked for the first time, i.e. level_old is invalid. | 712 | * when invoked for the first time, i.e. level_old is invalid. |
706 | * set the backlight to max_level in this case | 713 | * set the backlight to max_level in this case |
707 | */ | 714 | */ |
708 | for (i = 2; i < br->count; i++) | 715 | if (use_bios_initial_backlight) { |
709 | if (level_old == br->levels[i]) | 716 | for (i = 2; i < br->count; i++) |
710 | level = level_old; | 717 | if (level_old == br->levels[i]) |
718 | level = level_old; | ||
719 | } | ||
711 | goto set_level; | 720 | goto set_level; |
712 | } | 721 | } |
713 | 722 | ||