LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-02-2017, 11:26 PM   #1
surfrock66
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Rep: Reputation: 0
Troubleshoot X segfault w/ multi-monitor, multi-card nouveau


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:
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/desk...ications/#NV50)
http://www.geforce.com/hardware/desk...specifications
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:
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.tr...roprietary.txt

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

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

Code:
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.tr...au.1screen.txt

To begin, I make the following change (simply uncommenting Screen 1 in the ServerLayout). http://www.surfrock66.com/nouveau.tr...u.2screens.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:
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:
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:
[    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.
 
Old 01-04-2017, 08:21 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,307
Blog Entries: 9

Rep: Reputation: 3310Reputation: 3310Reputation: 3310Reputation: 3310Reputation: 3310Reputation: 3310Reputation: 3310Reputation: 3310Reputation: 3310Reputation: 3310Reputation: 3310
i had 2 very similar nvidia cards, but not simultaneously...

anyhow:
Quote:
Originally Posted by surfrock66 View Post
X segfaults before lightdm even loads.
doesn't the display manager start X? so this statement is incorrect?

but fortunately the lightdm service tells you it has failed.
i'd investigate that further; maybe
Code:
journalctl -b | grep something
shows more?

you could also try starting X without a display manager, via ~/.xinitrc - maybe it works, maybe you get better info that way.
 
Old 03-16-2017, 02:36 AM   #3
MikeDK
LQ Newbie
 
Registered: Mar 2017
Posts: 2

Rep: Reputation: Disabled
looks familiar

I have exactly the same problem, except that I am using one Geforce GT210 card using the nvidia proprietary driver, and the other card is the internal intel card on a core-i7 mainboard.

What's amazing about that? Check this out:

Code:
(EE) Backtrace:
Mar 16 08:02:07 20130600012PC /usr/lib/gdm3/gdm-x-session[3552]: (EE) 0: /usr/lib/xorg/Xorg (xorg_backtrace+0x4a) [0x5652f041e46a]
Mar 16 08:02:07 20130600012PC /usr/lib/gdm3/gdm-x-session[3552]: (EE) 1: /usr/lib/xorg/Xorg (0x5652f0265000+0x1bd219) [0x5652f0422219]
Mar 16 08:02:07 20130600012PC /usr/lib/gdm3/gdm-x-session[3552]: (EE) 2: /lib/x86_64-linux-gnu/libpthread.so.0 (0x7f4ce776a000+0x110c0) [0x7f4ce777b0c0]
Mar 16 08:02:07 20130600012PC /usr/lib/gdm3/gdm-x-session[3552]: (EE) 3: /usr/lib/xorg/Xorg (RRCrtcGammaSetSize+0x0) [0x5652f037e210]
Mar 16 08:02:07 20130600012PC /usr/lib/gdm3/gdm-x-session[3552]: (EE) 4: /usr/lib/xorg/Xorg (0x5652f0265000+0xd560a) [0x5652f033a60a]
Mar 16 08:02:07 20130600012PC /usr/lib/gdm3/gdm-x-session[3552]: (EE) 5: /usr/lib/xorg/Xorg (xf86HandleColormaps+0x312) [0x5652f03047d2]
Mar 16 08:02:07 20130600012PC /usr/lib/gdm3/gdm-x-session[3552]: (EE) 6: /usr/lib/xorg/modules/drivers/intel_drv.so (0x7f4ce0d37000+0x7da71) [0x7f4ce0db4a71]
Mar 16 08:02:07 20130600012PC /usr/lib/gdm3/gdm-x-session[3552]: (EE) 7: /usr/lib/xorg/Xorg (AddGPUScreen+0xf0) [0x5652f02b9970]
Mar 16 08:02:07 20130600012PC /usr/lib/gdm3/gdm-x-session[3552]: (EE) 8: /usr/lib/xorg/Xorg (InitOutput+0x287) [0x5652f02ff337]
Mar 16 08:02:07 20130600012PC /usr/lib/gdm3/gdm-x-session[3552]: (EE) 9: /usr/lib/xorg/Xorg (0x5652f0265000+0x58356) [0x5652f02bd356]
Mar 16 08:02:07 20130600012PC /usr/lib/gdm3/gdm-x-session[3552]: (EE) 10: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xf1) [0x7f4ce73ec2b1]
Mar 16 08:02:07 20130600012PC /usr/lib/gdm3/gdm-x-session[3552]: (EE) 11: /usr/lib/xorg/Xorg (_start+0x2a) [0x5652f02a721a]
Mar 16 08:02:07 20130600012PC /usr/lib/gdm3/gdm-x-session[3552]: (EE)
Mar 16 08:02:07 20130600012PC /usr/lib/gdm3/gdm-x-session[3552]: (EE) Segmentation fault at address 0x38
The backtrace looks exactly like the one of the thread owner, and even the address where the segmentation fault happens is the same.
But there is one difference: intel_drv.so instead of nouveau_drv.so.

So it seems the error has nothing to do with the cards that are used ...

Via Google I found a bugticket (which I have to include in my next post, as this is my first one, and thus I am not allowed to insert a link)

It seems to be related to this... When you look at the backtrace there, it is not the same, but very similar: calls go through InitOutput(), Add[GPU]Screen(), xf86HandleColormaps() and pthread like for us...

There is also a patch in that bugticket, but I do not know if it is included in my distro - I am using Debian Testing (Stretch) ... with Jessie I did not have this problem on the same PC.

So ... how to find out if a patch is included in a binary provided by my distro? ;-)


regards,
MikeDK
 
Old 03-16-2017, 02:37 AM   #4
MikeDK
LQ Newbie
 
Registered: Mar 2017
Posts: 2

Rep: Reputation: Disabled
the bug ticket i have spoken about:

https://bugs.freedesktop.org/show_bug.cgi?id=97124
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
best practice Multihead, multi-screen, multi-display or multi-monitor-Debian 8 lgtrean Linux - Software 1 10-14-2015 09:53 AM
LXer: Crazies: Linux w/o Ethernet, Multi-Monitor, Multi-User LXer Syndicated Linux News 0 09-07-2012 10:51 PM
ATI multi card, multi display xinerama composite problem decibelcooper Linux - Hardware 2 06-24-2011 10:09 PM
MUlti Card and Multi Monitor ATI setup fails. Help tdiet62 Linux - Desktop 0 10-25-2008 04:36 AM
How do you change card# of multi multi-media cards. Nichole_knc Slackware 3 12-01-2004 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration