LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-20-2020, 03:11 PM   #1
obobskivich
Member
 
Registered: Jun 2020
Posts: 596

Rep: Reputation: Disabled
Multiple GPUs + extended desktop in X? (Not SLI/CF)


Hopefully this question isn't too broad - I'm mostly just looking for some 'how-to' kind of information here, but I don't have (currently) a machine configured this way.

Background: Years ago, when GPUs only supported 1-2 monitors, it was not uncommon to have 2 GPUs in a single computer to handle 3 monitors, and I had a setup like this for a long time - but it ran WindowsXP and times have changed a lot since then. Modern GPUs seem to support, on average, 4 monitors - I've tried connecting more than that to a newer GeForce and it wasn't having it (and you can, if you search the web properly, find documentation from nVidia confirming that 4 is the limit, despite the cards generally having five outputs ). I know some Radeon cards can do >4 (I have one with five outputs (that are all supposed to work 'together')), but usually that requires MST hubs (which are not cheap) or a bunch of mDP-to-something adapters (which is the case for my example Radeon).

Thus, I've tried doing 'two modern GPUs' in a machine (to run 3-4+ monitors sans adapters/etc) and had it work just as expected in Windows 7 and 8.1, but when trying it in linux (both GeForce and Radeon - using noveau, nVidia proprietary, and the xorg-radeon drivers, respectively) while both GPUs will be 'detected' getting any usable output (in X) from the second (or third, or fourth, etc) card is not something I've ever achieved.

Example: I tried this with two GeForce cards, with a GTX 660 and a GT 610 installed in the same machine (and for ease of testing, I was trying one monitor connected to each) - the GTX 660 would provide a single display in X (which was labeled screen0), and the GT 610's output was just a grey screen with the big X for a cursor, but there was no way to 'link' that (I believe it was labeled screen1) to the 660's output.

I've also tried the same configuration as above with a pair of Radeon cards (an HD 4670 and some 'lesser' model - I think it was an X1650), and got to basically the same place. I know all of my hardware works (all four GPUs that I've tried here worked just fine as the 'primary' GPU - most of them are also regularly used in other machines).

I've tried this in: Xubuntu 19.10 and 20.04, and Ubuntu 18.04 and 20.04.

Question/Query: Any help in figuring out how to set this up properly (or even some better 'search terms' to go looking after)? When I've tried searching the web for 'multiple GPUs in linux' or similar queries its usually people wanting SLI or CrossFire, or some other compute-based thing (like cryptocurrency mining or AI), not just the basic 'I plug in a second graphics card to have another monitor' approach.
 
Old 12-21-2020, 07:57 AM   #2
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,616

Rep: Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554
Quote:
Originally Posted by obobskivich View Post
When I've tried searching the web for 'multiple GPUs in linux' or similar queries its usually people wanting SLI or CrossFire, or some other compute-based thing (like cryptocurrency mining or AI), not just the basic 'I plug in a second graphics card to have another monitor' approach.
Classic XY Problem - you're searching for the method, not for the goal - you want multiple monitors, search for 'multiple monitors'.

You might also want to exclude the term "dual monitors" (since that's most common) and if you're still not getting the right results, perhaps include references to "Screen4" or "Monitor5" or similar terms that an appropriate config might use.

 
Old 12-23-2020, 02:35 AM   #3
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,831
Blog Entries: 1

Rep: Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070
Possibly what tried as a result of this thread can prove to be of some use:
Code:
# inxi -GSay
System:
  Host: ab250 Kernel: 5.8.14-1-default x86_64 bits: 64 compiler: gcc v: 10.2.1
  parameters:...noresume mitigations=auto consoleblank=0 drm.debug=0x1e log_buf_len=1M pci=noaer
  Desktop: IceWM 1.6.5 dm: startx Distro: openSUSE Tumbleweed 20201014
Graphics:
  Device-1: Intel HD Graphics 630 vendor: ASUSTeK driver: i915 v: kernel
  bus ID: 00:02.0 chip ID: 8086:5912
  Device-2: NVIDIA G84 [GeForce 8600 GT] vendor: XFX Pine driver: nouveau
  v: kernel bus ID: 01:00.0 chip ID: 10de:0402
  Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa
  alternate: intel,nouveau,nv,nvidia display ID: :0 screens: 1
  Screen-1: 0 s-res: 4480x2520 s-dpi: 120 s-size: 948x533mm (37.3x21.0")
  s-diag: 1088mm (42.8")
  Monitor-1: DP-1 res: 2560x1440 hz: 60 dpi: 109 size: 598x336mm (23.5x13.2")
  diag: 686mm (27")
  Monitor-2: DP-2 res: 1680x1050 hz: 60 dpi: 90 size: 474x296mm (18.7x11.7")
  diag: 559mm (22")
  Monitor-3: DVI-I-1-1 res: 1920x1200 hz: 60 dpi: 94
  size: 519x324mm (20.4x12.8") diag: 612mm (24.1")
  Monitor-4: DVI-I-1-2 res: 2560x1080 hz: 60 dpi: 97
  size: 673x284mm (26.5x11.2") diag: 730mm (28.8")
  OpenGL: renderer: Mesa DRI Intel HD Graphics 630 (KBL GT2)
  v: 4.6 Mesa 20.1.8 compat-v: 3.0 direct render: Yes
# lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation G84 [GeForce 8600 GT] (rev a1)
# xrandr --output DP-1 --mode 2560x1440 --primary --output DVI-I-1-2 --mode 2560x1080 --above DP-1 --output DVI-I-1-1 --mode 1920x1200 --right-of DP-1 --output DP-2 --right-of DVI-I-1-2 --mode 1680x1050
# xrandr | egrep 'onnect|creen|\*' | grep -v disconn | sort -r
Screen 0: minimum 320 x 200, current 4480 x 2520, maximum 16384 x 16384
DVI-I-1-2 connected 2560x1080+0+0 (normal left inverted right x axis y axis) 673mm x 284mm              # NVidia DVI
DVI-I-1-1 connected 1920x1200+2560+1080 (normal left inverted right x axis y axis) 519mm x 324mm        # NVidia DVI
DP-2 connected 1680x1050+2560+0 (normal left inverted right x axis y axis) 474mm x 296mm                # Intel VGA
DP-1 connected primary 2560x1440+0+1080 (normal left inverted right x axis y axis) 598mm x 336mm        # Intel DisplayPort
   2560x1440     59.95*+  74.92
   2560x1080     60.00*+
   1920x1200     59.95*+
   1680x1050     59.97*+
 
Old 12-29-2020, 05:08 AM   #4
obobskivich
Member
 
Registered: Jun 2020
Posts: 596

Original Poster
Rep: Reputation: Disabled
Marking solved - I tried such a configuration in Xubuntu 20.04 today with a 'mixed' setup - a Radeon HD 6970 (using radeon) and a Quadro FX 1700 (using noveau) and it 'just worked' out of the box. Not sure what else to offer if anyone hits on this later.

FWIW: I did also try the Radeon card along with some older PCIe cards I had sitting around (a Radeon HD 4890, Radeon X850, a Radeon X300, and a 3DLabs Wildcat) and while the HD 4890 worked just as well as the Quadro (that is, 'it just worked' and added more display outputs), the older Radeons had display issues when running alongside the 6970 (but if the 6970 was removed, they worked well enough for their age), and the 3DLabs card would not allow X to start (I didn't troubleshoot this beyond finding this card is not listed as supported anywhere on x.org's driver matrix). I don't have any newer Radeon cards (that use amdgpu) to test currently (but I'm waiting on one in the mail), nor did I try installing the nvidia proprietary driver - I can update with a thumbs up/down once I can test amdgpu if anyone is interested.

Also FWIW, two related guides (but neither was needed for any of this to 'work' as described in my original question - again, this 'just worked' on boot-up) I found, which may be of interest to some:
https://wiki.archlinux.org/index.php/PRIME
https://wiki.gentoo.org/wiki/AMDGPU#...card_is_in_use
 
  


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
LXer: GNOME and KDE team up on the Linux desktop, docs for Nvidia GPUs open up, a powerful new way to scan for firmware vulnerabilities, and LXer Syndicated Linux News 0 08-17-2019 02:00 PM
[SOLVED] Debian Unstable and multiple gpus (mobo integrated xpress200 and PCI Radeon 7000) umb Debian 5 12-27-2014 12:02 PM
FAQ, support multiple monitor 3 or 4 using dual video card SLI or Crossfire jao_madn Linux - Hardware 9 01-12-2012 11:16 AM
help with 939chip, A8N-SLI Premium board and 6800XT SLI cards and linux lleb Linux - General 11 09-08-2006 01:17 AM
extended desktop, not session desktop over 2 monitors inertia666 Linux - Software 16 02-12-2005 04:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:52 PM.

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