Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jul 2022 18:27:57 +0200
From:      Mario Marietto <marietto2008@gmail.com>
To:        garyj@gmx.de, freebsd-x11@freebsd.org
Subject:   Re: Problem with xorg tryng to dual head setup with two graphics cards (intel and nvidia)
Message-ID:  <CA%2B1FSihn70hHQRx3jTyjOn=MRtQXcyBotLQXzdEf-kOtTowTkQ@mail.gmail.com>
In-Reply-To: <CA%2B1FSiiioNcKG95tMEOUoqAnc7ubK1-dOiqeV9a5WcuuTJoTtw@mail.gmail.com>
References:  <CA%2B1FSigyEzD6%2BeUxbqGHz9QhAZi2v34xdgg8Qapi6e-nFRtc5A@mail.gmail.com> <20220726174709.103e9148@ernst.home> <CA%2B1FSiiioNcKG95tMEOUoqAnc7ubK1-dOiqeV9a5WcuuTJoTtw@mail.gmail.com>

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

I can for sure try to answer your questions. I can for sure take care of
your priorities if they are different from mine. You are an experienced
user,I'm only some kind of newbie. So,do you still want to  help me ? I
will pause the second thread and I will try to reply to your questions,ok ?

Il giorno mar 26 lug 2022 alle ore 18:23 Mario Marietto <
marietto2008@gmail.com> ha scritto:

> Hello.
>
> Which kind of behavior is your ? I don't understand. I'm trying only to
> save mine and your time,trying to get the shorter road,moreover suggested
> by you. I try not to take up your time too much cause I know it's
> precious and you want to leave me in the lurch ?
>
> Il giorno mar 26 lug 2022 alle ore 17:47 Gary Jennejohn <garyj@gmx.de> ha
> scritto:
>
>> On Tue, 26 Jul 2022 12:08:27 +0200
>> Mario Marietto <marietto2008@gmail.com> wrote:
>>
>> > 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 ?
>> >
>>
>> A similar question from a Linux user with a laptop containing a NVIDIA
>> GPU and a Intel GPU was posted to unix.stackexchange.com here:
>>
>>
>> https://unix.stackexchange.com/questions/697517/how-to-correlate-xorg-conf-config-for-nvidia-gpu-with-xrandr-detected-screens
>>
>> The answer seems to have solved his problem.
>>
>> --
>> Gary Jennejohn
>>
>
>
> --
> Mario.
>


-- 
Mario.

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

<div dir=3D"ltr">I can for sure try to answer your questions. I can for sur=
e take care of your priorities if they are different from mine. You are an =
experienced user,I&#39;m only some kind of newbie. So,do you still want to=
=C2=A0 help me ? I will pause the second thread and I will try to reply to =
your questions,ok ?<br></div><br><div class=3D"gmail_quote"><div dir=3D"ltr=
" class=3D"gmail_attr">Il giorno mar 26 lug 2022 alle ore 18:23 Mario Marie=
tto &lt;<a href=3D"mailto:marietto2008@gmail.com" target=3D"_blank">mariett=
o2008@gmail.com</a>&gt; ha scritto:<br></div><blockquote class=3D"gmail_quo=
te" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204=
);padding-left:1ex"><div dir=3D"ltr"><div>Hello.</div><div><br></div><div>W=
hich kind of behavior is your ? I don&#39;t understand. I&#39;m trying only=
 to save mine and your time,trying to get the shorter road,<span lang=3D"en=
">moreover suggested by you.</span><span lang=3D"en"> I try not to take up =
your time too much cause I know it&#39;s precious and you want to leave me =
in the lurch ?</span><span lang=3D"en"></span><span lang=3D"en"></span></di=
v></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr=
">Il giorno mar 26 lug 2022 alle ore 17:47 Gary Jennejohn &lt;<a href=3D"ma=
ilto:garyj@gmx.de" target=3D"_blank">garyj@gmx.de</a>&gt; ha scritto:<br></=
div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bor=
der-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 26 Jul 2022 1=
2:08:27 +0200<br>
Mario Marietto &lt;<a href=3D"mailto:marietto2008@gmail.com" target=3D"_bla=
nk">marietto2008@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hello to everyone.<br>
&gt;<br>
&gt; What I&#39;m trying to do is to correctly configure the file xorg.conf=
 because<br>
&gt; I want to use two gpus at the same time connected to two different mon=
itors<br>
&gt; while using FreeBSD 13.1. It could be useful when I want to make some =
3d<br>
&gt; modelling using Blender on the first monitor / gpu [nvidia 1060 or Int=
el<br>
&gt; UHD graphics 630] and using the second one (nvidia 1060 or Intel UHD<b=
r>
&gt; graphics 630) to watch some tutorials. I&#39;ve also got a third gpu (=
geforce<br>
&gt; RTX 2080 ti) ,but I want to keep it free to be passed through on a bhy=
ve<br>
&gt; virtual machine. On the BIOS I&#39;ve configured the Nvidia Geforce 10=
60 as the<br>
&gt; GPU with which the PC boots. So,this is the scheme that I want to foll=
ow :<br>
&gt;<br>
&gt;<br>
&gt; 1) monitor AOC -&gt; hdmi cable ---&gt; gpu nvidia geforce 1060<br>
&gt;<br>
&gt; 2) monitor Samsung SynchMaster ---&gt; hdmi cable ---&gt; gpu intel &#=
39;CoffeeLake-S<br>
&gt; GT2 [UHD Graphics 630]&#39;<br>
&gt;<br>
&gt; 3) gpu geforce RTX 2080 ti without monitor,used only to be passed thru=
 with<br>
&gt; bhyve<br>
&gt;<br>
&gt;<br>
&gt; Actually I&#39;m using this xorg.conf :<br>
&gt; <a href=3D"https://pastebin.ubuntu.com/p/DhW6RHS3zb/" rel=3D"noreferre=
r" target=3D"_blank">https://pastebin.ubuntu.com/p/DhW6RHS3zb/</a><br>;
&gt;<br>
&gt; instead this is the Xorg.0.log file :<br>
&gt; <a href=3D"https://pastebin.ubuntu.com/p/YtdPq9fngQ/" rel=3D"noreferre=
r" target=3D"_blank">https://pastebin.ubuntu.com/p/YtdPq9fngQ/</a><br>;
&gt;<br>
&gt;<br>
&gt; In front of me I have the AOC monitor connected to the HDMI port of th=
e<br>
&gt; Geforce 1060. On my right I have the monitor samsung syncmaster,that&#=
39;s<br>
&gt; connected to the HDMI port of the intel GPU. The 3 gpu (Geforce RTX 20=
80<br>
&gt; ti) is non connected to any monitor because I want to use it to be pas=
sed<br>
&gt; thru on a bhyve vm. What happens is that the samsung monitor works<br>
&gt; partially. The only 2 apps which can be directed to it (it is attached=
 to<br>
&gt; the Intel GPU with the HDMI cable) are :<br>
&gt;<br>
&gt;<br>
&gt; [marietto@marietto ~]$ export DISPLAY=3D:0.1 ; konsole<br>
&gt;<br>
&gt; and :<br>
&gt;<br>
&gt; [marietto@marietto ~]$ export DISPLAY=3D:0.1 ; chrome<br>
&gt;<br>
&gt; (firefox can be displayed only on the screen 0 : don&#39;t know why)<b=
r>
&gt;<br>
&gt;<br>
&gt; Here you can find the list of every PCI device attached to my PC :<br>
&gt;<br>
&gt; <a href=3D"https://pastebin.ubuntu.com/p/Gx5DqckFQP/" rel=3D"noreferre=
r" target=3D"_blank">https://pastebin.ubuntu.com/p/Gx5DqckFQP/</a><br>;
&gt;<br>
&gt;<br>
&gt; I can export some applications to the DISPLAY=3D:0.1 (monitor Samsung<=
br>
&gt; SynchMaster ---&gt; hdmi cable ---&gt; gpu intel &#39;CoffeeLake-S GT2=
 [UHD Graphics<br>
&gt; 630]). But this kind of usage is not comfortable at all. Infact I can&=
#39;t run<br>
&gt; another session of xorg because it says that one session is already<br=
>
&gt; running. Only some applications are displayed over it and If I invert =
the<br>
&gt; cable and the drivers on the xorg.conf file,placing as primary GPU the=
<br>
&gt; intel gpu attached to the AOC monitor and as secondary GPU the nvidia =
1060<br>
&gt; attached to the samsung syncmaster,the behavior is the same,with the<b=
r>
&gt; difference that I&#39;ve inverted the monitors. I&#39;ve tried to enab=
le<br>
&gt; xinerama,but it does not work well. It freezes the mouse and<br>
&gt; anyway,attaching virtually two screens into only one is ridiculous,bec=
ause<br>
&gt; they aren&#39;t attached physically. What I want to do is to be able t=
o do some<br>
&gt; tasks on monitor 1 and some different tasks on monitor 2.<br>
&gt;<br>
&gt;<br>
&gt; # xrandr -q<br>
&gt;<br>
&gt; Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767<br=
>
&gt; DVI-D-0 disconnected (normal left inverted right x axis y axis)<br>
&gt; DP-0 disconnected (normal left inverted right x axis y axis)<br>
&gt; DP-1 disconnected (normal left inverted right x axis y axis)<br>
&gt; HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y<br=
>
&gt; axis) 598mm x 336mm<br>
&gt;=C2=A0 =C2=A0 1920x1080=C2=A0 =C2=A0 =C2=A060.00*+=C2=A0 59.94=C2=A0 =
=C2=A0 50.00=C2=A0 =C2=A0 60.00=C2=A0 =C2=A0 50.04<br>
&gt;=C2=A0 =C2=A0 1680x1050=C2=A0 =C2=A0 =C2=A059.95<br>
&gt;=C2=A0 =C2=A0 1440x900=C2=A0 =C2=A0 =C2=A0 59.89<br>
&gt;=C2=A0 =C2=A0 1280x1024=C2=A0 =C2=A0 =C2=A075.02=C2=A0 =C2=A0 60.02<br>
&gt;=C2=A0 =C2=A0 1280x960=C2=A0 =C2=A0 =C2=A0 60.00<br>
&gt;=C2=A0 =C2=A0 1280x720=C2=A0 =C2=A0 =C2=A0 60.00=C2=A0 =C2=A0 59.94=C2=
=A0 =C2=A0 50.00<br>
&gt;=C2=A0 =C2=A0 1024x768=C2=A0 =C2=A0 =C2=A0 75.03=C2=A0 =C2=A0 70.07=C2=
=A0 =C2=A0 60.00<br>
&gt;=C2=A0 =C2=A0 800x600=C2=A0 =C2=A0 =C2=A0 =C2=A075.00=C2=A0 =C2=A0 72.1=
9=C2=A0 =C2=A0 60.32=C2=A0 =C2=A0 56.25<br>
&gt;=C2=A0 =C2=A0 720x576=C2=A0 =C2=A0 =C2=A0 =C2=A050.00<br>
&gt;=C2=A0 =C2=A0 720x480=C2=A0 =C2=A0 =C2=A0 =C2=A059.94<br>
&gt;=C2=A0 =C2=A0 640x480=C2=A0 =C2=A0 =C2=A0 =C2=A075.00=C2=A0 =C2=A0 72.8=
1=C2=A0 =C2=A0 59.94=C2=A0 =C2=A0 59.93<br>
&gt; DP-2 disconnected (normal left inverted right x axis y axis)<br>
&gt; DP-3 disconnected (normal left inverted right x axis y axis)<br>
&gt; DP-4 disconnected (normal left inverted right x axis y axis)<br>
&gt; DP-5 disconnected (normal left inverted right x axis y axis)<br>
&gt;<br>
&gt; arandr says that the only monitor connected is the HDMI-0,the monitor =
AOC<br>
&gt; connected to the nVidia 1060 gpu. But if I invert the drivers on xorg.=
conf<br>
&gt; and the cables,the only monitor connected will again be the HDMI-0,but=
 this<br>
&gt; time it will be the Samsung Synchmaster.<br>
&gt;<br>
&gt; The reason for this behavior could have been explained here :<br>
&gt;<br>
&gt; <a href=3D"https://forums.freebsd.org/threads/dual-head-setup-with-two=
-graphics-cards.62886/post-363187" rel=3D"noreferrer" target=3D"_blank">htt=
ps://forums.freebsd.org/threads/dual-head-setup-with-two-graphics-cards.628=
86/post-363187</a><br>
&gt;<br>
&gt; Anyway,I don&#39;t have a solution. Do you ?<br>
&gt;<br>
<br>
A similar question from a Linux user with a laptop containing a NVIDIA<br>
GPU and a Intel GPU was posted to <a href=3D"http://unix.stackexchange.com"=
 rel=3D"noreferrer" target=3D"_blank">unix.stackexchange.com</a> here:<br>
<br>
<a href=3D"https://unix.stackexchange.com/questions/697517/how-to-correlate=
-xorg-conf-config-for-nvidia-gpu-with-xrandr-detected-screens" rel=3D"noref=
errer" target=3D"_blank">https://unix.stackexchange.com/questions/697517/ho=
w-to-correlate-xorg-conf-config-for-nvidia-gpu-with-xrandr-detected-screens=
</a><br>
<br>
The answer seems to have solved his problem.<br>
<br>
--<br>
Gary Jennejohn<br>
</blockquote></div><br clear=3D"all"><br>-- <br><div dir=3D"ltr">Mario.<br>=
</div>
</blockquote></div><br clear=3D"all"><br>-- <br><div dir=3D"ltr">Mario.<br>=
</div>

--000000000000b2f9b705e4b7ca5e--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSihn70hHQRx3jTyjOn=MRtQXcyBotLQXzdEf-kOtTowTkQ>