You are not logged in.

#1 2016-12-29 08:30:45

olivier974
Member
Registered: 2016-12-29
Posts: 1

3 monitors 2 gpu (nvidia + intel i5)

Hi,

I am newbie and i need help to write my xorg.conf to extends 3 monitors with 2 gpu (nvidia + intel i5)

After a restart only 2 screens display.

The third monitor display after :

xrandr --setprovideroutputsource 1 0

Then I have to manually extend screens to properly arrange them. I can not save my configuration.

I tried this script but screens are not correctly extended (superimposed)

#!/bin/sh
xrandr --setprovideroutputsource 1 0
xrandr --output DVI-I-1 --primary --mode 1920x1080
xrandr --output VGA-1 --right-of DVI-I-1 --mode 1680x1050
xrandr --output DVI-I-0 --left-of DVI-I-1 --mode 1920x1080
randr --fb 4480x1200

I would like to have
left:1920x1080(nvidia-dvi-0), center:1680x1050(nvidia-dvi-1), right: 1920x1080(intel-vga-1 )

Thank you for your help

xorg.conf

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

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

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
EndSection
                                                                                
Section "Device"                                                                 
    Identifier "intel"                                                             
    Driver "modesetting"                                                             
EndSection                                                                              
                                                                                        
Section "Screen"                                                                           
    Identifier "intel"                                                                     
    Device "intel"                                                                            
EndSection
$ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x2aa cap: 0x1, Source Output crtcs: 4 outputs: 6 associated providers: 1 name:NVIDIA-0
Provider 1: id: 0x45 cap: 0x2, Sink Output crtcs: 2 outputs: 4 associated providers: 1 name:modesetting



$ xrandr -q
Screen 0: minimum 8 x 8, current 5520 x 1080, maximum 16384 x 16384
DVI-I-0 connected primary 1920x1080+1920+0 (normal left inverted right x axis y axis) 368mm x 207mm
   1920x1080     60.00*+
   1680x1050     59.95  
   1600x900      60.00  
   1400x1050     59.98  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x800      59.81  
   1280x720      60.00  
   1152x864      60.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   640x480       75.00    72.81    59.94  
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DVI-D-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
   1920x1080     60.00*+  50.00  
   1680x1050     59.95  
   1600x900      60.00  
   1440x900      59.89  
   1280x1024     75.02    60.02  
   1280x800      59.81  
   1280x720      60.00    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-1 disconnected (normal left inverted right x axis y axis)
VGA-1 connected 1680x1050+3840+30 (normal left inverted right x axis y axis) 430mm x 270mm
   1680x1050     59.95*+
   1280x1024     75.02    60.02  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   640x480       75.00    59.94  
   720x400       70.08  
HDMI-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
  1680x1050 (0x46) 146.250MHz -HSync +VSync
        h: width  1680 start 1784 end 1960 total 2240 skew    0 clock  65.29KHz
        v: height 1050 start 1053 end 1059 total 1089           clock  59.95Hz
  1280x1024 (0x47) 135.000MHz +HSync +VSync
        h: width  1280 start 1296 end 1440 total 1688 skew    0 clock  79.98KHz
        v: height 1024 start 1025 end 1028 total 1066           clock  75.02Hz
  1280x1024 (0x48) 108.000MHz +HSync +VSync
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock  63.98KHz
        v: height 1024 start 1025 end 1028 total 1066           clock  60.02Hz
  1152x864 (0x49) 108.000MHz +HSync +VSync
        h: width  1152 start 1216 end 1344 total 1600 skew    0 clock  67.50KHz
        v: height  864 start  865 end  868 total  900           clock  75.00Hz
  1024x768 (0x4a) 78.750MHz +HSync +VSync
        h: width  1024 start 1040 end 1136 total 1312 skew    0 clock  60.02KHz
        v: height  768 start  769 end  772 total  800           clock  75.03Hz
  1024x768 (0x4b) 65.000MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock  48.36KHz
        v: height  768 start  771 end  777 total  806           clock  60.00Hz
  800x600 (0x4c) 49.500MHz +HSync +VSync
        h: width   800 start  816 end  896 total 1056 skew    0 clock  46.88KHz
        v: height  600 start  601 end  604 total  625           clock  75.00Hz
  800x600 (0x4d) 40.000MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock  37.88KHz
        v: height  600 start  601 end  605 total  628           clock  60.32Hz
  640x480 (0x4e) 31.500MHz -HSync -VSync
        h: width   640 start  656 end  720 total  840 skew    0 clock  37.50KHz
        v: height  480 start  481 end  484 total  500           clock  75.00Hz
  640x480 (0x4f) 25.175MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.47KHz
        v: height  480 start  490 end  492 total  525           clock  59.94Hz
$ lsmod | grep nv
nvidia_drm             49152  3
nvidia_modeset        782336  4 nvidia_drm
nvidia              11870208  73 nvidia_modeset
drm_kms_helper        126976  2 i915,nvidia_drm
drm                   294912  7 i915,nvidia_drm,drm_kms_helper
$ lsmod | grep intel
intel_rapl             20480  0
intel_powerclamp       16384  0
kvm_intel             188416  0
kvm                   516096  1 kvm_intel
crc32c_intel           24576  0
ghash_clmulni_intel    16384  0
aesni_intel           167936  2
aes_x86_64             20480  1 aesni_intel
lrw                    16384  1 aesni_intel
glue_helper            16384  1 aesni_intel
ablk_helper            16384  1 aesni_intel
snd_hda_intel          32768  5
cryptd                 20480  3 ablk_helper,ghash_clmulni_intel,aesni_intel
intel_cstate           16384  0
snd_hda_codec         106496  4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hda_core           65536  5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
intel_rapl_perf        16384  0
intel_gtt              20480  1 i915
snd_pcm                90112  4 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi
snd                    69632  18 snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek,snd_pcm

Offline

#2 2016-12-29 13:38:32

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,920

Re: 3 monitors 2 gpu (nvidia + intel i5)

How are you starting X ?

I'm not sure what the randr command is supposed to achieve, but 4480x1200 doesn't match the 3 monitors surface area.
5520 x 1080 should be correct size for all 3 monitors together.

Last edited by Lone_Wolf (2016-12-29 13:40:06)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB