Bug 501921

Summary: X fails to start with monitor unplugged
Product: [Fedora] Fedora Reporter: Àlex Magaz Graça <alexandre.magaz>
Component: xorg-x11-serverAssignee: Adam Jackson <ajax>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: mcepl, tkessler, xgl-maint
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: i586   
OS: Linux   
Whiteboard: card_R200
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-30 19:21:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
/var/log/Xorg.0.log when the monitor is plugged
none
/var/log/Xorg.0.log when the monitor is unplugged
none
Xorg.0.log with monitor unplugged
none
Xorg.1.log with monitor unplugged
none
Xorg.2.log with monitor unplugged
none
Xorg.3.log with monitor unplugged
none
Xorg.4.log with monitor unplugged
none
Xorg.5.log with monitor unplugged
none
dmesg with monitor unplugged
none
smolt profile
none
Xorg.0.log with monitor unplugged and nomodeset
none
dmesg with monitor unplugged and nomodeset
none
Xorg.0.log with monitor unplugged and drm.debug=1
none
dmesg with monitor unplugged and drm.debug=1
none
/var/log/messages with monitor unplugged and drm.debug=1
none
Xorg.0.log with monitor unplugged, drm.debug=1 and nomodeset
none
dmesg with monitor unplugged, drm.debug=1 and nomodeset
none
/var/log/messages with monitor unplugged, drm.debug=1 and nomodeset none

Description Àlex Magaz Graça 2009-05-21 10:26:46 UTC
Description of problem:

X fails to start when the monitor is unplugged.

Version-Release number of selected component (if applicable):

xorg-x11-drv-ati-6.12.2-14.fc11.i586
xorg-x11-server-Xorg-1.6.1.901-1.fc11.i586
kernel-2.6.29.3-140.fc11.i586

How reproducible:

Always.

Steps to Reproduce:
1. Start in runlevel 3.
2. Unplug the monitor.
3. Run startx.
  
Actual results:

X fails to start with "no screens found" error.

Expected results:

It should start and, if possible, it should detect when the monitor is plugged in and set the correct resolution. Otherwise it could store the last working resolution or fall back to a sane default. Sorry, not really sure of which would be the best approach to get it working.

Additional info:

It's a default installation from Fedora 11 Snapshot 1 until today.

The graphics card is an ATI Radeon 9200 PRO (RV280).

Comment 1 Àlex Magaz Graça 2009-05-21 10:33:54 UTC
Created attachment 344938 [details]
/var/log/Xorg.0.log when the monitor is plugged

Comment 2 Àlex Magaz Graça 2009-05-21 10:35:10 UTC
Created attachment 344939 [details]
/var/log/Xorg.0.log when the monitor is unplugged

Comment 3 Bug Zapper 2009-06-09 16:14:38 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 4 Àlex Magaz Graça 2009-07-03 11:08:40 UTC
I've tried a machine with an Intel graphics card and I've got the same result. Should I open another bug for the Intel driver or may be it's related to X server or something else independent of the driver?

Comment 5 Ted Kessler 2009-10-05 21:10:30 UTC
For me worked fine with kernel 2.6.29 but broke with 2.6.30. Works fine when I boot with the older kernel.

Comment 6 Ted Kessler 2009-10-05 21:27:50 UTC
Actually I now see that it only worked under 2.6.29 because the Plymouth graphical boot set the mode sucessfully. Under 2.6.30 the Plymouth graphical boot fails if no monitor is attached and just hangs. With 2.6.29 the Plymouth boot worked with no attached monitor. If nomodeset is added to the the grub kernel line for 2.6.29, then startx will fail unless a monitor is attached. So if Plymouth just worked without an attached monitor, startx would probably work.

Comment 7 Matěj Cepl 2009-11-05 18:29:40 UTC
Since this bugzilla report was filed, there have been several major updates in various components of the Xorg system, which may have resolved this issue. Users who have experienced this problem are encouraged to upgrade their system to the latest version of their packages. For packages from updates-testing repository you can use command

yum upgrade --enablerepo='*-updates-testing'

Alternatively, you can also try to test whether this bug is reproducible with the upcoming Fedora 12 distribution by downloading LiveMedia of F12 Beta available at http://alt.fedoraproject.org/pub/alt/nightly-composes/ . By using that you get all the latest packages without need to install anything on your computer. For more information on using LiveMedia take a look at https://fedoraproject.org/wiki/FedoraLiveCD .

Please, if you experience this problem on the up-to-date system, let us now in the comment for this bug, or whether the upgraded system works for you.

If you won't be able to reply in one month, I will have to close this bug as INSUFFICIENT_DATA. Thank you.

[This is a bulk message for all open Fedora Rawhide Xorg-related bugs. I'm adding myself to the CC list for each bug, so I'll see any comments you make after this and do my best to make sure every issue gets proper attention.]

Comment 8 Àlex Magaz Graça 2009-11-09 07:34:48 UTC
I've tried with the nightly live CD compose desktop-i386-20091105.16.iso and I'm still having the same problem. I'm attaching some logs.

Comment 9 Àlex Magaz Graça 2009-11-09 07:38:16 UTC
Created attachment 368122 [details]
Xorg.0.log with monitor unplugged

Comment 10 Àlex Magaz Graça 2009-11-09 07:39:10 UTC
Created attachment 368123 [details]
Xorg.1.log with monitor unplugged

Comment 11 Àlex Magaz Graça 2009-11-09 07:39:46 UTC
Created attachment 368124 [details]
Xorg.2.log with monitor unplugged

Comment 12 Àlex Magaz Graça 2009-11-09 07:40:20 UTC
Created attachment 368125 [details]
Xorg.3.log with monitor unplugged

Comment 13 Àlex Magaz Graça 2009-11-09 07:40:48 UTC
Created attachment 368126 [details]
Xorg.4.log with monitor unplugged

Comment 14 Àlex Magaz Graça 2009-11-09 07:41:19 UTC
Created attachment 368128 [details]
Xorg.5.log with monitor unplugged

Comment 15 Àlex Magaz Graça 2009-11-09 07:42:18 UTC
Created attachment 368129 [details]
dmesg with monitor unplugged

Comment 16 Àlex Magaz Graça 2009-11-09 07:44:08 UTC
Created attachment 368130 [details]
smolt profile

Comment 17 Àlex Magaz Graça 2009-11-09 07:46:05 UTC
Created attachment 368131 [details]
Xorg.0.log with monitor unplugged and nomodeset

Comment 18 Àlex Magaz Graça 2009-11-09 07:46:52 UTC
Created attachment 368132 [details]
dmesg with monitor unplugged and nomodeset

Comment 19 Àlex Magaz Graça 2009-11-09 07:47:58 UTC
Created attachment 368134 [details]
Xorg.0.log with monitor unplugged and drm.debug=1

Comment 20 Àlex Magaz Graça 2009-11-09 07:48:38 UTC
Created attachment 368136 [details]
dmesg with monitor unplugged and drm.debug=1

Comment 21 Àlex Magaz Graça 2009-11-09 07:49:46 UTC
Created attachment 368137 [details]
/var/log/messages with monitor unplugged and drm.debug=1

Comment 22 Àlex Magaz Graça 2009-11-09 07:54:11 UTC
Created attachment 368138 [details]
Xorg.0.log with monitor unplugged, drm.debug=1 and nomodeset

Comment 23 Àlex Magaz Graça 2009-11-09 07:55:50 UTC
Created attachment 368139 [details]
dmesg with monitor unplugged, drm.debug=1 and nomodeset

Comment 24 Àlex Magaz Graça 2009-11-09 07:56:48 UTC
Created attachment 368140 [details]
/var/log/messages with monitor unplugged, drm.debug=1 and nomodeset

Comment 25 Àlex Magaz Graça 2009-11-09 08:00:05 UTC
By the way, in all tests X failed to start and there was no xorg.conf file.

Comment 26 Ted Kessler 2009-11-09 23:00:13 UTC
Response to comment #7.  Upgraded to update-testing and same failure on boot with no monitor attached. Also tried Fedora 12 beta desktop (desktop-i386-20091104.16.iso) which also failed at same point. Failure happened on 2 Dell PCs with integrated Intel video adapters (one is an Intel 82845G/GL/GE/PE/GV). Last kernel that worked (allowing boot without attached monitor) was 2.6.29.6-217.2.16.16.fc11. None of the 2.6.30's work. I can take my updated PC and boot back to the 2.6.29 kernel and boot is fine with no monitor attached. The servers with non-intel video adapters boot fine with no monitor (at least the ones I have).

Comment 27 Jérôme Glisse 2009-11-16 10:48:40 UTC
Alex, Ted are you using Intel GPU or RADEON/ATI/AMD GPU ? According to log it's intel. Also what do you expect X to do if there is no screen ? Which resolution do you want it to pick ?

Comment 28 Ted Kessler 2009-11-16 15:42:51 UTC
Intel. I do have an xorg.conf file with several screens defined with different resolutions. Boot into initlevel 3, then run startx (under Telnet) to bring up X. One can specify the screen to use as a startx parameter. This works on all other display adapters, and used to work with Intel pre 2.6.30 kernel, even without an xorg.conf. With this kernel and Intel display adapter, cannot even boot (even into level 3) unless a monitor is attached, though it doesn't have to be powered on.

Comment 29 Àlex Magaz Graça 2009-11-16 17:11:35 UTC
When I reported the bug it was with a Radeon GPU, but the lasts log are from an Intel one (I no longer have the Radeon machine at hand).

About what to do when there is no screen attached, I'm not sure at all. If it's possible, I think X should start and when a monitor is plugged, set the correct resolution for it. Otherwise, it should fall back to a safe resolution, may be 800x600 or better 1024x768. But I think there should be some better reasoning behind this decision than my inspiration.

Comment 30 Adam Jackson 2010-08-30 19:21:55 UTC
Fixed in F13.