How to use two screens at the same time while I'm using FreeBSD.

Hello to everyone.

Actually I have two screens,but usually I use only one of them. The screen I use everyday with FreeBSD is attached to the HDMI port of the "VGA compatible controller: Intel Corporation CoffeeLake-S GT2 [UHD Graphics 630] (rev 02)" graphic chipset. And it works well. Sometimes,when I want to virtualize Linux,I attach the second screen to the HDMI port of the second GPU I have,the Nvidia Geforce RTX 2080 ti and in this way I can use even the second screen. But,what about to use it without to boot another OS ? This idea came to my mind from some time and I would like to gather some suggestions to understand how can I do this. I find very useful to drag and drop, with a proper tool, files and folders from the screen 1 to the screen 2,like I do in Windows and Linux. But I have no idea about how to do it in FreeBSD. It could be useful even when I want to make some 3d modelling using Blender on the first screen and using the second screen to watch some tutorial. Can someone give me some suggestions about some method,tecnique and tools to achieve this goal ? very thanks.
 
FWIW, when I worked with multimonitors, I used NVidia's GUI Config tool I think it's called nvidia-settings and you may have use sudo to save changes it makes in the configuration. It worked well for me.
 
And what about if I want to keep using the intel driver of my VGA compatible controller: Intel Corporation CoffeeLake-S GT2 [UHD Graphics 630] (rev 02)" graphic chipset ? Has Intel a similar tool like the NVidia one ? I ask this because I use a lot of virtual machines,so I haven't installed the nvidia driver on the system at all,because I don't need it. Will be the linux vm that needs the installation of the nvidia driver. If I can do it using the Intel graphic chipset,I'm non obliged to installl and deinstall the nvidia driver every time I want to have the multimonitor.
 
In reddit the user "kolepl" suggested to me to use xrandr and the tool ARrandR and I did it.

I really don't understand why,with this xorg.conf :

https://pastebin.ubuntu.com/p/pHNTYGBs33/

FreeBSD recognizes only the intel gpu :


Code:
xrandr --listproviders

Providers: number : 1 Provider 0: id: 0x43 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 3 outputs: 1 associated providers: 0 name:Intel



and I tried both these combinations in xorg.conf :



Code:
Identifier  "Card0"
Driver      "intel"
BusID       "PCI:0:2:0"
EndSection

AND

Section "Device"
Identifier  "Card1"
Driver      "nvidia"
BusID       "PCI:2:0:0"
EndSection


OR :

Section "Device"
Identifier  "Card1"
Driver      "modesetting"
BusID       "PCI:2:0:0"
EndSection

actually my monitor 1 is attached to the HDMI port of the intel gpu and the monitor 2 is attached to the HDMI port of the nvidia GPU.

Does not seems correct ? on FreeBSD I have installed these packages for the gpus :

1) xf86-video-intel-2.99.917.916_1,1 X.Org legacy driver for Intel integrated graphics chipsets

2) nvidia-driver-510.60.02 NVidia graphics card binary drivers for hardware OpenGL rendering


what else ? ARrandR recognizes only the HDMI-1 monitor. Monitor 2 is turned off.
 
Not sure if this is valuable information but all my systems have either an Nvidia GPU or an Intel integrated GPU. In all cases, I only use xrandr(1) to setup my monitors.

On the system I'm currently (with an Nvidia Quadro P5000):
Code:
#!/bin/sh

# Center monitor
xrandr --output DP-6 --mode 3840x2160

# Right monitor
xrandr --output DP-4 --right-of DP-6 --mode 2560x1440 --rotate right

# Left monitor
xrandr --output DP-0 --left-of DP-6 --mode 2560x1440 --rotate left

No fuckery with Nvidia tools or xorg.conf required.

xrandr -q provides the necessary per monitor/display/screen information.
 
The nvidia is actually a second card, not an extra GPU on the motherboard?
output of kldstat | grep nvidia to make sure the nvidia stuff is loaded? make sure nivdia.ko and nvidia-modeset.ko are loaded and in your rc.conf kld_list line.
What does /var/log/Xorg.0.log say about the devices detected?

"FWIW, when I worked with multimonitors, I used NVidia's GUI Config tool I think it's called nvidia-settings and you may have use sudo to save changes it makes in the configuration. It worked well for me."

It works for multiple monitors connected to the same Nvidia card via different ports, but probably won't help with screens across 2 different GPUs.
 
That is a good point SirDice. I'm hoping that if there is a conflict the packages/ports would be marked with CONFLICT so you can't shoot yourself in the foot.
 
Probably SirDice is right. I've added to rc.conf :

Code:
nvidia_load="YES"  
kld_load="nvidia.ko"
kld_load="nvidia-modeset.ko"

and then I've rebooted and :

Code:
# xrandr --listproviders

Providers: number : 1
Provider 0: id: 0x43 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 3 outputs: 1 associated providers: 0 name:Intel

and :

Code:
# kldstat | grep nvidia
nothing.

I forgot to say that on my BIOS I have chosen the Intel gpu as primary. What about to buy an HDMI splitter that allows me to attach the two monitors only to the intel HDMI port ?
 
on /etc/rc.conf :

Code:
kld_load="nvidia.ko"
kld_load="nvidia-modeset.ko"

REBOOT :

Code:
# kldstat

Id Refs Address                Size Name
1  133 0xffffffff80200000  1f30590 kernel
3    1 0xffffffff82147000   5848b8 vmm.ko
4    3 0xffffffff826cc000    929d8 vboxdrv.ko
5    1 0xffffffff8275f000    29d28 fusefs.ko
6    1 0xffffffff82789000   5ec1d8 zfs.ko
7    1 0xffffffff82d76000     af68 cryptodev.ko
8    2 0xffffffff82d81000     82b0 bridgestp.ko
9    1 0xffffffff82d8a000     40f8 nmdm.ko
10    1 0xffffffff82d90000     feb0 if_bridge.ko
11    1 0xffffffff83210000     3530 fdescfs.ko
12    2 0xffffffff83214000     4240 vboxnetflt.ko
13    2 0xffffffff83219000     aac8 netgraph.ko
14    1 0xffffffff83224000     31c8 ng_ether.ko
15    1 0xffffffff83228000     55e0 vboxnetadp.ko
16    1 0xffffffff8322e000     2220 cpuctl.ko
17    1 0xffffffff83231000     6730 cuse.ko
18    1 0xffffffff83238000     3378 acpi_wmi.ko
19    1 0xffffffff8323c000     3250 ichsmb.ko
20    1 0xffffffff83240000     2180 smbus.ko
21    1 0xffffffff83243000     2110 pchtherm.ko
22    1 0xffffffff83246000     2340 uhid.ko
23    1 0xffffffff83249000     4350 ums.ko
24    1 0xffffffff8324e000     3380 usbhid.ko
25    1 0xffffffff83252000     31f8 hidbus.ko
26    1 0xffffffff83256000     e538 snd_uaudio.ko
27    1 0xffffffff83265000     3320 wmt.ko
28    1 0xffffffff83269000     2a08 mac_ntpd.ko
29    1 0xffffffff8326c000    38070 linux.ko
30    4 0xffffffff832a5000    10ab0 linux_common.ko
31    1 0xffffffff832b6000    32208 linux64.ko
32    1 0xffffffff832e9000     2260 pty.ko
33    1 0xffffffff832ec000     639c linprocfs.ko
34    1 0xffffffff832f3000     3284 linsysfs.ko
35    1 0xffffffff832f7000     9ea0 tmpfs.ko
36    1 0xffffffff83301000     4700 nullfs.ko
37    1 0xffffffff83306000   158438 i915kms.ko
38    1 0xffffffff8345f000    7f020 drm.ko
39    2 0xffffffff834df000     cbc8 linuxkpi_gplv2.ko

I don't see those module loaded. why ?
 
I'm hoping that if there is a conflict the packages/ports would be marked with CONFLICT so you can't shoot yourself in the foot.
I think they solved this with some clever use of libmap.conf(5). But lib/libEGL-NVIDIA.so for example is a modified version of lib/libEGL.so from Xorg. I presume that the AMD/Intel driver actually uses that one. But you still have two of the same libraries loaded when both drivers are active. It works for each independently, but I have no idea what the effect is when both are loaded.
 
should I also add :

Code:
/boot/loader.conf
    
nvidia_load="YES"

?

what the difference between "kld_list" and "kld_load" ? it confuses me !
 
This is what happens :

Code:
# kldstat | grep nvidia

 3    2 0xffffffff826b6000  2c4e1c0 nvidia.ko
19    1 0xffffffff86031000    fd310 nvidia-modeset.ko

# xrandr --listproviders

Providers: number : 1
Provider 0: id: 0x43 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 3 outputs: 1 associated providers: 0 name:Intel

monitor 2 turned off and xorg.conf like this :

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

Section "Device"
Identifier  "Card1"
Driver      "modesetting"
BusID       "PCI:2:0:0"
EndSection
 
should I also add :
Questions like these can usually be answered by reading the documentation of the corresponding driver or port.
In case of x11/nvidia-driver, the package message explains how to use it:

jbo@fbsd_beefy01 /u/h/jbo> pkg info -D nvidia-driver
nvidia-driver-510.60.02:
On install:
To use these drivers, make sure that you have loaded the NVidia kernel
module, by running

# kldload nvidia (or nvidia-modeset, see below)

on the command line, or by putting ``nvidia'' (or ``nvidia-modeset'',
see below again) on ``kld_list'' variable in /etc/rc.conf, either manually
or by running

# sysrc kld_list+=nvidia (or nvidia-modeset, see below)

If you build this port with FreeBSD AGP GART driver, make sure you have
agp.ko kernel module installed and loaded, since nvidia.ko will depend
on it, or have your kernel compiled with "device agp". Otherwise, the
NVidia kernel module will not load. Also, please set correct value for
``Option "NvAGP"'' in ``Device'' section of your X11 configuration file.

When building with Linux compatibility support, make sure that linux.ko
module is available as well (or have it compiled in kernel). It can be
loaded via /boot/loader.conf, or later in the boot process if you add

linux_enable="YES"

to your /etc/rc.conf.

If X.org cannot start and reports

(EE) NVIDIA(0): Failed to obtain a shared memory identifier.

in /var/log/Xorg.0.log while actually you have ``options SYSVSHM''
enabled in kernel, the sysctl ``kern.ipc.shmall'' should be increased.

Starting with version 358.09, some important functionality of the driver
has been broken out into a separate kernel module, nvidia-modeset.ko.
Users that experience hangs when starting X11 server, or observe

(II) NVIDIA(0): Validated MetaModes:
(II) NVIDIA(0): "NULL"

in /var/log/Xorg.0.log should replace ``nvidia'' with ``nvidia-modeset''
in their /boot/loader.conf or /etc/rc.conf configuration files, depending
on how they prefer to load NVidia driver kernel module.

See /usr/local/share/doc/NVIDIA_GLX-1.0/README for more information.
The package messages are displayed when installing a package or can be displayed via pkg info -D as shown above.
 
kld_list is the variable name in rc.conf that tells the init system to "load these modules".
They get loaded after the loader, but before the system is done booting. I prefer to not add video stuff to loader.conf (that's just me).

What does /var/log/Xorg.0.log say about the nvidia card? a grep -v driver /var/log/Xorg.0.log?
 
I use 3 monitors, 2 Nvidia and one Intel
In mi case I only load the nvidia module at boot, and when start Xorg the intel module is load
my xorg.conf:

Code:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 375.26  (root@110amd64-quarterly-job-24)  Sun Jan  8 01:33:48 UTC 2017

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 375.26  (root@110amd64-quarterly-job-03)  Tue Jan  3 19:51:44 UTC 2017

Section "ServerLayout"

#    Screen      1  "Screen1" RightOf "Screen0"
    Identifier     "X.org Configured"
#    Screen      1  "Screen0" RightOf "Screen2"
 #   Screen      0  "Screen1" 0 0
  #  Screen      2  "Screen2" RightOf "Screen0"

 
#    Screen      1  "Screen0" LeftOf "Screen0 #derecha"
#    Screen      0  "Screen1" 0 0 #centro
#   Screen      2  "Screen2" RightOf "Screen1"

    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "Screen0"
    Screen      2  "Screen2" RightOf "Screen1"





    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
    Option         "Xinerama" "0"
EndSection

Section "Files"
    ModulePath      "/usr/local/lib/xorg/modules"
    FontPath        "/usr/local/share/fonts/misc/"
    FontPath        "/usr/local/share/fonts/TTF/"
    FontPath        "/usr/local/share/fonts/OTF/"
    FontPath        "/usr/local/share/fonts/Type1/"
    FontPath        "/usr/local/share/fonts/100dpi/"
    FontPath        "/usr/local/share/fonts/75dpi/"
    FontPath "/usr/local/share/fonts/terminus-font/"
FontPath "/usr/local/share/fonts/TerminusTTF/"
FontPath "/usr/local/share/fonts/webfonts/"
EndSection


#Section "Extensions"
#Option "SHAPE" "Disable"
#Option "SYNC" "Disable"
#Option "COMPOSITE" "Disable"
#Option "DRI3" "Disable"
#Option "DOMS" "Disable"


#EndSection

Section "Module"
    Load           "glx"
Load "freetype"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/sysmouse"
    Option         "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
#    ModelName      "SKYDATA S.P.A. SKYWORTH"
# Option    "DPI"  "100 x 100"
 #   HorizSync       15.0 - 80.0
  #  VertRefresh     49.0 - 76.0
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "LG Electronics W2243"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
EndSection

Section "Monitor"
    Identifier   "Monitor2"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
EndSection




Section "Device"

        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "SWcursor"               # [<bool>]
        #Option     "HWcursor"               # [<bool>]
        #Option     "NoAccel"                # [<bool>]
        #Option     "ShadowFB"               # [<bool>]
        #Option     "UseFBDev"               # [<bool>]
        #Option     "Rotate"                 # [<str>]
        #Option     "VideoKey"               # <i>
        #Option     "FlatPanel"              # [<bool>]
        #Option     "FPDither"               # [<bool>]
        #Option     "CrtcNumber"             # <i>
        #Option     "FPScale"                # [<bool>]
        #Option     "FPTweak"                # <i>
        #Option     "DualHead"               # [<bool>]
#Option        "AIGLX"
#Option        "XAANoOffscreenPixmaps"    "True"
#Option      "MigrationHeuristic"        "greedy"
#Option        "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerDefault=0x3; PowerMizerDefaultAC=0x1"
#Option "TripleBuffer" "1"
#Option "XAANoOffscreenPixmaps" "true"

#Option "DRI" "true"
#Option "RenderAccel" "True"

#Option "NvAGP" "1"


#Option "NoLogo" "0"
#Option "EmulatedOverlaysTimerMs" "1"

    Identifier     "Card0"
    Driver         "nvidia"
    BusID          "PCI:1:0:0"
EndSection

Section "Device"

        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "NoAccel"                # [<bool>]
        #Option     "AccelMethod"            # <str>
        #Option     "Backlight"              # <str>
        #Option     "DRI"                    # <str>
        #Option     "ColorKey"               # <i>
        #Option     "VideoKey"               # <i>
        #Option     "Tiling"                 # [<bool>]
        #Option     "LinearFramebuffer"      # [<bool>]
        #Option     "SwapbuffersWait"        # [<bool>]
        #Option     "TripleBuffer"           # [<bool>]
        #Option     "XvPreferOverlay"        # [<bool>]
        #Option     "HotPlug"                # [<bool>]
        #Option     "ReprobeOutputs"         # [<bool>]
        #Option     "XvMC"                   # [<bool>]
        #Option     "ZaphodHeads"            # <str>
        #Option     "TearFree"               # [<bool>]
        #Option     "PerCrtcPixmaps"         # [<bool>]
        #Option     "FallbackDebug"          # [<bool>]
        #Option     "DebugFlushBatches"      # [<bool>]
        #Option     "DebugFlushCaches"       # [<bool>]
        #Option     "DebugWait"              # [<bool>]
        #Option     "BufferCache"            # [<bool>]
#Option        "AIGLX"
#Option        "XAANoOffscreenPixmaps"    "True"
#Option      "MigrationHeuristic"        "greedy"
#Option "NvAGP" "0"
#Option "TripleBuffer" "1"
#Option "XAANoOffscreenPixmaps" "true"
#Option "DRI" "true"
#Option "RenderAccel" "True"
#Option        "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerDefault=0x3; PowerMizerDefaultAC=0x1"

#Option "NvAGP" "1"
#Option "NoLogo" "0"
#Option "EmulatedOverlaysTimerMs" "1"


    Identifier     "Card1"
    Driver         "nvidia"
    BusID          "PCI:0:2:0"
EndSection



Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "NoAccel"                # [<bool>]
#        Option     "AccelMethod"    "exa"        # <str>
        #Option     "Backlight"              # <str>
        Option     "DRI"     "3"               # <str>
        #Option     "ColorKey"               # <i>
        #Option     "VideoKey"               # <i>
        #Option     "Tiling"                 # [<bool>]
        #Option     "LinearFramebuffer"      # [<bool>]
        #Option     "SwapbuffersWait"        # [<bool>]
        #Option     "TripleBuffer"           # [<bool>]
        #Option     "XvPreferOverlay"        # [<bool>]
        #Option     "HotPlug"                # [<bool>]
        #Option     "ReprobeOutputs"         # [<bool>]
        #Option     "XvMC"                   # [<bool>]
        #Option     "ZaphodHeads"            # <str>
 #       Option     "TearFree"  "false"             # [<bool>]
        #Option     "PerCrtcPixmaps"         # [<bool>]
        #Option     "FallbackDebug"          # [<bool>]
        #Option     "DebugFlushBatches"      # [<bool>]
        #Option     "DebugFlushCaches"       # [<bool>]
        #Option     "DebugWait"              # [<bool>]
        #Option     "BufferCache"            # [<bool>]
#Option        "AIGLX"
#Option        "XAANoOffscreenPixmaps"    "True"
#Option      "MigrationHeuristic"        "greedy"
    Identifier  "Card2"
    Driver      "intel"
    BusID       "PCI:0:2:0"
EndSection







Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 210"
    BusID          "PCI:1:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 210"

    BusID          "PCI:1:0:0"
    Screen          1
EndSection




Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "metamodes" "HDMI-0: 1360x765 +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         "nvidiaXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "DVI-I-0: nvidia-auto-select +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


Section "Screen"
    Identifier "Screen2"
    Device     "Card2"
    Monitor    "Monitor2"
        DefaultDepth 24

    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

I have 3 independent monitors
I forget, you must enable the bios option for use multiple monitors , for nvidia and intel works together
 
kld_list is the variable name in rc.conf that tells the init system to "load these modules".
They get loaded after the loader, but before the system is done booting. I prefer to not add video stuff to loader.conf (that's just me).

What does /var/log/Xorg.0.log say about the nvidia card? a grep -v driver /var/log/Xorg.0.log?

 
I think that I'm on the right track. I've modified the xorg.conf file like this :

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

Section "Device"
Identifier  "Card1"
Driver      "nvidia"
BusID       "PCI:2:0:0"
EndSection

and now the monitor 2 is turned on and I can see the mouse pointer that can go on that monitor,BUT there is nothing inside of it,it is totally black. Any idea why is empty and black ? This is the new log file :

 
I use 3 monitors, 2 Nvidia and one Intel
In mi case I only load the nvidia module at boot, and when start Xorg the intel module is load
my xorg.conf:

Code:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 375.26  (root@110amd64-quarterly-job-24)  Sun Jan  8 01:33:48 UTC 2017

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 375.26  (root@110amd64-quarterly-job-03)  Tue Jan  3 19:51:44 UTC 2017

Section "ServerLayout"

#    Screen      1  "Screen1" RightOf "Screen0"
    Identifier     "X.org Configured"
#    Screen      1  "Screen0" RightOf "Screen2"
 #   Screen      0  "Screen1" 0 0
  #  Screen      2  "Screen2" RightOf "Screen0"

 
#    Screen      1  "Screen0" LeftOf "Screen0 #derecha"
#    Screen      0  "Screen1" 0 0 #centro
#   Screen      2  "Screen2" RightOf "Screen1"

    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "Screen0"
    Screen      2  "Screen2" RightOf "Screen1"





    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
    Option         "Xinerama" "0"
EndSection

Section "Files"
    ModulePath      "/usr/local/lib/xorg/modules"
    FontPath        "/usr/local/share/fonts/misc/"
    FontPath        "/usr/local/share/fonts/TTF/"
    FontPath        "/usr/local/share/fonts/OTF/"
    FontPath        "/usr/local/share/fonts/Type1/"
    FontPath        "/usr/local/share/fonts/100dpi/"
    FontPath        "/usr/local/share/fonts/75dpi/"
    FontPath "/usr/local/share/fonts/terminus-font/"
FontPath "/usr/local/share/fonts/TerminusTTF/"
FontPath "/usr/local/share/fonts/webfonts/"
EndSection


#Section "Extensions"
#Option "SHAPE" "Disable"
#Option "SYNC" "Disable"
#Option "COMPOSITE" "Disable"
#Option "DRI3" "Disable"
#Option "DOMS" "Disable"


#EndSection

Section "Module"
    Load           "glx"
Load "freetype"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/sysmouse"
    Option         "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
#    ModelName      "SKYDATA S.P.A. SKYWORTH"
# Option    "DPI"  "100 x 100"
 #   HorizSync       15.0 - 80.0
  #  VertRefresh     49.0 - 76.0
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "LG Electronics W2243"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
EndSection

Section "Monitor"
    Identifier   "Monitor2"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
EndSection




Section "Device"

        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "SWcursor"               # [<bool>]
        #Option     "HWcursor"               # [<bool>]
        #Option     "NoAccel"                # [<bool>]
        #Option     "ShadowFB"               # [<bool>]
        #Option     "UseFBDev"               # [<bool>]
        #Option     "Rotate"                 # [<str>]
        #Option     "VideoKey"               # <i>
        #Option     "FlatPanel"              # [<bool>]
        #Option     "FPDither"               # [<bool>]
        #Option     "CrtcNumber"             # <i>
        #Option     "FPScale"                # [<bool>]
        #Option     "FPTweak"                # <i>
        #Option     "DualHead"               # [<bool>]
#Option        "AIGLX"
#Option        "XAANoOffscreenPixmaps"    "True"
#Option      "MigrationHeuristic"        "greedy"
#Option        "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerDefault=0x3; PowerMizerDefaultAC=0x1"
#Option "TripleBuffer" "1"
#Option "XAANoOffscreenPixmaps" "true"

#Option "DRI" "true"
#Option "RenderAccel" "True"

#Option "NvAGP" "1"


#Option "NoLogo" "0"
#Option "EmulatedOverlaysTimerMs" "1"

    Identifier     "Card0"
    Driver         "nvidia"
    BusID          "PCI:1:0:0"
EndSection

Section "Device"

        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "NoAccel"                # [<bool>]
        #Option     "AccelMethod"            # <str>
        #Option     "Backlight"              # <str>
        #Option     "DRI"                    # <str>
        #Option     "ColorKey"               # <i>
        #Option     "VideoKey"               # <i>
        #Option     "Tiling"                 # [<bool>]
        #Option     "LinearFramebuffer"      # [<bool>]
        #Option     "SwapbuffersWait"        # [<bool>]
        #Option     "TripleBuffer"           # [<bool>]
        #Option     "XvPreferOverlay"        # [<bool>]
        #Option     "HotPlug"                # [<bool>]
        #Option     "ReprobeOutputs"         # [<bool>]
        #Option     "XvMC"                   # [<bool>]
        #Option     "ZaphodHeads"            # <str>
        #Option     "TearFree"               # [<bool>]
        #Option     "PerCrtcPixmaps"         # [<bool>]
        #Option     "FallbackDebug"          # [<bool>]
        #Option     "DebugFlushBatches"      # [<bool>]
        #Option     "DebugFlushCaches"       # [<bool>]
        #Option     "DebugWait"              # [<bool>]
        #Option     "BufferCache"            # [<bool>]
#Option        "AIGLX"
#Option        "XAANoOffscreenPixmaps"    "True"
#Option      "MigrationHeuristic"        "greedy"
#Option "NvAGP" "0"
#Option "TripleBuffer" "1"
#Option "XAANoOffscreenPixmaps" "true"
#Option "DRI" "true"
#Option "RenderAccel" "True"
#Option        "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerDefault=0x3; PowerMizerDefaultAC=0x1"

#Option "NvAGP" "1"
#Option "NoLogo" "0"
#Option "EmulatedOverlaysTimerMs" "1"


    Identifier     "Card1"
    Driver         "nvidia"
    BusID          "PCI:0:2:0"
EndSection



Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "NoAccel"                # [<bool>]
#        Option     "AccelMethod"    "exa"        # <str>
        #Option     "Backlight"              # <str>
        Option     "DRI"     "3"               # <str>
        #Option     "ColorKey"               # <i>
        #Option     "VideoKey"               # <i>
        #Option     "Tiling"                 # [<bool>]
        #Option     "LinearFramebuffer"      # [<bool>]
        #Option     "SwapbuffersWait"        # [<bool>]
        #Option     "TripleBuffer"           # [<bool>]
        #Option     "XvPreferOverlay"        # [<bool>]
        #Option     "HotPlug"                # [<bool>]
        #Option     "ReprobeOutputs"         # [<bool>]
        #Option     "XvMC"                   # [<bool>]
        #Option     "ZaphodHeads"            # <str>
 #       Option     "TearFree"  "false"             # [<bool>]
        #Option     "PerCrtcPixmaps"         # [<bool>]
        #Option     "FallbackDebug"          # [<bool>]
        #Option     "DebugFlushBatches"      # [<bool>]
        #Option     "DebugFlushCaches"       # [<bool>]
        #Option     "DebugWait"              # [<bool>]
        #Option     "BufferCache"            # [<bool>]
#Option        "AIGLX"
#Option        "XAANoOffscreenPixmaps"    "True"
#Option      "MigrationHeuristic"        "greedy"
    Identifier  "Card2"
    Driver      "intel"
    BusID       "PCI:0:2:0"
EndSection







Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 210"
    BusID          "PCI:1:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 210"

    BusID          "PCI:1:0:0"
    Screen          1
EndSection




Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "metamodes" "HDMI-0: 1360x765 +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         "nvidiaXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "DVI-I-0: nvidia-auto-select +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


Section "Screen"
    Identifier "Screen2"
    Device     "Card2"
    Monitor    "Monitor2"
        DefaultDepth 24

    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

I have 3 independent monitors
I forget, you must enable the bios option for use multiple monitors , for nvidia and intel works together

in my BIOS there isn't the option to enable the multimonitor. I can only choose which GPU will be primary.
 
Does xrandr see 2 screens now? You may have to do something in your desktop environment to tell it about the extra screen.
 
Back
Top