Bug 27658 - Fail to start when laptop's LID closed
Summary: Fail to start when laptop's LID closed
Status: RESOLVED INVALID
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 7.5 (2009.10)
Hardware: Other All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-15 00:01 UTC by Franklin Piat
Modified: 2018-06-12 18:43 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
xorg log, when laptop LID is closed (7.60 KB, text/x-log)
2010-04-15 00:01 UTC, Franklin Piat
no flags Details

Description Franklin Piat 2010-04-15 00:01:35 UTC
Created attachment 35051 [details]
xorg log, when laptop LID is closed

Hello,

If I close my laptop lid during the computer startup 
(i.e between grub and Xorg initialisation), Xorg fails to start.

Restarting the display manager with the laptop lid open works.

My understanding is that Xorg tries to detect the screen, it detects LVDS1 as
"disconnected", because the LID is closed:
> (II) intel(0): Output VGA1 disconnected
> (II) intel(0): Output LVDS1 disconnected
> (II) intel(0): Output HDMI1 disconnected
> (II) intel(0): Output DP1 disconnected
> (II) intel(0): Output HDMI2 disconnected
> (II) intel(0): Output DP2 disconnected
> (II) intel(0): Output DP3 disconnected

then
> (WW) intel(0): No outputs definitely connected, trying again...

then finally:
> (WW) intel(0): Unable to find initial modes
> (==) intel(0): video overlay key set to 0x101fe
> (EE) intel(0): No modes.
> (II) UnloadModule: "intel"
> (EE) Screen(s) found, but none have a usable configuration.
> 
> Fatal server error:
> no screens found

I wish Xorg could fallback to laptop panel, even though the lid is closed.

Thanks,

(My Laptop is a Lenovo T500, running Xorg 7.5 on Debian-Testing. The bug is known downstream as http://bugs.debian.org/577724 )
Comment 1 Franklin Piat 2010-04-16 00:29:59 UTC
Linux 2.6.34-rc3 has a fix, quoting ykzhao:

----
Now the mechanism of LVDS detection by using LID status is abandoned in the
following commit:
   >commit 6e6c822868f113dabe3c33bdd91e883cc28fa11b
Author: Eric Anholt <eric@anholt.net>
Date:   Wed Mar 17 13:48:06 2010 -0700

    drm/i915: Stop trying to use ACPI lid status to determine LVDS connection.
----

See https://bugzilla.kernel.org/show_bug.cgi?id=15205
Comment 2 Antti Mäkelä 2010-08-18 23:58:03 UTC
I'm not sure if this is related, but when *running* Xorg with external display I get some odd lid-related issues.

Basic use case: I connect external monitor (TV with VGA input, actually) to watch some video. I set it as extended desktop (positioning right of LVDS). (XVideo doesn't work and I have to disable compositing or Xorg crashes, but those are different issues). I use resolution 1360x768 for the monitor since it's the native res. The monitor also says it's capable of 1980x1080 (the HDTV resolution), but that's beyond it's capabilities.

Anyway, I have bulk of my desktop on LVDS and VGA has basically empty screen. I move the video player to the monitor and close the lid.

So far so good.

However, when I *open* the lid, LVDS seems to get suddenly disabled (AFTER opening the lid). There's no image. I say this happens after opening since at the same time the resolution on the monitor changes to 1980x1080, so some sort of re-detection of all displays seems to take place.
Comment 3 Chris Wilson 2010-08-19 00:09:09 UTC
> --- Comment #2 from Antti Mäkelä <zarhan@iki.fi> 2010-08-18 23:58:03 PDT ---
> However, when I *open* the lid, LVDS seems to get suddenly disabled (AFTER
> opening the lid). There's no image. I say this happens after opening since at
> the same time the resolution on the monitor changes to 1980x1080, so some sort
> of re-detection of all displays seems to take place.

Your userspace is responding to the lid notification and issuing a new
randr probe and tries to enable an invalid configuration. Not a driver
issue per se, but some random application. And please do update your
-intel driver to have working XV and RENDER on extended desktops.
Comment 4 Adam Jackson 2018-06-12 18:43:20 UTC
Mass closure: This bug has been untouched for more than six years, and is not obviously still valid. Please file a new report if you continue to experience issues with a current server.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.