You are not logged in.

#1 2014-04-02 08:45:29

ksl
Member
Registered: 2014-04-02
Posts: 2

Using NVIDIA and Intel GPU simultaneously

Sorry for my poor english.
I had 4 monitors and my pc have tow graphic card,one is nvidia card with 2 DVI port,one is intel hd 4000 with one VGA port and one DP port. I write xorg.conf to want make all monitors work simultaneously. now all monitors is work but the two monitors link to intel HD card output same screen. I had modification xorg.conf try make they output different screen but not success.
I configure it by two link https://01.org/linuxgraphics/documentat … -randr-1.2, http://askubuntu.com/questions/142915/i … rce-gtx560.
I had make nvidia card is prime video card.
My xorg.conf:

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "Screen0"
	Screen      2  "Screen2" RightOf "Screen1"
	Screen      3  "Screen3" RightOf "Screen2"
    Option         "Xinerama" "1"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Dell Alienware2310"
    HorizSync       30.0 - 140.0
    VertRefresh     56.0 - 120.0
    Option         "DPMS"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "DELL 1908FP"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 76.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor2"
EndSection

Section "Monitor"
    Identifier     "Monitor3"
    ModelName      "DELL 1908FP"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro FX 570"
    BusID          "PCI:1:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro FX 570"
    BusID          "PCI:1:0:0"
    Screen          1
EndSection

Section "Device"
    Identifier     "Device2"
    Driver         "intel"
    BusID      "PCI:0:2:0"
EndSection

Section "Device"
    Identifier     "Device3"
    Driver         "intel"
    BusID      "PCI:0:2:0"
EndSection


Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "metamodes" "DVI-I-2: 1920x1080_60 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "metamodes" "DVI-I-3: 1280x1024_75 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen2"
    Device         "Device2"
    Monitor        "Monitor2"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen3"
    Device         "Device3"
    Monitor        "Monitor3"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Disable"
EndSection

now screen2 and screen3 output is same.is mean screen3 is not work. How can i make all monitors output different screen.
Thanks.

Last edited by ksl (2014-04-02 08:47:25)

Offline

#2 2014-04-03 00:39:35

schnoopay
Member
From: USA
Registered: 2014-03-09
Posts: 22

Re: Using NVIDIA and Intel GPU simultaneously

I recently went with a triple monitor setup with an nvidia card and my onboard intel graphics using the nvdia proprietary driver and the xf86-video-modesetting driver. My setup is below.

/etc/X11/xorg.conf.d/20-display.conf:

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "ConstrainCursor" "0"
    Option         "TripleBuffer" "1"
    Option         "GLShaderDiskCache" "1"
    Option         "NoLogo" "1"
Option "nvidiaXineramaInfoOverride" "1920x1080+1280+0, 1212x678+3200+0, 1280x1024+0+0"
EndSection
                                                                                
Section "Device"                                                                 
    Identifier "intel"                                                             
    Driver "modesetting"                                                             
EndSection                                                                              
                                                                                        
Section "Screen"                                                                           
    Identifier "intel"                                                                     
    Device "intel"                                                                            
EndSection

/etc/X11/triplehead.sh

#!/bin/sh                                                                                       
xrandr --setprovideroutputsource 1 0                                                                 
xrandr --output VGA-1-0 --off                                                                        
xrandr --output VGA-1-0 --left-of DVI-I-1 --mode 1280x1024 --gamma 1.2:1.2:1.2                         
xrandr --output DVI-I-1 --primary --mode 1920x1080                                                        
xrandr --output HDMI-0 --right-of DVI-I-1 --mode 1280x720 --set BorderDimensions 4 --set Border 38,14,30,28 --gamma .9:.9:.9
xrandr --fb 4412x1080

/etc/udev/rules.d/99-systemd-dri-devices.rules

ACTION=="add", KERNEL=="card*", SUBSYSTEM=="drm", TAG+="systemd"

/etc/systemd/system/display-manager.service.d/10-wait-for-dri-devices.conf

[Unit]
Wants=dev-dri-card0.device
After=dev-dri-card0.device
Wants=dev-dri-card1.device
After=dev-dri-card1.device

This is for a DVI 1920x1080 monitor and an HDMI 1280x720 TV with overscan (hence the "border" and --fb commands) on the nvidia card, and a VGA 1280x1024 monitor on the intel card.

The "ConstrainCursor" and "nvidiaXineramaInfoOverride" are there due to quirks in how the nvidia proprietary driver interacts with X and are unavailable and (I think) unnecessary with nouveau.

I'm not sure why I have to turn the intel monitor off then on but I get no output to it if I don't.

The triplehead.sh script is run first thing in my .xinitrc (for startx) and in my /usr/share/config/kdm/Xsetup (for kdm.)

The 99-systemd-dri-devices.rules and 10-wait-for-dri-devices.conf are so that systemd doesn't try to start X before the video cards are detected.

Offline

#3 2014-04-03 11:12:49

ksl
Member
Registered: 2014-04-02
Posts: 2

Re: Using NVIDIA and Intel GPU simultaneously

Thank you for post,but it's not work for me.
if you just work on triple monitors simultaneously. you can use my xorg.conf,it work well for triple monitors.

Offline

#4 2014-04-04 01:11:06

schnoopay
Member
From: USA
Registered: 2014-03-09
Posts: 22

Re: Using NVIDIA and Intel GPU simultaneously

Your setup wouldn't work for my needs. I need the nvidia driver's performance, randr support, etc. I know the setup is complicated, but it really does work well.

Offline

#5 2014-07-25 19:42:47

nofrills
Member
Registered: 2014-07-25
Posts: 2

Re: Using NVIDIA and Intel GPU simultaneously

Hi schnoopay,
I m trying to achieve a monitor layout similar to you:

NVIDIA1 - NVIDIA2 - INTEL1
(DP-0)     (DVI-I-1)   (HDMI-1-0)

I followed the official documentation from nvidia, but encountered a weird problem:

When I try to move my mouse pointer from NVIDIA2 to INTEL1 (i.e. to the right), the image on both NVIDIA1 & NVIDIA2
"moves" leftwards in tandem.

The xrandr out put shows NVIDIA1 & NVIDIA2 is doing something called panning:

 
dmanik@chao ~ $ xrandr
Screen 0: minimum 8 x 8, current 4480 x 1200, maximum 16384 x 16384
DVI-I-1 connected primary 1920x1200+1280+0 (normal left inverted right x axis y axis) 519mm x 324mm panning 3200x1200+1280+0 tracking 4480x1200+0+0 border 0/0/0/0

DP-0 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 376mm x 301mm panning 2560x1024+0+0 tracking 4480x1200+0+0 border 0/0/0/0
   
HDMI-1-0 connected 1280x1024+3200+0 376mm x 301mm
 
DisplayPort-1-0 disconnected
HDMI-1-1 disconnected

I have followed all the steps you mentioned. It doesn't solve the panning problem I have.
It'd be great if you can suggest whhat could solve this.

-Best,
nofrills

Offline

#6 2014-07-31 21:14:12

nofrills
Member
Registered: 2014-07-25
Posts: 2

Re: Using NVIDIA and Intel GPU simultaneously

Hi,
After a long troubleshooting session, schnoopay solved my problem. smile

It appears the monitor attached to the Intel GPU has to be on the leftmost one for the setup to work correctly.

Here's my working  xrandr script:

#!/bin/sh
xrandr --setprovideroutputsource 1 0
xrandr --output DVI-I-1 --primary --mode 1920x1200
xrandr --output DP-0 --right-of DVI-I-1 --mode 1280x1024
xrandr --output HDMI-1-0 --left-of DVI-I-1 --mode 1280x1024
xrandr --fb 4480x1200

Offline

#7 2016-12-05 23:28:05

Clump
Member
Registered: 2016-12-05
Posts: 1

Re: Using NVIDIA and Intel GPU simultaneously

I'm grave-robbing this thread and reanimating it - after days of trying to get my Nvidia & iGPU working on a triple-display setup, and having looked damned near everywhere (prevailing wisdom is, apparently, that it's 'totally impossible'), schnoopay's post has finally helped me get things working.

Specifically, the "nvidiaXineramaInfoOverride" option. Simply adding that line to the sample provided by Nvidia meant my monitor finally stopped acting as a mirror and actually extended the desktop.

I suspect nofrills' issue in only being able to put the monitor to the left was due to incorrectly set offsets - if you copy schnoopay's setup and don't modify that line much it's set up so the main display is in the middle. Here's my setting for two smaller monitors to the right of the main display:

Option "nvidiaXineramaInfoOverride" "1920x1080+0+0, 1280x1024+1920+0, 1280x1024+3200+0"

Modify the numbers after each first `+` so they're equivalent to the sum of the widths of the previous displays.

The xorg configuration file can also be made substantially smaller - some of the sections are unnecessary. I also don't need the Nvidia-specific hardware settings so I removed those (it actually seemed to improve the screen-tearing a little, could be my imagination) and the "ConstrainCursor" doesn't seem to be needed anymore, the cursor behaved fine without it.

My displays are setup as below - GTX580 and i7-2600K:

    Nvidia            Nvidia           Intel
1920x1080    1280x1024    1280x1024

Here's my entire xorg configuration file for the setup:

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "nvidiaXineramaInfoOverride" "1920x1080+0+0, 1280x1024+1920+0, 1280x1024+3200+0"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
EndSection
                                                                               
Section "Device"
    Identifier "intel"
    Driver "modesetting"
EndSection

And finally, everything can be started up with:

xrandr --setprovideroutputsource 1 0
xrandr --output HDMI-1-2 --right-of DVI-I-2 --mode 1280x1024

There's a little screen-tearing on all my displays, but I think that's inevitable. If it isn't I'd appreciate knowing.

Schnoopay, you're probably long gone, but if you do happen to see this - thanks a million; finding your post days ago would have saved me a crapload of time and frustration.

Last edited by Clump (2016-12-05 23:30:03)

Offline

#8 2016-12-06 22:32:41

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,858
Website

Re: Using NVIDIA and Intel GPU simultaneously

Thanks for sharing, Clump. I'm going to go ahead and close this old thread now.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB