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

And now I have disabled the intel gpu from the bios. Nothing is changed. The samsung monitor is always turned off (and my mouse can't even go across its screen) and the AOC is on and both are connected to the 1060. One monitor works,yes,it's the AOC. I have already tried to go in Linux and Windows. Both the monitor work like a charme.
 
So you are trying with Sir Dice config and nvidia-settings right?
And the second monitor is switched on?

When I have tried the second kind of configuration (two monitors attached to one only gpu (1060),the second monitor never turned on. It worked better when I tried one monitor on the 1060 and the other one on the intel gpu. Anyway,even if it is turned off,it is detected. With the intel gpu and the 1060 it wasn't even detected.
 
I wanna write here what I did as a reminder,before to reboot. I've tried to adapt the solution for FreeBSD,since it is tailored for Linux. This is what I did :

Code:
a) # pkg remove xf86-video-intel

b) /etc/rc.conf : kld_list="nvidia nvidia-modeset i915kms"

c) in /boot/loader.conf : pptdevs="2/0/0 2/0/1 2/0/2 2/0/3"

d) /etc/X11/xorg.conf :



Section "ServerLayout"
Identifier "layout"
Screen  "ScreenU"
EndSection

Section "Device"
Identifier "nvidia"
Driver "nvidia"
maybe : BusID          "PCI:1:0:0"
EndSection
 
Section "Screen"
Identifier "ScreenU"
EndSection

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

I've attached the samsung monitor to the HDMI port of the Intel gpu and the AOC to the DP of the nvidia GTX 1060.

Do you see some mistakes ?
 
This is the xorg.conf file which works partially :

Code:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig

# nvidia-xconfig:  version 470.86


Section "ServerLayout"

    Identifier     "Layout0"

    Screen      0  "Screen0" 1920 1080

    Screen      1  "Screen1" 1280 1024

    InputDevice    "Keyboard0" "CoreKeyboard"

    InputDevice    "Mouse0" "CorePointer"

EndSection


Section "Files"

EndSection


Section "InputDevice"

    # generated from default

    Identifier     "Mouse0"

    Driver         "mouse"

    Option         "Protocol" "auto"

    Option         "Device" "/dev/sysmouse"

    Option         "Emulate3Buttons" "no"

    Option         "ZAxisMapping" "4 5 6 7"

EndSection


Section "InputDevice"

    # generated from default

    Identifier     "Keyboard0"

    Driver         "kbd"

EndSection


Section "Monitor"

    Identifier     "Monitor0"

    VendorName     "AOC"

    ModelName      "AOC"

    Option         "DPMS"

EndSection


Section "Monitor"

    Identifier     "Monitor1"

    VendorName     "Samsung"

    ModelName      "SynchMaster"

    Option         "DPMS"

EndSection


Section "Device"

    Option         "UseDisplayDevice" "DP-0"

    Identifier     "Device0"

    Driver         "nvidia"

    VendorName     "NVIDIA Corporation"

    BusID          "PCI:1:0:0"

EndSection


Section "Device"

    Option         "UseDisplayDevice" "HDMI-0"

    Identifier     "Device1"

    Driver         "modesetting"

    VendorName     "Intel"

    BusID          "PCI:0:2:0"

EndSection


Section "Screen"

    Identifier     "Screen0"

    Device         "Device0"

    Monitor        "Monitor0"

    DefaultDepth    24

    SubSection     "Display"

    Depth           24

    EndSubSection

EndSection


Section "Screen"

    Identifier     "Screen1"

    Device         "Device1"

    Monitor        "Monitor1"

    DefaultDepth    24

    SubSection     "Display"

    Depth            24

    EndSubSection

EndSection

it works partially because I've reached the situation I had at the beginning,when I'd used the old intel driver. So,using i915kms in modesetting mode or the old xf86-video-intel driver (inside xorg.conf the driver is called "intel" ) produce the same situation. My mouse can go across the Secondary screen,but HDMI-0 is disconnected. I would like to run xfce4 there,but I can't. I can export the konsole and I can run chrome on the secondary monitor,but firefox can't be exported such as a lot of other applications will run only on the DP-0 monitor.

Code:
# xrandr -q


Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
DVI-D-0 disconnected (normal left inverted right x axis y axis)
DP-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
   1920x1080     60.00*+  59.94    50.00
   1680x1050     59.95
   1440x900      59.89
   1280x1024     75.02    60.02
   1280x960      60.00
   1280x720      60.00    59.94    50.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    59.93
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 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)

there is no way. Today I've attached the two monitors to one only gpu (nvidia 1060) and it also didn't work.
 
Tenacity always win. And we have a lot. Our fuel is the "love" we feel for FreeBSD,I think. With the help of you all I've found the working configuration. Now I have two monitors connected :

Code:
# xrandr -q

Screen 0: minimum 8 x 8, current 3200 x 1080, maximum 32767 x 32767
DVI-D-0 disconnected (normal left inverted right x axis y axis)
DP-0 connected 1920x1080+1280+0 (normal left inverted right x axis y axis) 598mm x 336mm
   1920x1080     60.00*+  59.94    50.00
   1680x1050     59.95
   1440x900      59.89
   1280x1024     75.02    60.02
   1280x960      60.00
   1280x720      60.00    59.94    50.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    59.93
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 338mm x 270mm
   1280x1024     60.02*+  75.02
   1920x1080     59.94
   1280x960      60.00
   1280x720      59.94
   1152x864      75.00
   1024x768      75.03    70.07    60.00
   800x600       75.00    72.19    60.32    56.25
   720x480       59.94    59.94
   640x480       75.00    72.81    59.94
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)

And Infact I can move the windows from a screen to another one. I've even created some application launcher on the monitor 2. What I don't know how to do is how to create a new taskbar at the bottom of the monitor 2 (HDMI-0). I've been able only to create the thunar,firefox and konsole launchers. Another thing to change is to invert the monitors. I mean. As soon as FreeBSD boot,I see the boot messages on the HDMI-0 monitor (the samsung synchmaster),instead I want to see them on the AOC monitor. Later,when FreeBSD is ready to be used and the desktop manager has been loaded on the samsung screen,it enables also the AOC monitor. I would like to do the opposite. And the last thing that it's not so good is that if I want to use the monitor that's in front of my eyes (AOC) I should move the mouse on the right side of the monitor that's on my right (samsung synchmaster). Anyway,this is the xorg.conf file that I have created :

Code:
Section "ServerLayout"

    Identifier     "X.org Configured"

    Screen      0  "Screen0" 0 0

    Screen      1  "Screen1" RightOf "Screen0"

    InputDevice    "Mouse0" "CorePointer"

    InputDevice    "Keyboard0" "CoreKeyboard"

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     "catalogue:/usr/local/etc/X11/fontpath.d"

EndSection


Section "Module"

    Load  "glx"

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   "Monitor Vendor"

    ModelName    "Monitor Model"

EndSection


Section "Monitor"

    Identifier   "Monitor1"

    VendorName   "Monitor Vendor"

    ModelName    "Monitor Model"

EndSection


Section "Device"

Identifier  "Card0"

Driver      "nvidia"

BusID       "PCI:1:0:0"

EndSection


Section "Screen"

    Identifier "Screen0"

    Device     "Card0"

    Monitor    "Monitor0"

    SubSection "Display"

        Viewport   0 0

        Depth     1

    EndSubSection

    SubSection "Display"

        Viewport   0 0

        Depth     4

    EndSubSection

    SubSection "Display"

        Viewport   0 0

        Depth     8

    EndSubSection

    SubSection "Display"

        Viewport   0 0

        Depth     15

    EndSubSection

    SubSection "Display"

        Viewport   0 0

        Depth     16

    EndSubSection

    SubSection "Display"

        Viewport   0 0

        Depth     24

    EndSubSection

EndSection


Section "Screen"

    Identifier "Screen1"

    Device     "Card0"

    Monitor    "Monitor1"

    SubSection "Display"

        Viewport   0 0

        Depth     1

    EndSubSection

    SubSection "Display"

        Viewport   0 0

        Depth     4

    EndSubSection

    SubSection "Display"

        Viewport   0 0

        Depth     8

    EndSubSection

    SubSection "Display"

        Viewport   0 0

        Depth     15

    EndSubSection

    SubSection "Display"

        Viewport   0 0

        Depth     16

    EndSubSection

    SubSection "Display"

        Viewport   0 0

        Depth     24

    EndSubSection

EndSection
 
Tenacity always win. And we have a lot. Our fuel is the "love" we feel for FreeBSD,I think. With the help of you all I've found the working configuration. Now I have two monitors connected :

Code:
# xrandr -q

Screen 0: minimum 8 x 8, current 3200 x 1080, maximum 32767 x 32767
DVI-D-0 disconnected (normal left inverted right x axis y axis)
DP-0 connected 1920x1080+1280+0 (normal left inverted right x axis y axis) 598mm x 336mm
   1920x1080     60.00*+  59.94    50.00
   1680x1050     59.95
   1440x900      59.89
   1280x1024     75.02    60.02
   1280x960      60.00
   1280x720      60.00    59.94    50.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    59.93
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 338mm x 270mm
   1280x1024     60.02*+  75.02
   1920x1080     59.94
   1280x960      60.00
   1280x720      59.94
   1152x864      75.00
   1024x768      75.03    70.07    60.00
   800x600       75.00    72.19    60.32    56.25
   720x480       59.94    59.94
   640x480       75.00    72.81    59.94
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)

And Infact I can move the windows from a screen to another one. I've even created some application launcher on the monitor 2. What I don't know how to do is how to create a new taskbar at the bottom of the monitor 2 (HDMI-0). I've been able only to create the thunar,firefox and konsole launchers. Another thing to change is to invert the monitors. I mean. As soon as FreeBSD boot,I see the boot messages on the HDMI-0 monitor (the samsung synchmaster),instead I want to see them on the AOC monitor. Later,when FreeBSD is ready to be used and the desktop manager has been loaded on the samsung screen,it enables also the AOC monitor. I would like to do the opposite. And the last thing that it's not so good is that if I want to use the monitor that's in front of my eyes (AOC) I should move the mouse on the right side of the monitor that's on my right (samsung synchmaster). Anyway,this is the xorg.conf file that I have created :

Code:
Section "ServerLayout"

    Identifier     "X.org Configured"

    Screen      0  "Screen0" 0 0

    Screen      1  "Screen1" RightOf "Screen0"

    InputDevice    "Mouse0" "CorePointer"

    InputDevice    "Keyboard0" "CoreKeyboard"

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     "catalogue:/usr/local/etc/X11/fontpath.d"

EndSection


Section "Module"

    Load  "glx"

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   "Monitor Vendor"

    ModelName    "Monitor Model"

EndSection


Section "Monitor"

    Identifier   "Monitor1"

    VendorName   "Monitor Vendor"

    ModelName    "Monitor Model"

EndSection


Section "Device"

Identifier  "Card0"

Driver      "nvidia"

BusID       "PCI:1:0:0"

EndSection


Section "Screen"

    Identifier "Screen0"

    Device     "Card0"

    Monitor    "Monitor0"

    SubSection "Display"

        Viewport   0 0

        Depth     1

    EndSubSection

    SubSection "Display"

        Viewport   0 0

        Depth     4

    EndSubSection

    SubSection "Display"

        Viewport   0 0

        Depth     8

    EndSubSection

    SubSection "Display"

        Viewport   0 0

        Depth     15

    EndSubSection

    SubSection "Display"

        Viewport   0 0

        Depth     16

    EndSubSection

    SubSection "Display"

        Viewport   0 0

        Depth     24

    EndSubSection

EndSection


Section "Screen"

    Identifier "Screen1"

    Device     "Card0"

    Monitor    "Monitor1"

    SubSection "Display"

        Viewport   0 0

        Depth     1

    EndSubSection

    SubSection "Display"

        Viewport   0 0

        Depth     4

    EndSubSection

    SubSection "Display"

        Viewport   0 0

        Depth     8

    EndSubSection

    SubSection "Display"

        Viewport   0 0

        Depth     15

    EndSubSection

    SubSection "Display"

        Viewport   0 0

        Depth     16

    EndSubSection

    SubSection "Display"

        Viewport   0 0

        Depth     24

    EndSubSection

EndSection
Im surprised it works as you already had very similar configs done.
Still what I’d use is remove all configs, as everything is auto configured now. Only one thing you should put in your config been posted several times in this thread by multiple people, and it include only the driver section. No server layout section, because if you add it you have to add whole screen configuration manually.
This whole thread is like watching blind person asking other people how colors look like.
 
Im surprised it works as you already had very similar configs done.
Still what I’d use is remove all configs, as everything is auto configured now. Only one thing you should put in your config been posted several times in this thread by multiple people, and it include only the driver section. No server layout section, because if you add it you have to add whole screen configuration manually.
This whole thread is like watching blind person asking other people how colors look like.

----> This whole thread is like watching blind person asking other people how colors look like :

I don't understand this.

I think that the devil is on the details. So,if you look carefully,maybe you will see some little differences between the configurations that haven't worked and this.

----> Only one thing you should put in your config been posted several times in this thread by multiple people, and it include only the driver section.

yes,I did that already. It is in some old message. Did u read old messages ?

---> Still what I’d use is remove all configs, as everything is auto configured now.

thanks. I did this,also. It is in some old message. Maybe you have read old messages too fast.

Man,can I ask you a little favor ? can you read some of the old messages ? I really dislike that you scold me because In your opinion I shouldn't do (or I should do) something,but you make a mistake,because the task that I should do,I have usually already tried it,but you can't know this,because you usually don't do that. So,in your eyes I become like someone that does not want to follow the suggestions,but this is not true. I've already followed the suggestions that have been given to me,when you weren't connected here. After having said that,I have already tried without xorg.conf and with the small xorg.conf written by SirDice but it didn't work.
 
Anyway it seems there is a bug. If I turn off one monitor,all the icons on the desktop and the background images applied are broken and when I move a window from a screen to another one I see that it will not be of the same size of the screen anymore. I presume that if I turn off a monitor physically,it will be turned off also virtually. And when I turn it on again,it remains turned off virtually.
 
Top