aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/video.c15
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);
80static int allow_duplicates; 80static int allow_duplicates;
81module_param(allow_duplicates, bool, 0644); 81module_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 */
87static int use_bios_initial_backlight = 1;
88module_param(use_bios_initial_backlight, bool, 0644);
89
83static int register_count = 0; 90static int register_count = 0;
84static int acpi_video_bus_add(struct acpi_device *device); 91static int acpi_video_bus_add(struct acpi_device *device);
85static int acpi_video_bus_remove(struct acpi_device *device, int type); 92static 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