All of lore.kernel.org
 help / color / mirror / Atom feed
* Re:[bisected] i915 dpms does not switch back light on
@ 2011-10-27 19:27 Alex Davis
  2011-10-27 20:38 ` [bisected] " Alex Davis
  0 siblings, 1 reply; 4+ messages in thread
From: Alex Davis @ 2011-10-27 19:27 UTC (permalink / raw)
  To: wmkoolen, linux-kernel

>Hi guys,
>
>After update from kernel 3.0.8 to 3.1 I encounter the following problem. 
>When power saving turns off the back light, key/mouse activity does not 
>turn it back on. I can turn it back on by pressing the "brightness++" key.


I've been having this problem as well. I created a patch that fixes the problem for me and others:

diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c
index 6f56676..a9e0c7b 100644
--- a/drivers/gpu/drm/i915/intel_panel.c
+++ b/drivers/gpu/drm/i915/intel_panel.c
@@ -262,6 +262,8 @@ void intel_panel_disable_backlight(struct drm_device *dev)
                dev_priv->backlight_level = intel_panel_get_backlight(dev);
                dev_priv->backlight_enabled = false;
        }
+
+       intel_panel_set_backlight(dev, 0);
 }


For more info, see http://marc.info/?l=linux-kernel&m=131959957117710&w=2

I code, therefore I am

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

* Re: [bisected] i915 dpms does not switch back light on
  2011-10-27 19:27 Re:[bisected] i915 dpms does not switch back light on Alex Davis
@ 2011-10-27 20:38 ` Alex Davis
  2011-10-31 13:57   ` Wouter M. Koolen
  0 siblings, 1 reply; 4+ messages in thread
From: Alex Davis @ 2011-10-27 20:38 UTC (permalink / raw)
  To: wmkoolen, linux-kernel



>I've been having this problem as well. I created a patch that fixes the problem for me and others:
>
>diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c
>index 6f56676..a9e0c7b 100644
>--- a/drivers/gpu/drm/i915/intel_panel.c
>+++ b/drivers/gpu/drm/i915/intel_panel.c
>@@ -262,6 +262,8 @@ void intel_panel_disable_backlight(struct drm_device *dev)
>                dev_priv->backlight_level = intel_panel_get_backlight(dev);
>                dev_priv->backlight_enabled = false;
>        }
>+
>+       intel_panel_set_backlight(dev, 0);
> }
>

If the patch above doesn't work, try this one:

diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c
index 6f56676..a9e0c7b 100644
--- a/drivers/gpu/drm/i915/intel_panel.c
+++ b/drivers/gpu/drm/i915/intel_panel.c
@@ -262,6 +262,8 @@ void intel_panel_disable_backlight(struct drm_device *dev)
                dev_priv->backlight_level = intel_panel_get_backlight(dev);
                dev_priv->backlight_enabled = false;
        }
+
+       intel_panel_set_backlight(dev, 0);
 }
 
 void intel_panel_enable_backlight(struct drm_device *dev)

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

* Re: [bisected] i915 dpms does not switch back light on
  2011-10-27 20:38 ` [bisected] " Alex Davis
@ 2011-10-31 13:57   ` Wouter M. Koolen
  2011-10-31 23:41     ` Alex Davis
  0 siblings, 1 reply; 4+ messages in thread
From: Wouter M. Koolen @ 2011-10-31 13:57 UTC (permalink / raw)
  To: Alex Davis; +Cc: linux-kernel

On 10/27/2011 09:38 PM, Alex Davis wrote:
> If the patch above doesn't work, try this one:
>
> diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c
> index 6f56676..a9e0c7b 100644
> --- a/drivers/gpu/drm/i915/intel_panel.c
> +++ b/drivers/gpu/drm/i915/intel_panel.c
> @@ -262,6 +262,8 @@ void intel_panel_disable_backlight(struct drm_device *dev)
>                  dev_priv->backlight_level = intel_panel_get_backlight(dev);
>                  dev_priv->backlight_enabled = false;
>          }
> +
> +       intel_panel_set_backlight(dev, 0);
>   }
>   
>   void intel_panel_enable_backlight(struct drm_device *dev)
Hi Alex,

That indeed solves the problem here.

Thanks for your swift response.

Wouter

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

* Re: [bisected] i915 dpms does not switch back light on
  2011-10-31 13:57   ` Wouter M. Koolen
@ 2011-10-31 23:41     ` Alex Davis
  0 siblings, 0 replies; 4+ messages in thread
From: Alex Davis @ 2011-10-31 23:41 UTC (permalink / raw)
  To: Wouter M. Koolen; +Cc: linux-kernel



>> diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c
>> index 6f56676..a9e0c7b 100644
>> --- a/drivers/gpu/drm/i915/intel_panel.c
>> +++ b/drivers/gpu/drm/i915/intel_panel.c
>> @@ -262,6 +262,8 @@ void intel_panel_disable_backlight(struct drm_device *dev)
>>                  dev_priv->backlight_level = intel_panel_get_backlight(dev);
>>                  dev_priv->backlight_enabled = false;
>>          }
>> +
>> +       intel_panel_set_backlight(dev, 0);
>>   }
>>     void intel_panel_enable_backlight(struct drm_device *dev)
>Hi Alex,
>
>That indeed solves the problem here.
>
>Thanks for your swift response.
>
>Wouter

Actually, I sent you the wrong patch: the patch was supposed to remove those lines, not add them. 


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

end of thread, other threads:[~2011-10-31 23:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-27 19:27 Re:[bisected] i915 dpms does not switch back light on Alex Davis
2011-10-27 20:38 ` [bisected] " Alex Davis
2011-10-31 13:57   ` Wouter M. Koolen
2011-10-31 23:41     ` Alex Davis

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.