xf86-video-intel: src/intel_display.c
Chris Wilson
ickle at kemper.freedesktop.org
Tue Sep 7 04:58:28 PDT 2010
src/intel_display.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 273d34fbc43e54a8539fbe7efc1dca66bbb4e6dc
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Tue Sep 7 12:57:04 2010 +0100
display: Query current level after finding max value.
The current backlight value is clamped to the valid range [0, max] and
so as we queried the value before setting the max, we forced the current
backlight to 0 and so set it to be zero on initialising the display.
Fixes:
Bug 30063 - start X will modify brightness value to zero
https://bugs.freedesktop.org/show_bug.cgi?id=30063
which is a regression due to 38f940dfea494d3093236f065392c431be06ae6e.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/intel_display.c b/src/intel_display.c
index b3c8a7c..e65df6e 100644
--- a/src/intel_display.c
+++ b/src/intel_display.c
@@ -239,9 +239,9 @@ intel_output_backlight_init(xf86OutputPtr output)
sprintf(path, "%s/%s", BACKLIGHT_CLASS, backlight_interfaces[i]);
if (!stat(path, &buf)) {
intel_output->backlight_iface = backlight_interfaces[i];
- intel_output->backlight_active_level = intel_output_backlight_get(output);
intel_output->backlight_max = intel_output_backlight_get_max(output);
if (intel_output->backlight_max > 0) {
+ intel_output->backlight_active_level = intel_output_backlight_get(output);
xf86DrvMsg(output->scrn->scrnIndex, X_INFO,
"found backlight control interface %s\n", path);
return;
More information about the xorg-commit
mailing list