Set initial value for backlight_active_level

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.
This commit is contained in:
Mickaël THOMAS 2013-01-07 20:47:51 +01:00 committed by Chris Wilson
parent b8c9598294
commit 8881a14200
1 changed files with 1 additions and 0 deletions

View File

@ -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;