[Intel-gfx] [PATCH 01/12] drm/i915: Ignore initial lid state for eDP
Chris Wilson
chris at chris-wilson.co.uk
Thu Jul 28 16:36:27 UTC 2016
On Thu, Jul 28, 2016 at 07:01:29PM +0300, Ville Syrjälä wrote:
> On Thu, Jul 28, 2016 at 04:47:07PM +0100, Chris Wilson wrote:
> > On Thu, Jul 28, 2016 at 05:50:37PM +0300, ville.syrjala at linux.intel.com wrote:
> > > From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> > >
> > > Currently we try to check the lid status to see whether eDP is connected
> > > or not. However we ignore the result anyway, and we have no lid notifier
> > > to fire off uevents, so let's just ignore the lid stuff for eDP
> > > entirely.
> >
> > You mean the OpRegion no longer contains lid_state? I don't see it being
> > disabled... The lid notifier is from acpi/button.c. I haven't looked at
> > why the result would be ignored, but you haven't convinced me why eDP is
> > special.
>
> We don't register a lid notifier for eDP. So if the initial detect would
> happen with lid closed we'd mark eDP as disconnected, and when the lid
> gets opened we won't even notice, and thus the connector never becomes
> connected.
That was meant to be part of the intel_panel so that we have consistent
behaviour on any laptop. I would still rather we have consistent
behaviour, but eDP has been different for so long that any change now is
going to be painful.
> IIRC on my ILK the lid state in OpRegion didn't work anyway. But I
> should probably double check.
Yup, the lid button was unreliable as every other piece of hw. Looking
at intel_lid_notify(), would it not be easier just to send the hotplug
uevent.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list