You are not logged in.

#1 2016-10-15 18:38:23

archalex6
Member
From: Bangkok, Thailand
Registered: 2016-09-13
Posts: 18

[solved] Xorg hangs on startx command

I've been pulling my hair out with this one for a while; I have a setup where I have 3 video cards with 2 monitors each, for a total of 6 screens, and no amount of fiddling with the config files will start Xorg.

Motherboard: ASUS Rampage V Edition 10
CPU: Intel Core i7 6950X
Video cards: ASUS nVidia GTX 1080 Strix (3x)
RAM: G.skill 128GB
Monitors: Dell P2415Q (6x) (4k capable, but trying 1920x1080 first)

I'm using various config files in xorg.conf.d but here's the concatenated conf files:

Section "ServerLayout"
	Identifier			"Layout0"
	Screen			0	"Screen0" 0 0
	Screen			1	"Screen1" 1920 0
	Screen			2	"Screen2" 3840 0
	Screen			3	"Screen3" 0 1080
	Screen			4	"Screen4" 1920 1080
	Screen			5	"Screen5" 3840 1080
	InputDevice			"Keyboard0" "CoreKeyboard"
	InputDevice			"Mouse0" "CorePointer"
	Option				"Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "Monitor"
	Identifier 			"Monitor0"
	Modeline			"1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
	VendorName			"DELL"
	Modelname			"P2415Q"
	HorizSync			31.0 - 140.0
	VertRefresh			29.0 - 76.0
	Option				"PreferredMode" "1920x1080_60.00"
	#Option				"Position" "0 0"
	Option				"DPMS" "true"
EndSection
Section "Monitor"
	Identifier 			"Monitor1"
	Modeline			"1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
	VendorName			"DELL"
	Modelname			"P2415Q"
	HorizSync			31.0 - 140.0
	VertRefresh			29.0 - 76.0
	Option				"PreferredMode" "1920x1080_60.00"
	#Option				"Position" "1920 0"
	Option				"DPMS" "true"
EndSection
Section "Monitor"
	Identifier 			"Monitor2"
	Modeline			"1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
	VendorName			"DELL"
	Modelname			"P2415Q"
	HorizSync			31.0 - 140.0
	VertRefresh			29.0 - 76.0
	Option				"PreferredMode" "1920x1080_60.00"
	#Option				"Position" "3840 0"
	Option				"DPMS" "true"
EndSection
Section "Monitor"
	Identifier 			"Monitor3"
	Modeline			"1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
	VendorName			"DELL"
	Modelname			"P2415Q"
	HorizSync			31.0 - 140.0
	VertRefresh			29.0 - 76.0
	Option				"PreferredMode" "1920x1080_60.00"
	#Option				"Position" "0 1080"
	Option				"DPMS" "true"
EndSection
Section "Monitor"
	Identifier 			"Monitor4"
	Modeline			"1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
	VendorName			"DELL"
	Modelname			"P2415Q"
	HorizSync			31.0 - 140.0
	VertRefresh			29.0 - 76.0
	Option				"PreferredMode" "1920x1080_60.00"
	#Option				"Position" "1920 1080"
	Option				"DPMS" "true"
EndSection
Section "Monitor"
	Identifier 			"Monitor5"
	Modeline			"1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
	VendorName			"DELL"
	Modelname			"P2415Q"
	HorizSync			31.0 - 140.0
	VertRefresh			29.0 - 76.0
	Option				"PreferredMode" "1920x1080_60.00"
	#Option				"Position" "3840 1080"
	Option				"DPMS" "true"
EndSection

Section "Device"
	Identifier			"Device0"
	Driver				"nvidia"
	VendorName			"NVIDIA Corporation"
	BoardName			"GeForce GTX 1080"
	BusID				"PCI:1:0:0"
	Screen				0
EndSection
Section "Device"
	Identifier			"Device1"
	Driver				"nvidia"
	VendorName			"NVIDIA Corporation"
	BoardName			"GeForce GTX 1080"
	BusID				"PCI:1:0:0"
	Screen				1
EndSection
Section "Device"
	Identifier			"Device2"
	Driver				"nvidia"
	VendorName			"NVIDIA Corporation"
	BoardName			"GeForce GTX 1080"
	BusID				"PCI:2:0:0"
	Screen				0
EndSection
Section "Device"
	Identifier			"Device3"
	Driver				"nvidia"
	VendorName			"NVIDIA Corporation"
	BoardName			"GeForce GTX 1080"
	BusID				"PCI:2:0:0"
	Screen				1
EndSection
Section "Device"
	Identifier			"Device4"
	Driver				"nvidia"
	VendorName			"NVIDIA Corporation"
	BoardName			"GeForce GTX 1080"
	BusID				"PCI:3:0:0"
	Screen				0
EndSection
Section "Device"
	Identifier			"Device5"
	Driver				"nvidia"
	VendorName			"NVIDIA Corporation"
	BoardName			"GeForce GTX 1080"
	BusID				"PCI:3:0:0"
	Screen				1
EndSection

Section "Screen"
	Identifier			"Screen0"
	Device				"Device0"
	Monitor				"Monitor0"
	DefaultDepth		24
	Option				"Stereo" "0"
	#Option				"metamodes" "DP-1: nvidia-auto-select +0+0"
	Option				"SLI" "Off"
	Option				"MultiGPU" "Off"
	Option				"BaseMosaic" "off"
	SubSection     		"Display"
		Depth      		24
	EndSubSection
EndSection
Section "Screen"
	Identifier			"Screen1"
	Device				"Device1"
	Monitor				"Monitor1"
	DefaultDepth		24
	Option				"Stereo" "0"
	#Option				"metamodes" "DP-2: nvidia-auto-select +0+0"
	Option				"SLI" "Off"
	Option				"MultiGPU" "Off"
	Option				"BaseMosaic" "off"
	SubSection     		"Display"
		Depth      		24
	EndSubSection
EndSection
Section "Screen"
	Identifier			"Screen2"
	Device				"Device2"
	Monitor				"Monitor2"
	DefaultDepth		24
	Option				"Stereo" "0"
	#Option				"metamodes" "DP-1: nvidia-auto-select +0+0"
	Option				"SLI" "Off"
	Option				"MultiGPU" "Off"
	Option				"BaseMosaic" "off"
	SubSection     		"Display"
		Depth      		24
	EndSubSection
EndSection
Section "Screen"
	Identifier			"Screen3"
	Device				"Device3"
	Monitor				"Monitor3"
	DefaultDepth		24
	Option				"Stereo" "0"
	#Option				"metamodes" "DP-2: nvidia-auto-select +0+0"
	Option				"SLI" "Off"
	Option				"MultiGPU" "Off"
	Option				"BaseMosaic" "off"
	SubSection     		"Display"
		Depth      		24
	EndSubSection
EndSection
Section "Screen"
	Identifier			"Screen4"
	Device				"Device4"
	Monitor				"Monitor4"
	DefaultDepth		24
	Option				"Stereo" "0"
	#Option				"metamodes" "DP-1: nvidia-auto-select +0+0"
	Option				"SLI" "Off"
	Option				"MultiGPU" "Off"
	Option				"BaseMosaic" "off"
	SubSection     		"Display"
		Depth      		24
	EndSubSection
EndSection
Section "Screen"
	Identifier			"Screen5"
	Device				"Device5"
	Monitor				"Monitor5"
	DefaultDepth		24
	Option				"Stereo" "0"
	#Option				"metamodes" "DP-2: nvidia-auto-select +0+0"
	Option				"SLI" "Off"
	Option				"MultiGPU" "Off"
	Option				"BaseMosaic" "off"
	SubSection     		"Display"
		Depth      		24
	EndSubSection
EndSection

Section "InputDevice"
	Identifier			"Mouse0"
	Driver				"mouse"
	Option				"Protocol" "auto"
	Option				"Emulate3Buttons" "no"
EndSection

Section "InputDevice"
	Identifier			"Keyboard0"
	Driver				"kbd"
EndSection

The log is too big to paste here, but I put it on Pastebin for you:
http://pastebin.com/jk3ZxNg5

After this, the screens just turn off, and the computer flat out freezes. The only thing left is to hit the reset button.

Any clue?

EDIT: Solution was found. It was a problem with faulty DisplayPort cable. Very weird but for some reason, it was causing issues.

Last edited by archalex6 (2016-10-24 17:21:50)

Offline

#2 2016-10-15 18:55:10

seth
Member
Registered: 2012-09-03
Posts: 51,071

Re: [solved] Xorg hangs on startx command

You mean, you cannot even switch to VT1? Can you still ping (and ssh) into the machine?

Online

#3 2016-10-16 04:58:44

archalex6
Member
From: Bangkok, Thailand
Registered: 2016-09-13
Posts: 18

Re: [solved] Xorg hangs on startx command

I tried what you said, here are the results:

When the computer "freezes" after launching X, I can still SSH into the server as usual. In fact, I'm able to do a "ps" command followed by "kill" to shutdown the X server, which sends the computer back to the terminal.

I edited the /etc/X11/xinit/xserverrc file to change it to "exec /usr/bin/X -nolisten tcp vt1", same results.

All video cards were tested on my Windows dual-boot with FurMark and have been found to be healthy.

Those lines in the logs might give us a clue (there are 6 of them):

[   251.149] (II) NVIDIA(5): Detected PCI Express Link width: 16X
[   251.149] (EE) NVIDIA(5): Failed to assign any connected display devices to X screen 5.
[   251.149] (EE) NVIDIA(5):     Set AllowEmptyInitialConfiguration if you want the server
[   251.149] (EE) NVIDIA(5):     to start anyway
[   251.149] (EE) NVIDIA(5): Failing initialization of X screen 5

Offline

#4 2016-10-16 06:31:22

seth
Member
Registered: 2012-09-03
Posts: 51,071

Re: [solved] Xorg hangs on startx command

Switch to VT1 would mean "press ctrl+alt+f1" ;-)
Ie. the system isn't frozen but simply X11 doesn't come up properly.

Please post the entire log, but it seems  the config ain't sane. I don't have any experience with such setup - where did you determine the configs from? I mostly worry about deactivated Mosaic, SLI and MultiGPU, but on top of this, did you ensure the Bus IDs are actually correct on this system?

Online

#5 2016-10-24 16:45:46

archalex6
Member
From: Bangkok, Thailand
Registered: 2016-09-13
Posts: 18

Re: [solved] Xorg hangs on startx command

It turns out that I was able to solve the problem - the results were unpredictable, however after changing all my DP cables, the problem got away.

Pretty strange though, as Windows was working fine, but Linux was sometimes showing 1 monitor, sometimes 2, etc. but new cables fixed it all.

Offline

#6 2016-10-24 17:08:01

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved] Xorg hangs on startx command

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB