[Intel-gfx] [PATCH 2/4] drm/i915: force mode set at lid open time
Jesse Barnes
jbarnes at virtuousgeek.org
Fri Jul 17 18:33:03 CEST 2009
On Fri, 17 Jul 2009 09:34:41 +0800
ykzhao <yakui.zhao at intel.com> wrote:
> > > Is it enough to mark the LVDS as disconnected/connected according
> > > to the LID status? And this is done by user-space tool.
> >
> > Not sure what you mean here...
> What I said is that we can send the hotplug event to user space. And
> then the user space tool can set the mode for LVDS.
> Of course the LVDS status is marked as disconnected/connected in
> course of LVDS detection.
Ah yeah, I see what you mean. But that won't work in the case where a
display manager isn't running; we want the console to come back too.
> > > > diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig
> > > > index 39b393d..5873865 100644
> > > > --- a/drivers/gpu/drm/Kconfig
> > > > +++ b/drivers/gpu/drm/Kconfig
> > > > @@ -86,6 +86,7 @@ config DRM_I915
> > > > select FB_CFB_COPYAREA
> > > > select FB_CFB_IMAGEBLIT
> > > > select FB
> > > > + select ACPI_BUTTON
> > > How about
> > > + select ACPI_BUTTON if ACPI
> >
> > Yeah I saw your other comments too about non-ACPI configs. I have a
> > hard time caring about them though; so much depends on ACPI these
> > days that disabling it is just a bad idea. But I guess it's not
> > too much trouble to make this work w/o.
> If someone disable the CONFIG_ACPI in kernel configuration, maybe it
> will fail in the kernel compilation.
>
> Sometimes the box will be booted with ACPI disabled. In such case the
> LID device is not initialized. When we call the function of
> acpi_lid_open, we will access the uninitialized variable. It will be
> incorrect.
>
> In fact it will be very easy to add this check.
Yep, I'll fix it.
--
Jesse Barnes, Intel Open Source Technology Center
More information about the Intel-gfx
mailing list