2010-11-25 09:33:16

by Dan Carpenter

[permalink] [raw]
Subject: back light conflict i915 vs dell-laptop

Patrick Schaaf has reported that the i915 driver is setting his
backlight very dim when he starts GDM.

https://bugzilla.kernel.org/show_bug.cgi?id=23472

It should be the dell-laptop platform driver controlling his backlight.

Gnome tries to restore the backlight settings through the dell_laptop
interface in sysfs but it fails. (Because the platform hardware refuses
to set the settings to what it thinks they already are).

regards,
dan carpenter


2010-11-25 14:42:27

by Andrea Arcangeli

[permalink] [raw]
Subject: Re: back light conflict i915 vs dell-laptop

On Thu, Nov 25, 2010 at 12:33:01PM +0300, Dan Carpenter wrote:
> Patrick Schaaf has reported that the i915 driver is setting his
> backlight very dim when he starts GDM.
>
> https://bugzilla.kernel.org/show_bug.cgi?id=23472
>
> It should be the dell-laptop platform driver controlling his backlight.
>
> Gnome tries to restore the backlight settings through the dell_laptop
> interface in sysfs but it fails. (Because the platform hardware refuses
> to set the settings to what it thinks they already are).

I think I run into the same problem, xset dpms force standby is enough
to trigger it, after that the backlight will never come up again. I
need to suspend to ram to be able to see my screen again. The screen
is on, just the backlight is off. Not dimmed to low level: completely
off.

Ironically xset dpms force off will come up right... but all screen
powermanagement will start with standby, so I'm stuck for the last few
weeks in presentation mode to be able to work on 37-rc1... It was fine
in .36 and it broke in 37-rc1.

I reported it to [email protected] on 8 Nov but got no reply.

If you need me to test something let me know. It's super annoying when
I unplug the laptop and it exits presentation mode...

CONFIG_DRM_I915=y
CONFIG_DRM_I915_KMS=y

Thanks,
Andrea

2010-11-28 18:39:41

by Patrick Schaaf

[permalink] [raw]
Subject: Re: back light conflict i915 vs dell-laptop

On Thu, 2010-11-25 at 12:33 +0300, Dan Carpenter wrote:
> Patrick Schaaf has reported that the i915 driver is setting his
> backlight very dim when he starts GDM.
>
> https://bugzilla.kernel.org/show_bug.cgi?id=23472
>
> It should be the dell-laptop platform driver controlling his backlight.
>
> Gnome tries to restore the backlight settings through the dell_laptop
> interface in sysfs but it fails. (Because the platform hardware refuses
> to set the settings to what it thinks they already are).

As far as my instrumentation showed, gnome did try no such thing - there
were no setting calls through the backlight interface when I switch
between the GDM screen and text console.

I have now run with drm.debug=0x07 and noticed get/set backlight PWM
messages from intel_panel_get/set_backlight which became lower and lower
in value for each successive switching between GDM login screen and text
console, until reaching a low point and overflowing to 255255.

I append the extract of these kernel messages, as well as putting them
in the bugzilla entry linked above.

Hope this helps clarify the problems I'm seeing.

best regards
Patrick



Attachments:
intel_panel_..._backlight (4.37 kB)

2010-11-28 19:39:59

by Dan Carpenter

[permalink] [raw]
Subject: Re: back light conflict i915 vs dell-laptop

On Sun, Nov 28, 2010 at 07:05:27PM +0100, Patrick Schaaf wrote:
> On Thu, 2010-11-25 at 12:33 +0300, Dan Carpenter wrote:
> > Patrick Schaaf has reported that the i915 driver is setting his
> > backlight very dim when he starts GDM.
> >
> > https://bugzilla.kernel.org/show_bug.cgi?id=23472
> >
> > It should be the dell-laptop platform driver controlling his backlight.
> >
> > Gnome tries to restore the backlight settings through the dell_laptop
> > interface in sysfs but it fails. (Because the platform hardware refuses
> > to set the settings to what it thinks they already are).
>

Keith Packard wrote in another thread that there were some patches
to address this in his git repo:

git://people.freedesktop.org/~keithp/linux-2.6 drm-intel-next

regards,
dan carpenter