From nobody Tue Jul 26 16:04:53 2022 X-Original-To: freebsd-x11@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Lshb00MCMz4XPbf for ; Tue, 26 Jul 2022 16:05:32 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LshZz309sz3Tfs for ; Tue, 26 Jul 2022 16:05:31 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: by mail-ej1-x62a.google.com with SMTP id fy29so26909787ejc.12 for ; Tue, 26 Jul 2022 09:05:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=vmyJjSCLR7MA3N+DCONUhm0LwjicvPSlfeiQ75JjeTo=; b=bb7KJA7/T3FTK4NX32L6RjpJcz0pKWSSYmhLU0ysQImIZEodqpOTNB+zfriHLae5hw +ymLNNOJ2fuTt6cTC1L0yVKMlk2zh1Hnq5msr7Y1NPcqIpiqLBoZ5NFh22Bdv0hxXsmh Ds3vGGO2Nf1U1G1sSC+sABCS8L+A7rxzUN9F4ANKNsdlzXCyhT8j42sAUOXonIkPQzsR yfcviCeU3111IKTlUHK+55OjLibLH1qNh9oKUY5cyjP7xSp1qO3hSRMyqHoYGkDAu9JU Nt4aV8bz7uaM7Rpg/IaqAxuHh4fBJt46KaZqRKH7MgCleVMew+zkHvavNqklSU1xdCKQ NYOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=vmyJjSCLR7MA3N+DCONUhm0LwjicvPSlfeiQ75JjeTo=; b=HKAqWSILkTwJa05CRAfIcHkmh1zONM2lIE3QHg/QK6kcO3TlcLawS0X8VD3XeibcKh QYQ/s00RLqNta1HVM7sZbxyDAOW74YQceSJuZmrjkW3EWQI1S72twvt/7a5hVRPrOOGh 9kydJ4bOWaJ29z2QBpbY38Oarsz6cE6p4M28LiW3veoGbp9MQwxyLqQduQ/mWsRfw+Lm 3FHTzAdBqZok0zhkh5AHPOqgDsv5tzVc3YeFDR9K1vIibKJt215UqObrht0Lvbv9yD0u vy7WaMyIJZI8dEgpKBGdOLi6fpfLtrm6o/+JONywtVcCjMon/myaiI+Cnx7h2Jq3X6Yh RdXQ== X-Gm-Message-State: AJIora+i8s99uYPNK6/fFB1vdH71gp5CKMeyLtF62uBNqqC7rquW2RxU f3nbxpp/4d3YkGjcTA+wHLT9VU+zK0kxjtu1hbCWLYsvQndV3A== X-Google-Smtp-Source: AGRyM1souw5Duy3ri2sThzZrw++4Iroucs8CipeNQalgPIj97u3zMWVO2Rhue2/UL/bs34UA8yJThN84z3nMZaHOZVI= X-Received: by 2002:a17:906:8a5b:b0:72b:50a1:a72c with SMTP id gx27-20020a1709068a5b00b0072b50a1a72cmr14970263ejc.152.1658851530176; Tue, 26 Jul 2022 09:05:30 -0700 (PDT) List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Mario Marietto Date: Tue, 26 Jul 2022 18:04:53 +0200 Message-ID: Subject: Re: Problem with xorg tryng to dual head setup with two graphics cards (intel and nvidia) To: freebsd-x11@freebsd.org Content-Type: multipart/alternative; boundary="00000000000030fb8105e4b77814" X-Rspamd-Queue-Id: 4LshZz309sz3Tfs X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b="bb7KJA7/"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2a00:1450:4864:20::62a as permitted sender) smtp.mailfrom=marietto2008@gmail.com X-Spamd-Result: default: False [-3.96 / 15.00]; NEURAL_HAM_LONG(-1.00)[-0.997]; NEURAL_HAM_SHORT(-1.00)[-0.997]; NEURAL_HAM_MEDIUM(-0.96)[-0.964]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62a:from]; MLMMJ_DEST(0.00)[freebsd-x11@freebsd.org]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_FROM(0.00)[gmail.com]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-x11@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; RCVD_TLS_LAST(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N --00000000000030fb8105e4b77814 Content-Type: text/plain; charset="UTF-8" Hello Chris. ok in the meantime I tried to follow a shorter way. You can read the whole experiment going here : https://www.reddit.com/r/freebsd/comments/w8nam4/how_to_setup_dual_monitor_with_one_nvidia_gpu/ but unfortunately even in this easier case,there is something wrong. Il giorno mar 26 lug 2022 alle ore 12:08 Mario Marietto < marietto2008@gmail.com> ha scritto: > 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. > -- Mario. --00000000000030fb8105e4b77814 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Chris.

ok in the meant= ime I tried to follow a shorter way. You can read the whole experiment goin= g here :


but unfortuna= tely even in this easier case,there is something wrong.

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

Hello to everyone.

What I'm trying to do is to correc= tly=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'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=20 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 6= 30]'

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


Actual= ly I'm using this xorg.conf : https://pasteb= in.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= =20 port of the Geforce 1060. On my right I have the monitor samsung=20 syncmaster,that'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 :


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

and :

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

(firefox can be displayed only on the screen 0 : don't know why)<= /p>


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=3D:0.1 (monitor Samsung Sy= nchMaster ---> hdmi cable ---> gpu intel 'CoffeeLake-S GT2 [UHD Graphics 630]). But this ki= nd of usage is not comfortable at all. Infact I can'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've inverted the monitors. I'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'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.


# xrandr -q

Screen 0: minimum 8 x 8, curre=
nt 1920 x 1080, maximum 32767=
 x 32767
DVI-D-0 disconnected (normal left in=
verted right x axis y axis)
DP-0 disconnected (normal left inverted rig=
ht x axis y axis)
DP-1 disconnected (normal left inverted rig=
ht 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 =20
   1680x1050     59.95 =20
   1440x900      59.89 =20
   1280x1024     75.02    60.02 =20
   1280x960      60.00 =20
   1280x720      60.00    59.94    <=
span>50.00 =20
   1024x768      75.03    70.07    <=
span>60.00 =20
   800x600       75.00    72.19    <=
span>60.32    56.25 =20
   720x576       50.00 =20
   720x480       59.94 =20
   640x480       75.00    72.81    <=
span>59.94    59.93 =20
DP-2 disconnected (normal left inverted rig=
ht x axis y axis)
DP-3 disconnected (normal left inverted rig=
ht x axis y axis)
DP-4 disconnected (normal left inverted rig=
ht x axis y axis)
DP-5 disconnected (normal left inverted rig=
ht x axis y axis)

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.


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 ?

<= font color=3D"#888888">--
Mario.
<= /div>


--
Mario.
--00000000000030fb8105e4b77814--