[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.
About this post
- Posted
- Archived
- Edited
- Score
- 5 · 100% up
- Kind
- Text
- ID
- 89binx
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?).
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.
Okay, here's my /etc/X11/xorg.conf.d/10-monitor.conf. It's the only drop-in file in that folder.
EndSection
EndSection
EndSection
EndSection
I should add that everything works correctly when my monitor is turned on. I added a
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
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...
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 withpacman -Ql ...to find out the name of the man-page it installs.Can't seem to find anything... Using xf86-video-amdgpu.
EndSection
This is part of the result from auto generating a xorg conf from my config with:
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.