You are not logged in.

#1 2019-02-04 21:07:34

Hodor
Member
Registered: 2019-02-04
Posts: 3

[SOLVED] Help needed to get Xorg up and running

Hi all,

I am in the process of seting up Arch on a machine of mine, but have tremendous problemes getting i3 to run.

In short, Xorg starts and screen goes black (briefly) and then returns to the terminal - without any input capabilities. I can switch to a different TTY and kill of the process. Switching to a separate TTY and then back will show a black screen (seems the buffer was cleared). I am using a newly installed system with proprietary nvidia drivers. No xorg.conf file(s) used and using 'startx' with an .xinitrc with 'exec i3' as the only appended text.

After looking through the Xorg logs for to many hours trying to find a cause for my problems I turn to you, any help would be greatly appreciated.

Most recent Xorg.0.log

My graphics cards

$ lspci -k | grep -A3 VGA
01:00.0 VGA compatible controller: NVIDIA Corporation GM204 [GeForce GTX 970] (rev a1)
	Subsystem: ASUSTeK Computer Inc. GM204 [GeForce GTX 970]
	Kernel driver in use: nvidia
	Kernel modules: nouveau, nvidia_drm, nvidia
--
02:00.0 VGA compatible controller: NVIDIA Corporation GM204 [GeForce GTX 970] (rev a1)
	Subsystem: ASUSTeK Computer Inc. GM204 [GeForce GTX 970]
	Kernel driver in use: nvidia
	Kernel modules: nouveau, nvidia_drm, nvidia

Thank you!

Last edited by Hodor (2019-02-04 21:43:01)

Offline

#2 2019-02-04 21:09:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,667

Re: [SOLVED] Help needed to get Xorg up and running

post your .xinitrc…

Edit: in case you long to use a multimonitor-across-gpu setting (no SLI), see https://wiki.archlinux.org/index.php/NVIDIA#Base_Mosaic

Last edited by seth (2019-02-04 21:11:06)

Offline

#3 2019-02-04 21:16:27

Hodor
Member
Registered: 2019-02-04
Posts: 3

Re: [SOLVED] Help needed to get Xorg up and running

Here is my .xinitrc, currently configured for logging but as it turns out I need X running for that, and I also suspect this is not an i3 issue.

I only use one monitor so multimonitor setup is fortunately not something I have to worry about at this time. smile

Last edited by Hodor (2019-02-04 21:21:58)

Offline

#4 2019-02-04 21:23:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,667

Re: [SOLVED] Help needed to get Xorg up and running

Checked the xorg log, the problem is that outputs are only attached to the second GPU (should be 01:00.0) - you'll either have to attach the monitors to the other GPU or explicitly tag this one as primary w/ some xorg snippet along the lines of

Section "Device"
        Identifier      "Card A"
        Driver          "nvidia"
        BusID           "PCI:1:00:0"
        Option "PrimaryGPU" "true"
EndSection

Section "Device"
        Identifier      "Card B"
        Driver          "nvidia"
        BusID           "PCI:2:00:0"
        Option "PrimaryGPU" "false"
EndSection

Offline

#5 2019-02-04 21:42:39

Hodor
Member
Registered: 2019-02-04
Posts: 3

Re: [SOLVED] Help needed to get Xorg up and running

seth wrote:

Checked the xorg log, the problem is that outputs are only attached to the second GPU (should be 01:00.0) - you'll either have to attach the monitors to the other GPU or explicitly tag this one as primary w/ some xorg snippet along the lines of

.. code ..

As per your suggestion I created a new file '/etc/X11/xorg.conf.d/20-nvidia.conf' with the snipet above and things indeed works! I cant believe it was that simple.. Such sweet joy, only partially clouded by a sharp feeling of stupidity and to many hours lost. Ohh well it was a learning process... roll

Many thanks for the quick and remarkably accurate help!

Offline

#6 2019-02-04 22:01:14

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,715

Re: [SOLVED] Help needed to get Xorg up and running

Hodor wrote:

Such sweet joy, only partially clouded by a sharp feeling of stupidity and to many hours lost. Ohh well it was a learning process... roll

Hey, your efforts were bested by one of the sharpest members of our community.  Not a datum against which one should berate oneself.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB