GeForce RTX 2060 Mobile vs. Gentoo 5.1.15

Hello

I would like to ask you for help getting X to work on my Gentoo system. After a fresh install I cannot get X to work. “startx” produces the error:

*** /var/log/Xorg.0.log
*** ls: -rw-r--r-- 1 root pablo 2619 2019-07-01 06:58:15.000000000 +0200 /var/log/Xorg.0.log
[   138.855] 
X.Org X Server 1.20.5
X Protocol Version 11, Revision 0
[   138.855] Build Operating System: Linux 5.1.15-gentoo x86_64 Gentoo
[   138.855] Current Operating System: Linux ps1 5.1.15-gentoo #1 SMP Sun Jun 30 20:06:36 CEST 2019 x86_64
[   138.855] Kernel command line: BOOT_IMAGE=/kernel-genkernel-x86_64-5.1.15-gentoo root=UUID=7d44872c-c372-4cad-87ee-838346b7697d ro
[   138.855] Build Date: 01 July 2019  01:20:06AM
[   138.855]  
[   138.855] Current version of pixman: 0.38.4
[   138.855] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   138.855] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   138.856] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Jul  1 06:58:15 2019
[   138.859] (==) Using config file: "/etc/X11/xorg.conf"
[   138.859] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   138.859] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   138.861] (EE) 
[   138.861] (EE) Backtrace:
[   138.862] (EE) 0: /usr/bin/X (xorg_backtrace+0x4d) [0x56334593707d]
[   138.862] (EE) 1: /usr/bin/X (0x563345790000+0x1aacf5) [0x56334593acf5]
[   138.862] (EE) 2: /lib64/libpthread.so.0 (0x7f34808a6000+0x14680) [0x7f34808ba680]
[   138.862] (EE) 3: /lib64/libc.so.6 (gsignal+0x141) [0x7f348070fcc1]
[   138.862] (EE) 4: /lib64/libc.so.6 (abort+0x121) [0x7f34806f9535]
[   138.862] (EE) 5: /lib64/libc.so.6 (0x7f34806d7000+0x7e9e7) [0x7f34807559e7]
[   138.863] (EE) 6: /lib64/libc.so.6 (0x7f34806d7000+0x86818) [0x7f348075d818]
[   138.863] (EE) 7: /lib64/libc.so.6 (0x7f34806d7000+0x8840d) [0x7f348075f40d]
[   138.863] (EE) 8: /usr/bin/X (0x563345790000+0xbc880) [0x56334584c880]
[   138.863] (EE) 9: /usr/bin/X (0x563345790000+0x8b0ea) [0x56334581b0ea]
[   138.863] (EE) 10: /usr/bin/X (InitOutput+0xe10) [0x563345826ef0]
[   138.864] (EE) 11: /usr/bin/X (0x563345790000+0x5a173) [0x5633457ea173]
[   138.864] (EE) 12: /lib64/libc.so.6 (__libc_start_main+0xeb) [0x7f34806faf1b]
[   138.864] (EE) 13: /usr/bin/X (_start+0x2a) [0x5633457d409a]
[   138.864] (EE) 
[   138.864] (EE) 
Fatal server error:
[   138.864] (EE) Caught signal 6 (Aborted). Server aborting
[   138.864] (EE) 
[   138.864] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   138.865] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   138.865] (EE) 
[   138.865] (EE) Server terminated with error (1). Closing log file.

I’m new here and I could not figure out how to attach the nvidia-bug-report.log.gz (the message above is an extract).
I’m not sure it is a problem with the nvidia drivers. “modprobe nvidia” works. Adding the “-- -logverbose 6” argument to startx does not produce extra information, at least not onto the console.

Any hint will be very helpful to me. Thank you very much in advance!

Kind regards.

nvidia-bug-report.log.gz (1.05 MB)

Rather looks like a malformed xorg.conf than a driver problem.
Please run nvidia-bug-report.sh as root and attach the resulting .gz file to your post. Hovering the mouse over an existing post of yours will reveal a paperclip icon.
[url]https://devtalk.nvidia.com/default/topic/1043347/announcements/attaching-files-to-forum-topics-posts/[/url]

Hello

I also think that the driver does not play a role here (it does not get even mentioned in the error message).
I read the chaper 6 of the docs, regarding xorg.conf, and even experimented with a “Module” section, but nothing changed. I installed the drivers as explained in NVIDIA/nvidia-drivers - Gentoo Wiki .
I attached the .gz file with the log, in my previous post. I’ll be grateful if you can pay a look at it.

Thanks a lot.
Kind regards.

Please delete
/etc/X11/xorg.conf.d/nvidia.conf
it contains

SecStion "Device"

typo.
You can also delete your xorg.conf since you only have one gpu and no special settings.

Hi

that was sharp. And it worked (I needed the xorg.con file to avoid the “no screens found” error, though).

Thank you very much for the help, particularly because the problem was something not related to your product.

Kind regards.