[PATCH] Set initial value for backlight_active_level

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If the "Backlight" option is set, backlight_active_level is not set which
results in a default value of 0, causing a black screen upon starting Xorg.
---
 src/intel_display.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/intel_display.c b/src/intel_display.c
index 2c93c2d..5ee955e 100644
--- a/src/intel_display.c
+++ b/src/intel_display.c
@@ -271,6 +271,7 @@ intel_output_backlight_init(xf86OutputPtr output)
 			intel_output->backlight_iface = str;
 			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_CONFIG,
 					   "found backlight control interface %s\n", path);
 				return;
-- 
1.8.0.3


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux