Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Troubleshoot X segfault w/ multi-monitor, multi-card nouveau

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
surfrock66
Posts: 2
Joined: 2014-12-11 20:22

Troubleshoot X segfault w/ multi-monitor, multi-card nouveau

#1 Post by surfrock66 »

I am having trouble with my 2 card, 4 monitor setup using the nouveau driver. I've been able to make this work using the proprietary nvidia legacy driver, but I run Debian Sid (experimental) and have a lot of dependency breakage and would like to try to accomplish the same thing in Nouveau. After many many revisions of the configuration, I'm looking to someone with more expertise for some assistance.

This is a system76 Wild Dog Desktop. It runs Debian Sid, though I get the same results with Debian Jessie. I'm using LightDM to start AwesomeWM with Mate as the DE. For testing, I get the same results with a full Mate DE. I don't think the DE/WM matter...X segfaults before lightdm even loads. My 2 cards are:

Code: Select all

surfrock66@sr76:~$ lspci | grep -i nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation G92 [GeForce GTS 250] (rev a2)
02:00.0 VGA compatible controller: NVIDIA Corporation G92 [GeForce 8800 GT] (rev a2)
Cards:
http://www.geforce.com/hardware/desktop ... ions/#NV50)
http://www.geforce.com/hardware/desktop ... ifications
Both are officially supported (NV50 family, Tesla, NV92, G92, supported https://nouveau.freedesktop.org/wiki/CodeNames/#NV50)

The nouveau driver is installed, and all nvidia packages are purged:

Code: Select all

surfrock66@sr76:~$ sudo apt list --installed | grep -i -e nouveau -e nvidia
libdrm-nouveau2/unstable,now 2.4.74-1 amd64 [installed,automatic]
xserver-xorg-video-nouveau/unstable,now 1:1.0.13-1+b1 amd64 [installed]
Here is my xorg.conf from the working legacy proprietary driver configuration (which works): http://www.surfrock66.com/nouveau.troub ... ietary.txt

I've been using this guide: https://nouveau.freedesktop.org/wiki/Mu ... orDesktop/

From the documentation there, I also got this for ZaphodHeads:

Code: Select all

surfrock66@sr76:/sys/class/drm$ ls
total 0
0 lrwxrwxrwx 1 root root    0 Jan  2 16:38 card0 -> ../../devices/pci0000:00/0000:00:03.0/0000:01:00.0/drm/card0
0 lrwxrwxrwx 1 root root    0 Jan  2 16:38 card0-DVI-I-1 -> ../../devices/pci0000:00/0000:00:03.0/0000:01:00.0/drm/card0/card0-DVI-I-1
0 lrwxrwxrwx 1 root root    0 Jan  2 16:38 card0-HDMI-A-1 -> ../../devices/pci0000:00/0000:00:03.0/0000:01:00.0/drm/card0/card0-HDMI-A-1
0 lrwxrwxrwx 1 root root    0 Jan  2 16:38 card0-VGA-1 -> ../../devices/pci0000:00/0000:00:03.0/0000:01:00.0/drm/card0/card0-VGA-1
0 lrwxrwxrwx 1 root root    0 Jan  2 16:38 card1 -> ../../devices/pci0000:00/0000:00:05.0/0000:02:00.0/drm/card1
0 lrwxrwxrwx 1 root root    0 Jan  2 16:38 card1-DVI-I-2 -> ../../devices/pci0000:00/0000:00:05.0/0000:02:00.0/drm/card1/card1-DVI-I-2
0 lrwxrwxrwx 1 root root    0 Jan  2 16:38 card1-DVI-I-3 -> ../../devices/pci0000:00/0000:00:05.0/0000:02:00.0/drm/card1/card1-DVI-I-3
0 lrwxrwxrwx 1 root root    0 Jan  2 16:38 controlD64 -> ../../devices/pci0000:00/0000:00:03.0/0000:01:00.0/drm/controlD64
0 lrwxrwxrwx 1 root root    0 Jan  2 16:38 controlD65 -> ../../devices/pci0000:00/0000:00:05.0/0000:02:00.0/drm/controlD65
0 lrwxrwxrwx 1 root root    0 Jan  2 16:38 renderD128 -> ../../devices/pci0000:00/0000:00:03.0/0000:01:00.0/drm/renderD128
0 lrwxrwxrwx 1 root root    0 Jan  2 16:38 renderD129 -> ../../devices/pci0000:00/0000:00:05.0/0000:02:00.0/drm/renderD129
0 lrwxrwxrwx 1 root root    0 Jan  2 16:38 ttm -> ../../devices/virtual/drm/ttm
0 -r--r--r-- 1 root root 4.0K Jan  2 16:38 version
I have attempted to get this to work, but I cannot get X to start with anything other than a single monitor. This is the only configuration that I have successfully been able to make work: http://www.surfrock66.com/nouveau.troub ... screen.txt

To begin, I make the following change (simply uncommenting Screen 1 in the ServerLayout). http://www.surfrock66.com/nouveau.troub ... creens.txt

The system fails to start and all I get is a blinking cursor on the screen. Through ssh, I run that command and see the following:

Code: Select all

surfrock66@sr76:~$ systemctl status lightdm.service
● lightdm.service - Light Display Manager
   Loaded: loaded (/lib/systemd/system/lightdm.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2017-01-02 13:11:14 PST; 3h 20min ago
     Docs: man:lightdm(1)
  Process: 1293 ExecStart=/usr/sbin/lightdm (code=exited, status=1/FAILURE)
  Process: 1289 ExecStartPre=/bin/sh -c [ "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/sbin/lightdm" ] (code=exited, status=0/SUCCESS)
 Main PID: 1293 (code=exited, status=1/FAILURE)
That isn't super useful, here's the output of filtered dmesg:

Code: Select all

surfrock66@sr76:~$ sudo dmesg | grep -i -e nouveau -e nvidia -e lightdm -e X11
[    1.245579] intel_idle: MWAIT substates: 0x1120
[    4.216848] snd_hda_codec_realtek hdaudioC0D2:    dig-out=0x11/0x1e
[    4.260535] nouveau 0000:01:00.0: NVIDIA G92 (092a80a2)
[    4.400595] nouveau 0000:01:00.0: bios: version 62.92.89.00.08
[    4.420882] nouveau 0000:01:00.0: fb: 1024 MiB GDDR3
[    4.471305] nouveau 0000:01:00.0: DRM: VRAM: 1024 MiB
[    4.471306] nouveau 0000:01:00.0: DRM: GART: 1048576 MiB
[    4.471309] nouveau 0000:01:00.0: DRM: TMDS table version 2.0
[    4.471310] nouveau 0000:01:00.0: DRM: DCB version 4.0
[    4.471311] nouveau 0000:01:00.0: DRM: DCB outp 00: 02000300 00000028
[    4.471313] nouveau 0000:01:00.0: DRM: DCB outp 01: 01000302 00020030
[    4.471314] nouveau 0000:01:00.0: DRM: DCB outp 02: 04011310 00000028
[    4.471315] nouveau 0000:01:00.0: DRM: DCB outp 03: 02022322 00020020
[    4.471316] nouveau 0000:01:00.0: DRM: DCB conn 00: 00001030
[    4.471317] nouveau 0000:01:00.0: DRM: DCB conn 01: 00000100
[    4.471318] nouveau 0000:01:00.0: DRM: DCB conn 02: 00002261
[    4.516419] nouveau 0000:01:00.0: DRM: MM: using CRYPT for buffer copies
[    4.614095] nouveau 0000:01:00.0: DRM: allocated 1680x1050 fb: 0x70000, bo ffffa23631c8cc00
[    4.614145] fbcon: nouveaufb (fb0) is primary device
[    4.704929] nouveau 0000:01:00.0: fb0: nouveaufb frame buffer device
[    4.725825] [drm] Initialized nouveau 1.3.1 20120801 for 0000:01:00.0 on minor 0
[    4.725847] nouveau 0000:02:00.0: enabling device (0000 -> 0003)
[    4.725979] nouveau 0000:02:00.0: NVIDIA G92 (092880a2)
[    4.828876] nouveau 0000:02:00.0: bios: version 62.92.1f.00.52
[    4.895435] nouveau 0000:02:00.0: fb: 512 MiB GDDR3
[    4.952651] nouveau 0000:02:00.0: DRM: VRAM: 512 MiB
[    4.952654] nouveau 0000:02:00.0: DRM: GART: 1048576 MiB
[    4.952659] nouveau 0000:02:00.0: DRM: TMDS table version 2.0
[    4.952661] nouveau 0000:02:00.0: DRM: DCB version 4.0
[    4.952664] nouveau 0000:02:00.0: DRM: DCB outp 00: 02000300 00000028
[    4.952668] nouveau 0000:02:00.0: DRM: DCB outp 01: 01000302 00000030
[    4.952670] nouveau 0000:02:00.0: DRM: DCB outp 02: 04011310 00000028
[    4.952673] nouveau 0000:02:00.0: DRM: DCB outp 03: 02011312 00000030
[    4.952675] nouveau 0000:02:00.0: DRM: DCB outp 04: 010223f1 00c0c083
[    4.952678] nouveau 0000:02:00.0: DRM: DCB conn 00: 00001030
[    4.952680] nouveau 0000:02:00.0: DRM: DCB conn 01: 00002130
[    4.952682] nouveau 0000:02:00.0: DRM: DCB conn 02: 00000210
[    4.952685] nouveau 0000:02:00.0: DRM: DCB conn 03: 00000211
[    4.952687] nouveau 0000:02:00.0: DRM: DCB conn 04: 00000213
[    4.973284] nouveau 0000:02:00.0: DRM: failed to create encoder 0/1/0: -19
[    4.973285] nouveau 0000:02:00.0: DRM: TV-1 has no encoders, removing
[    4.998138] nouveau 0000:02:00.0: DRM: MM: using CRYPT for buffer copies
[    5.049109] nouveau 0000:02:00.0: DRM: allocated 1280x1024 fb: 0x70000, bo ffffa23632940c00
[    5.049283] nouveau 0000:02:00.0: fb1: nouveaufb frame buffer device
[    5.049292] [drm] Initialized nouveau 1.3.1 20120801 for 0000:02:00.0 on minor 1
Here is the output of /var/log/Xorg.0.log, starting with the first error. Before this everything looked peachy:

Code: Select all

[    15.455] (EE) 
[    15.455] (EE) Backtrace:
[    15.455] (EE) 0: /usr/lib/xorg/Xorg (xorg_backtrace+0x4a) [0x5625b128cf5a]
[    15.455] (EE) 1: /usr/lib/xorg/Xorg (0x5625b10d4000+0x1bccd9) [0x5625b1290cd9]
[    15.455] (EE) 2: /lib/x86_64-linux-gnu/libpthread.so.0 (0x7f5437469000+0x11100) [0x7f543747a100]
[    15.455] (EE) 3: /usr/lib/xorg/Xorg (RRCrtcGammaSetSize+0x0) [0x5625b11eceb0]
[    15.455] (EE) 4: /usr/lib/xorg/Xorg (0x5625b10d4000+0xd533a) [0x5625b11a933a]
[    15.456] (EE) 5: /usr/lib/xorg/Xorg (xf86HandleColormaps+0x312) [0x5625b11735a2]
[    15.456] (EE) 6: /usr/lib/xorg/modules/drivers/nouveau_drv.so (0x7f54331d5000+0x10777) [0x7f54331e5777]
[    15.456] (EE) 7: /usr/lib/xorg/Xorg (AddGPUScreen+0xf0) [0x5625b1128850]
[    15.456] (EE) 8: /usr/lib/xorg/Xorg (InitOutput+0x287) [0x5625b116e107]
[    15.456] (EE) 9: /usr/lib/xorg/Xorg (0x5625b10d4000+0x58236) [0x5625b112c236]
[    15.456] (EE) 10: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xf1) [0x7f54370eb2b1]
[    15.456] (EE) 11: /usr/lib/xorg/Xorg (_start+0x2a) [0x5625b111613a]
[    15.456] (EE) 
[    15.456] (EE) Segmentation fault at address 0x38
[    15.456] (EE) 
Fatal server error:
[    15.456] (EE) Caught signal 11 (Segmentation fault). Server aborting
[    15.456] (EE) 
[    15.456] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[    15.456] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    15.456] (EE) 
[    15.457] (EE) Server terminated with error (1). Closing log file.
So, something about having a second monitor enabled is causing a segfault in X. I've been through this: https://nouveau.freedesktop.org/wiki/TroubleShooting/ but nothing in there has helped me. At this point, I'm stuck and looking for guidance.

Post Reply