All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Set initial value for backlight_active_level
@ 2013-01-07 19:04 Mickaël THOMAS
  2013-01-07 19:47 ` Mickaël THOMAS
  0 siblings, 1 reply; 3+ messages in thread
From: Mickaël THOMAS @ 2013-01-07 19:04 UTC (permalink / raw)
  To: intel-gfx

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

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

* [PATCH] Set initial value for backlight_active_level
  2013-01-07 19:04 [PATCH] Set initial value for backlight_active_level Mickaël THOMAS
@ 2013-01-07 19:47 ` Mickaël THOMAS
  2013-01-07 20:27   ` Chris Wilson
  0 siblings, 1 reply; 3+ messages in thread
From: Mickaël THOMAS @ 2013-01-07 19:47 UTC (permalink / raw)
  To: intel-gfx

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

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

* Re: [PATCH] Set initial value for backlight_active_level
  2013-01-07 19:47 ` Mickaël THOMAS
@ 2013-01-07 20:27   ` Chris Wilson
  0 siblings, 0 replies; 3+ messages in thread
From: Chris Wilson @ 2013-01-07 20:27 UTC (permalink / raw)
  To: intel-gfx

[-- Attachment #1: Type: text/plain, Size: 312 bytes --]

On Mon, 7 Jan 2013 20:47:51 +0100, Mickaël THOMAS <mickael9@gmail.com> wrote:
> 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.

Thanks, pushed.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

end of thread, other threads:[~2013-01-07 20:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-07 19:04 [PATCH] Set initial value for backlight_active_level Mickaël THOMAS
2013-01-07 19:47 ` Mickaël THOMAS
2013-01-07 20:27   ` Chris Wilson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.