Skip to content

[Help] How to boot into Xorg with or without monitor turned on?

I often turn on my PC before my monitor, but if I do that with Xorg auto starting and auto login, it can't find the monitor and fails. I either have to restart xorg or reboot, which is kind of annoying. There's got to be a way to have it running even without the monitor turned on, like on Windows. I have a RX 480 hooked up to a Dell monitor with a Display Port cable. I'm using startx, bspwm, sxhkd, and autologin to TTY, then a script to startx on TTY1. I've tried adding a config drop in to

/etc/X11/xorg.conf.d/

to avoid auto configure, but no luck. I don't know that much about GPU's, but shouldn't it be able to run the X11 windows in it's framebuffer?

EDIT: I seem to have gotten it to work by switching to HDMI. Weird. Means I'll need another cable for my PS4, as I was using a DisplayPort to Mini DisplayPort cable before. Don't know why it wasn't working with DisplayPort.

EDIT 2: My best guess is that the monitor doesn't send EDID info over it's mini DisplayPort when it's turned off. I'm going to try following the instructions on this page for now.

Edited 4 Apr 2018. We only hold this version.

5 points5 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
5 · 100% up
Kind
Text
ID
89binx

Author

2
posts
11
comments
1
media
View profile

5 comments

It is likely that when your monitor is off it is not responding to probes for information so your PC cannot tell if anything is attached to it or not. So when X11 auto configures it cannot find any screens attached so does not set them up - or fails to start completely (which is it?).

/etc/X11/xorg.conf.d/

Is the correct way to solve this and we would need more details on what you tried to be able to see where it went wrong.

Alternatively if the xserver is starting but has miss-configured your screens you can add an xrandr command to your .xinitrc to attempt to fix it.

2 points

Okay, here's my /etc/X11/xorg.conf.d/10-monitor.conf. It's the only drop-in file in that folder.

Section "ServerLayout"
Identifier     "X.org Configured"
Screen      0  "Screen0" 0 0
EndSection

 Section "Module"
Load  "glx"

EndSection

Section "Monitor"
Identifier   "Monitor0"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"

EndSection

Section "Device"
    ### Available Driver options are:-
    ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
    ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
    ### <percent>: "<f>%"
    ### [arg]: arg optional
    #Option     "Accel"              	# [<bool>]
    #Option     "SWcursor"           	# [<bool>]
    #Option     "EnablePageFlip"     	# [<bool>]
    #Option     "SubPixelOrder"      	# [<str>]
    #Option     "ZaphodHeads"        	# <str>
    #Option     "AccelMethod"        	# <str>
    #Option     "DRI3"               	# [<bool>]
    #Option     "DRI"                	# <i>
    #Option     "ShadowPrimary"      	# [<bool>]
    #Option     "TearFree"           	# [<bool>]
    #Option     "DeleteUnusedDP12Displays" 	# [<bool>]
Identifier  "RX480"
Driver      "amdgpu"
BusID       "PCI:1:0:0"

EndSection

Section "Screen"
Identifier "Screen0"
Device     "RX480"
Monitor    "Monitor0"
SubSection "Display"
	Viewport   0 0
	Depth     24
EndSubSection

EndSection

I should add that everything works correctly when my monitor is turned on. I added a

mpc play

command to the end of my wm (bspwm) config file to test if xorg starts up, which does work, so the xsever does start, I just can't get my monitor to automatically show/connect to it.

EDIT: Also here are the result of xrandr on another tty

DISPLAY=:0 xrandr -q

Screen 0: minimum 320 x 200, current 1024 x 768, maximum 16384 x 16384
DisplayPort-0 disconnected primary (normal left inverted right x axis y axis)
DisplayPort-1 disconnected (normal left inverted right x axis y axis)
DisplayPort-2 disconnected (normal left inverted right x axis y axis)
HDMI-A-0 disconnected (normal left inverted right x axis y axis)
DisplayPort-3 connected (normal left inverted right x axis y axis)
   1920x1080     60.00 +  50.00    59.94  
   1600x1200     60.00  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    60.00    59.94  
   720x400       70.08  
DisplayPort-4 disconnected (normal left inverted right x axis y axis)
1 points

Okay, so it looks like the behavior I'm looking for works out of the box on HDMI, even if i remove my config from xorg.conf.d. I wonder why it won't work on DisplayPort...

1 points

The nvidia X driver has an option to force the driver to pretend there's a monitor connected on an output. Maybe there's something similar for the X driver the rx 480 is using.

The X config options that always exist for everything are documented in man xorg.conf. To find where to look for unique options for the driver used by the rx 480, browse the file listing of the package with pacman -Ql ... to find out the name of the man-page it installs.

2 points

Can't seem to find anything... Using xf86-video-amdgpu.

Section "Device"
    ### Available Driver options are:-
    ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
    ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
    ### <percent>: "<f>%"
    ### [arg]: arg optional
    #Option     "Accel"              	# [<bool>]
    #Option     "SWcursor"           	# [<bool>]
    #Option     "EnablePageFlip"     	# [<bool>]
    #Option     "SubPixelOrder"      	# [<str>]
    #Option     "ZaphodHeads"        	# <str>
    #Option     "AccelMethod"        	# <str>
    #Option     "DRI3"               	# [<bool>]
    #Option     "DRI"                	# <i>
    #Option     "ShadowPrimary"      	# [<bool>]
    #Option     "TearFree"           	# [<bool>]
    #Option     "DeleteUnusedDP12Displays" 	# [<bool>]
Identifier  "Card1"
Driver      "amdgpu"
BusID       "PCI:1:0:1"

EndSection

This is part of the result from auto generating a xorg conf from my config with:

sudo Xorg -configure

The system seems to think I have two cards? As I have another entry that is identical, except the bus is PC:1:0:0. I only have one GPU, I'm not using the IGPU.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.