LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-17-2018, 02:15 AM   #1
narbue
LQ Newbie
 
Registered: Feb 2018
Posts: 3

Rep: Reputation: Disabled
Multiple displays on Ubuntu 17.10 with nvidia cards


Hi :>
I have 4 nvidia graphics cards in my computer and I am trying to get multiple displays to function properly in Ubuntu 17.10.
All of them are now turning on and they are positioned properly. I can move my mouse between all of them. There are 6 monitors total. I dual boot with Windows 10, and this configuration works fine on there.

The problem is that each screen is a separate xscreen. Besides the main one, the others are a black screen with an X cursor. Which means I cannot move my apps between the screens. I am not sure if its twinview or mosaic mode that I need, or something else. I like to be able to maximize windows depending on the screen it is on. But I want them all to be connected and share the same desktop.

Most of the things I have tried results in either not being able to get to the login screen, or not being able to get past the login screen (it just loops).

I have:
3x Nvidia GeForce GT 610
1x Nvidia GeForce GTX 1070

I have the most recent nvidia drivers, but I also tried a few older ones.

I used nvidia-settings to make my xorg.conf.

Code:
    # nvidia-settings: X configuration file generated by nvidia-settings
    # nvidia-settings:  version 390.25  (buildd@lcy01-amd64-005)  Mon Jan 29 21:10:27 UTC 2018
    
    
    Section "ServerLayout"
        Identifier     "Layout0"
        Screen      0  "Screen0" 0 1200
        Screen      1  "Screen1" 1920 1200
        Screen      2  "Screen2" 3840 1200
        Screen      3  "Screen3" 1920 0
        Screen      4  "Screen4" 0 120
        Screen      5  "Screen5" 3840 120
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Mouse0" "CorePointer"
        Option         "Xinerama" "0"
    EndSection
    
    Section "Files"
    EndSection
    
    Section "InputDevice"
    
        # generated from default
        Identifier     "Mouse0"
        Driver         "mouse"
        Option         "Protocol" "auto"
        Option         "Device" "/dev/psaux"
        Option         "Emulate3Buttons" "no"
        Option         "ZAxisMapping" "4 5"
    EndSection
    
    Section "InputDevice"
    
        # generated from default
        Identifier     "Keyboard0"
        Driver         "kbd"
    EndSection
    
    Section "Monitor"
    
        # HorizSync source: edid, VertRefresh source: edid
        Identifier     "Monitor0"
        VendorName     "Unknown"
        ModelName      "Samsung S32D850"
        HorizSync       27.0 - 90.0
        VertRefresh     24.0 - 75.0
        Option         "DPMS"
    EndSection
    
    Section "Monitor"
    
        # HorizSync source: unknown, VertRefresh source: unknown
        Identifier     "Monitor1"
        VendorName     "Unknown"
        ModelName      "Samsung S32D850"
        HorizSync       27.0 - 90.0
        VertRefresh     24.0 - 75.0
        Option         "DPMS"
    EndSection
    
    Section "Monitor"
    
        # HorizSync source: unknown, VertRefresh source: unknown
        Identifier     "Monitor2"
        VendorName     "Unknown"
        ModelName      "Samsung SMS27A350H"
        HorizSync       30.0 - 81.0
        VertRefresh     56.0 - 75.0
        Option         "DPMS"
    EndSection
    
    Section "Monitor"
        Identifier     "Monitor3"
        VendorName     "Unknown"
        ModelName      "Acer X263W"
        HorizSync       30.0 - 82.0
        VertRefresh     56.0 - 76.0
    EndSection
    
    Section "Monitor"
        Identifier     "Monitor4"
        VendorName     "Unknown"
        ModelName      "Acer G277HL"
        HorizSync       31.0 - 83.0
        VertRefresh     56.0 - 76.0
    EndSection
    
    Section "Monitor"
        Identifier     "Monitor5"
        VendorName     "Unknown"
        ModelName      "Acer G277HL"
        HorizSync       31.0 - 83.0
        VertRefresh     56.0 - 76.0
    EndSection
    
    Section "Device"
        Identifier     "Device0"
        Driver         "nvidia"
        VendorName     "NVIDIA Corporation"
        BoardName      "GeForce GTX 1070"
        Option         "TwinView" "true"
        BusID          "PCI:1:0:0"
    EndSection
    
    Section "Device"
        Identifier     "Device1"
        Driver         "nvidia"
        VendorName     "NVIDIA Corporation"
        BoardName      "GeForce GT 610"
        BusID          "PCI:6:0:0"
        Screen          0
    EndSection
    
    Section "Device"
        Identifier     "Device2"
        Driver         "nvidia"
        VendorName     "NVIDIA Corporation"
        BoardName      "GeForce GT 610"
        BusID          "PCI:4:0:0"
    EndSection
    
    Section "Device"
        Identifier     "Device3"
        Driver         "nvidia"
        VendorName     "NVIDIA Corporation"
        BoardName      "GeForce GT 610"
        BusID          "PCI:6:0:0"
        Screen          1
    EndSection
    
    Section "Device"
        Identifier     "Device4"
        Driver         "nvidia"
        VendorName     "NVIDIA Corporation"
        BoardName      "GeForce GT 610"
        BusID          "PCI:5:0:0"
        Screen          0
    EndSection
    
    Section "Device"
        Identifier     "Device5"
        Driver         "nvidia"
        VendorName     "NVIDIA Corporation"
        BoardName      "GeForce GT 610"
        BusID          "PCI:5:0:0"
        Screen          1
    EndSection
    
    Section "Screen"
    
    # Removed Option "metamodes" "nvidia-auto-select +0+0"
    # Removed Option "metamodes" "1920x1080 +0+0"
    # Removed Option "metamodes" "nvidia-auto-select +0+0"
        Identifier     "Screen0"
        Device         "Device0"
        Monitor        "Monitor0"
        DefaultDepth    24
        Option         "Stereo" "0"
        Option         "nvidiaXineramaInfoOrder" "DFP-1"
        Option         "metamodes" "1920x1080 +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" "DVI-I-1: nvidia-auto-select +0+0 {AllowGSYNC=Off}"
        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" "nvidia-auto-select +0+0 {AllowGSYNC=Off}"
        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         "nvidiaXineramaInfoOrder" "CRT-1"
        Option         "metamodes" "VGA-0: nvidia-auto-select +0+0 {AllowGSYNC=Off}"
        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         "nvidiaXineramaInfoOrder" "CRT-1"
        Option         "metamodes" "VGA-0: nvidia-auto-select +0+0 {AllowGSYNC=Off}"
        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         "nvidiaXineramaInfoOrder" "DFP-0"
        Option         "metamodes" "DVI-I-1: nvidia-auto-select +0+0 {AllowGSYNC=Off}"
        Option         "SLI" "Off"
        Option         "MultiGPU" "Off"
        Option         "BaseMosaic" "off"
        SubSection     "Display"
            Depth       24
        EndSubSection
    EndSection

I have tried several diff variations for this xorg file. I also tried to do do this- https://www.phoronix.com/forums/foru...thout-xinerama
Anyone have any ideas? I have been trying to find information about this online, and keep getting conflicting opinions. I tried xinerama, and it breaks everything and I cannot even login. I tried mosaic mode, although its possible I did that wrong. Thanks in advance to anyone that helps, I really appreciate it!!

If I figure it out before someone else, I will post the solution below

Last edited by narbue; 02-17-2018 at 07:27 PM.
 
Old 02-21-2018, 01:27 PM   #2
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Have you tried tools like the Ubuntu System Settings>Displays or maybe lxrandr or ArandR? These will let you position the display where ever you want and also extend or mirror.

Just a Thought....
 
Old 02-21-2018, 09:53 PM   #3
narbue
LQ Newbie
 
Registered: Feb 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
hi :> thanks for your reply.
xrandr, arandr, and display only lists/shows 1 display.
the nvidia-settings allows me to see all of my displays, and position them properly. it just makes each screen its own xscreen. ideally i would like all of my displays to share 1 xscreen, so i can move apps between my monitors. i read that xinerama would be the missing link here, but for some reason when i enable xinerama i cannot login at all.
 
Old 02-21-2018, 10:04 PM   #4
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Could you post the output of xrandr?
 
Old 02-21-2018, 11:41 PM   #5
narbue
LQ Newbie
 
Registered: Feb 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
xrandr:
Code:
$ xrandr
Screen 0: minimum 8 x 8, current 2560 x 1440, maximum 32767 x 32767
DVI-D-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 708mm x 398mm
   2560x1440     59.95*+
   1920x1080     60.00    59.94    50.00    29.97    23.97  
   1680x1050     59.95  
   1600x900      60.00  
   1440x900      59.89  
   1280x1024     75.02    60.02  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94  
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)
i also attached a screenshot of arandr, displays, and nvidia-settings.
Attached Thumbnails
Click image for larger version

Name:	arandr.png
Views:	38
Size:	17.5 KB
ID:	27045   Click image for larger version

Name:	displays.png
Views:	60
Size:	56.8 KB
ID:	27046   Click image for larger version

Name:	nvidia-settings.jpg
Views:	62
Size:	174.6 KB
ID:	27047  
 
Old 02-22-2018, 07:13 AM   #6
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
You might find this link of interest https://wiki.archlinux.org/index.php/multihead

And it also mentions:
Quote:
Originally Posted by Arch Wiki
Display managers
GDM: see GDM#Setup default monitor settings .
Users may prefer to use startx and
~/.xinitrc instead of a display manager due to the lack of working support with multiple displays.
Hopefully this gives you some leads.
 
  


Reply



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
[SOLVED] NVIDIA Quadro NVS 420 issues on multiple displays vintage2010 Linux - Hardware 2 10-21-2011 02:20 PM
LXer: Disper Indicator, Easily Clone or Extend Displays on Multiple Monitor Setups - NVIDIA Cards On LXer Syndicated Linux News 0 06-13-2011 09:30 AM
Multiple Displays NVIDIA 8600GT ixxblazexxi Linux - Newbie 1 03-14-2008 08:13 PM
Need to setup multiple displays on different VGA cards [NVIDIA GeForce] in Debian dianuj Debian 1 12-20-2005 11:27 AM
Multiple displays with nVidia card. lvella Linux - Software 1 08-13-2005 11:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:30 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
Open Source Consulting | Domain Registration