Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jul 2022 12:08:27 +0200
From:      Mario Marietto <marietto2008@gmail.com>
To:        freebsd-x11@freebsd.org
Subject:   Problem with xorg tryng to dual head setup with two graphics cards (intel and nvidia)
Message-ID:  <CA%2B1FSigyEzD6%2BeUxbqGHz9QhAZi2v34xdgg8Qapi6e-nFRtc5A@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--0000000000008095cd05e4b27da6
Content-Type: text/plain; charset="UTF-8"

Hello to everyone.

What I'm trying to do is to correctly configure the file xorg.conf because
I want to use two gpus at the same time connected to two different monitors
while using FreeBSD 13.1. It could be useful when I want to make some 3d
modelling using Blender on the first monitor / gpu [nvidia 1060 or Intel
UHD graphics 630] and using the second one (nvidia 1060 or Intel UHD
graphics 630) to watch some tutorials. I've also got a third gpu (geforce
RTX 2080 ti) ,but I want to keep it free to be passed through on a bhyve
virtual machine. On the BIOS I've configured the Nvidia Geforce 1060 as the
GPU with which the PC boots. So,this is the scheme that I want to follow :


1) monitor AOC -> hdmi cable ---> gpu nvidia geforce 1060

2) monitor Samsung SynchMaster ---> hdmi cable ---> gpu intel 'CoffeeLake-S
GT2 [UHD Graphics 630]'

3) gpu geforce RTX 2080 ti without monitor,used only to be passed thru with
bhyve


Actually I'm using this xorg.conf :
https://pastebin.ubuntu.com/p/DhW6RHS3zb/

instead this is the Xorg.0.log file :
https://pastebin.ubuntu.com/p/YtdPq9fngQ/


In front of me I have the AOC monitor connected to the HDMI port of the
Geforce 1060. On my right I have the monitor samsung syncmaster,that's
connected to the HDMI port of the intel GPU. The 3 gpu (Geforce RTX 2080
ti) is non connected to any monitor because I want to use it to be passed
thru on a bhyve vm. What happens is that the samsung monitor works
partially. The only 2 apps which can be directed to it (it is attached to
the Intel GPU with the HDMI cable) are :


[marietto@marietto ~]$ export DISPLAY=:0.1 ; konsole

and :

[marietto@marietto ~]$ export DISPLAY=:0.1 ; chrome

(firefox can be displayed only on the screen 0 : don't know why)


Here you can find the list of every PCI device attached to my PC :

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


I can export some applications to the DISPLAY=:0.1 (monitor Samsung
SynchMaster ---> hdmi cable ---> gpu intel 'CoffeeLake-S GT2 [UHD Graphics
630]). But this kind of usage is not comfortable at all. Infact I can't run
another session of xorg because it says that one session is already
running. Only some applications are displayed over it and If I invert the
cable and the drivers on the xorg.conf file,placing as primary GPU the
intel gpu attached to the AOC monitor and as secondary GPU the nvidia 1060
attached to the samsung syncmaster,the behavior is the same,with the
difference that I've inverted the monitors. I've tried to enable
xinerama,but it does not work well. It freezes the mouse and
anyway,attaching virtually two screens into only one is ridiculous,because
they aren't attached physically. What I want to do is to be able to do some
tasks on monitor 1 and some different tasks on monitor 2.


# 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 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y
axis) 598mm x 336mm
   1920x1080     60.00*+  59.94    50.00    60.00    50.04
   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-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)

arandr says that the only monitor connected is the HDMI-0,the monitor AOC
connected to the nVidia 1060 gpu. But if I invert the drivers on xorg.conf
and the cables,the only monitor connected will again be the HDMI-0,but this
time it will be the Samsung Synchmaster.

The reason for this behavior could have been explained here :

https://forums.freebsd.org/threads/dual-head-setup-with-two-graphics-cards.62886/post-363187

Anyway,I don't have a solution. Do you ?
-- 
Mario.

--0000000000008095cd05e4b27da6
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail-h7" role=3D"listitem" aria-expanded=3D=
"true" tabindex=3D"-1"><div class=3D"gmail-Bk"><div class=3D"gmail-G3 gmail=
-G2"><div><div id=3D"gmail-:46m"><div><div class=3D"gmail-adn gmail-ads"><d=
iv class=3D"gmail-gs"><div class=3D"gmail-"><div id=3D"gmail-:479" class=3D=
"gmail-ii gmail-gt"><div id=3D"gmail-:1ka" class=3D"gmail-a3s gmail-aiL"><d=
iv dir=3D"ltr"><p>Hello to everyone.</p><p>What I&#39;m trying to do is to =
correctly=20
configure the file xorg.conf because I want to use two gpus at the same=20
time connected to two different monitors while using FreeBSD 13.1. It=20
could be useful when I want to make some 3d modelling using Blender on=20
the first monitor / gpu [nvidia 1060 or Intel UHD graphics 630] and
 using the second one (nvidia 1060 or Intel UHD graphics 630) to watch=20
some tutorials. I&#39;ve also got a third gpu (<span id=3D"gmail-m_-7905731=
339070580876gmail-m_-634114045655741873gmail-line-number-23">geforce RTX 20=
80 ti) </span>,but
 I want to keep it free to be passed through on a bhyve virtual machine.
 On the BIOS I&#39;ve configured the Nvidia Geforce 1060 as the GPU with=20
which the PC boots. So,this is the scheme that I want to follow :</p><p><br=
></p><p>1) monitor AOC -&gt; hdmi cable ---&gt; gpu nvidia geforce 1060</p>=
<p>2) monitor Samsung SynchMaster ---&gt; hdmi cable ---&gt; <span id=3D"gm=
ail-m_-7905731339070580876gmail-m_-634114045655741873gmail-line-number-23">=
gpu intel &#39;CoffeeLake-S GT2 [UHD Graphics 630]&#39;</span></p><p><span =
id=3D"gmail-m_-7905731339070580876gmail-m_-634114045655741873gmail-line-num=
ber-23">3) gpu geforce RTX 2080 ti without monitor,used only to be passed t=
hru with bhyve</span></p><p><span id=3D"gmail-m_-7905731339070580876gmail-m=
_-634114045655741873gmail-line-number-23"><br></span></p><p>Actually I&#39;=
m using this xorg.conf : <a href=3D"https://pastebin.ubuntu.com/p/DhW6RHS3z=
b/" rel=3D"ugc noopener nofollow" target=3D"_blank">https://pastebin.ubuntu=
.com/p/DhW6RHS3zb/</a></p>

<p>instead this is the Xorg.0.log file : <a href=3D"https://pastebin.ubuntu=
.com/p/YtdPq9fngQ/" rel=3D"ugc noopener nofollow" target=3D"_blank">https:/=
/pastebin.ubuntu.com/p/YtdPq9fngQ/</a></p>

<p><br></p><p>In front of me I have the AOC monitor connected to the HDMI=
=20
port of the Geforce 1060. On my right I have the monitor samsung=20
syncmaster,that&#39;s connected to the HDMI port of the intel GPU. The 3=20
gpu (Geforce RTX 2080 ti) is non connected to any monitor because I want to=
 use=20
it to be passed thru on a bhyve vm. What happens is that the samsung monito=
r works partially. The only 2=20
apps which can be directed to it (it is attached to the Intel GPU with=20
the HDMI cable) are :</p><p><br></p>


<p><code>[marietto@marietto ~]$ export DISPLAY=3D:0.1 ; konsole</code></p>

<p>and :</p>

<p><code>[marietto@marietto ~]$ export DISPLAY=3D:0.1 ; chrome </code><br><=
/p><p>(firefox can be displayed only on the screen 0 : don&#39;t know why)<=
/p><p><br></p>

<p>Here you can find the list of every PCI device attached to my PC :</p><p=
><a href=3D"https://pastebin.ubuntu.com/p/Gx5DqckFQP/" rel=3D"ugc noopener =
nofollow" target=3D"_blank">https://pastebin.ubuntu.com/p/Gx5DqckFQP/</a></=
p><p><br></p>

<p>I can export some applications to the DISPLAY=3D:0.1 (monitor Samsung Sy=
nchMaster ---&gt; hdmi cable ---&gt; <span id=3D"gmail-m_-79057313390705808=
76gmail-m_-634114045655741873gmail-line-number-23">gpu intel &#39;CoffeeLak=
e-S GT2 [UHD Graphics 630])</span>. But this kind of usage is not comfortab=
le at all. Infact I can&#39;t run=20
another session of xorg because it says that one session is already=20
running. Only some applications are displayed over it and If I invert the c=
able and the=20
drivers on the xorg.conf file,placing as primary GPU the intel gpu attached=
 to=20
the AOC monitor and as secondary GPU the nvidia 1060 attached to the=20
samsung syncmaster,the behavior is the same,with the difference that=20
I&#39;ve inverted the monitors. I&#39;ve tried to enable xinerama,but it do=
es=20
not work well. It freezes the mouse and anyway,attaching virtually two=20
screens into only one is ridiculous,because they aren&#39;t attached=20
physically. What I want to do is to be able to do some tasks on monitor 1 a=
nd some different tasks on monitor 2. <br></p>

<pre><code>
# xrandr <span>-</span>q

Screen <span>0</span>: minimum <span>8</span> x <span>8</span>, <span>curre=
nt</span> <span>1920</span> x <span>1080</span>, maximum <span>32767</span>=
 x <span>32767</span>
DVI<span>-</span>D<span>-0</span> disconnected (normal <span>left</span> in=
verted <span>right</span> x axis y axis)
DP<span>-0</span> disconnected (normal <span>left</span> inverted <span>rig=
ht</span> x axis y axis)
DP<span>-1</span> disconnected (normal <span>left</span> inverted <span>rig=
ht</span> x axis y axis)
HDMI<span>-0</span> connected <span>1920</span>x1080<span>+</span><span>0</=
span><span>+</span><span>0</span> (normal <span>left</span> inverted <span>=
right</span> x axis y axis) <span>598</span>mm x <span>336</span>mm
   <span>1920</span>x1080     <span>60.00</span><span>*</span><span>+</span=
>  <span>59.94</span>    <span>50.00</span>    <span>60.00</span>    <span>=
50.04</span> =20
   <span>1680</span>x1050     <span>59.95</span> =20
   <span>1440</span>x900      <span>59.89</span> =20
   <span>1280</span>x1024     <span>75.02</span>    <span>60.02</span> =20
   <span>1280</span>x960      <span>60.00</span> =20
   <span>1280</span>x720      <span>60.00</span>    <span>59.94</span>    <=
span>50.00</span> =20
   <span>1024</span>x768      <span>75.03</span>    <span>70.07</span>    <=
span>60.00</span> =20
   <span>800</span>x600       <span>75.00</span>    <span>72.19</span>    <=
span>60.32</span>    <span>56.25</span> =20
   <span>720</span>x576       <span>50.00</span> =20
   <span>720</span>x480       <span>59.94</span> =20
   <span>640</span>x480       <span>75.00</span>    <span>72.81</span>    <=
span>59.94</span>    <span>59.93</span> =20
DP<span>-2</span> disconnected (normal <span>left</span> inverted <span>rig=
ht</span> x axis y axis)
DP<span>-3</span> disconnected (normal <span>left</span> inverted <span>rig=
ht</span> x axis y axis)
DP<span>-4</span> disconnected (normal <span>left</span> inverted <span>rig=
ht</span> x axis y axis)
DP<span>-5</span> disconnected (normal <span>left</span> inverted <span>rig=
ht</span> x axis y axis)<br><br></code></pre>


<p>arandr says that the only monitor connected is the HDMI-0,the=20
monitor AOC connected to the nVidia 1060 gpu. But if I invert the=20
drivers on xorg.conf and the cables,the only monitor connected will=20
again be the HDMI-0,but this time it will be the Samsung Synchmaster.</p><f=
ont color=3D"#888888"><br></font><p>The reason for this behavior could have=
 been explained here :</p>

<p><a href=3D"https://forums.freebsd.org/threads/dual-head-setup-with-two-g=
raphics-cards.62886/post-363187" rel=3D"ugc noopener nofollow" target=3D"_b=
lank">https://forums.freebsd.org/threads/dual-head-setup-with-two-graphics-=
cards.62886/post-363187</a></p>

<p>Anyway,I don&#39;t have a solution. Do you ?</p></div><div dir=3D"ltr"><=
font color=3D"#888888">-- <br><div dir=3D"ltr">Mario.</div></font></div></d=
iv></div></div></div></div></div></div></div></div></div></div><table class=
=3D"gmail-cf gmail-gJ" cellpadding=3D"0"><tbody><tr class=3D"gmail-acZ"><td=
 class=3D"gmail-gH"></td><td class=3D"gmail-gH gmail-acX gmail-bAm" rowspan=
=3D"2"></td></tr></tbody></table><table class=3D"gmail-cf gmail-gJ" cellpad=
ding=3D"0"><tbody><tr class=3D"gmail-acZ gmail-xD"><td colspan=3D"3"><table=
 class=3D"gmail-cf gmail-adz" cellpadding=3D"0"><tbody><tr><td class=3D"gma=
il-ady"></td></tr></tbody></table></td></tr></tbody></table></div>

--0000000000008095cd05e4b27da6--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSigyEzD6%2BeUxbqGHz9QhAZi2v34xdgg8Qapi6e-nFRtc5A>