linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] acpi: fix brightness level is initialized to zero when BIOS does not restore the brightness value to _BQC.
@ 2012-10-01  5:39 Alex Hung
  2012-10-01  6:47 ` joeyli
  0 siblings, 1 reply; 11+ messages in thread
From: Alex Hung @ 2012-10-01  5:39 UTC (permalink / raw)
  To: alex.hung, rui.zhang, linux-acpi

Signed-off-by: Alex Hung <alex.hung@canonical.com>
---
 drivers/acpi/video.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index 42b226e..eaa9573 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -724,6 +724,10 @@ acpi_video_init_brightness(struct acpi_video_device *device)
 				if (level_old == br->levels[i])
 					level = level_old;
 		}
+
+		if (level == 0)
+			level = br->levels[(br->count) / 2 + 1];
+
 		goto set_level;
 	}
 
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-10-08  4:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-01  5:39 [PATCH] acpi: fix brightness level is initialized to zero when BIOS does not restore the brightness value to _BQC Alex Hung
2012-10-01  6:47 ` joeyli
2012-10-01  7:03   ` Alex Hung
2012-10-01  7:17     ` joeyli
2012-10-01  8:34       ` joeyli
2012-10-01  9:11         ` Alex Hung
2012-10-01  9:19           ` joeyli
2012-10-01 13:36             ` Zhang, Rui
2012-10-01 15:26               ` Alex Hung
2012-10-08  4:34                 ` Zhang, Rui
2012-10-08  4:39                   ` Alex Hung

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).