diff options
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 5cd0228d2daa..89f19a8fc726 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c | |||
@@ -81,6 +81,13 @@ module_param(brightness_switch_enabled, bool, 0644); | |||
81 | static int allow_duplicates; | 81 | static int allow_duplicates; |
82 | module_param(allow_duplicates, bool, 0644); | 82 | module_param(allow_duplicates, bool, 0644); |
83 | 83 | ||
84 | /* | ||
85 | * Some BIOSes claim they use minimum backlight at boot, | ||
86 | * and this may bring dimming screen after boot | ||
87 | */ | ||
88 | static int use_bios_initial_backlight = 1; | ||
89 | module_param(use_bios_initial_backlight, bool, 0644); | ||
90 | |||
84 | static int register_count = 0; | 91 | static int register_count = 0; |
85 | static int acpi_video_bus_add(struct acpi_device *device); | 92 | static int acpi_video_bus_add(struct acpi_device *device); |
86 | static int acpi_video_bus_remove(struct acpi_device *device, int type); | 93 | static int acpi_video_bus_remove(struct acpi_device *device, int type); |
@@ -766,9 +773,11 @@ acpi_video_init_brightness(struct acpi_video_device *device) | |||
766 | * when invoked for the first time, i.e. level_old is invalid. | 773 | * when invoked for the first time, i.e. level_old is invalid. |
767 | * set the backlight to max_level in this case | 774 | * set the backlight to max_level in this case |
768 | */ | 775 | */ |
769 | for (i = 2; i < br->count; i++) | 776 | if (use_bios_initial_backlight) { |
770 | if (level_old == br->levels[i]) | 777 | for (i = 2; i < br->count; i++) |
771 | level = level_old; | 778 | if (level_old == br->levels[i]) |
779 | level = level_old; | ||
780 | } | ||
772 | goto set_level; | 781 | goto set_level; |
773 | } | 782 | } |
774 | 783 | ||