From nobody Tue Jul 26 10:08:27 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 4LsXgm2VMSz4WXYf for ; Tue, 26 Jul 2022 10:09:08 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) (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 4LsXgl2k68z3lXj for ; Tue, 26 Jul 2022 10:09:07 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: by mail-ej1-x62e.google.com with SMTP id l23so25279445ejr.5 for ; Tue, 26 Jul 2022 03:09:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=yL80kKlslLgcWelZQLCbJpa78JGL4Tzildudc8z7cLI=; b=MJmNcbnrJokeEZaCAxO3OWgCRT0IZCuLh0ShKvDLSlLjeUfty46HxpwSxBy05wUOyx 1LAjEFu1xTIJeyYwdHf3hq9qHcuKCIAy6z9QvVBifuINs1THnkpbCA3QrFRwiNnD63NH UJquFNdqkDgLPDkhRFVhG/3LKjh6NvdwG73pBz5S6ez9+6N9zSWmNIgxZ5iOKt5maTdN V0xmYNRqn2028QsSGLzc2QYxtyIdhb9m5iyakTo0CZA4JFXJuTusy8sNhzU2jV/DLJDk X5nG3jyeWmoozDessx/FbXdU5wmybqUs0fdkyDNLrJY2u7t/DN3gQzg1DmkCRTX46WpQ Ec2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=yL80kKlslLgcWelZQLCbJpa78JGL4Tzildudc8z7cLI=; b=fJljyktd8gEux3+0GUzg43mvgVdF+iLdf19Jx51v5/1BHIHlRAPsJv9kq5mHFQuooF JTx4PPdPdXNLYTIw++YB+hKKL5++Iom6DlBNt+OQsQ1sKxQG0SJfcd2BRx83rzW2jC86 a+ZHV6zmLv6FQ3IbIk95JCgbQ/krcDJ4iajaXa8nGDpQWoKoq/6AKErMK68BlDNCa/oa LUQb3Pby0/H7VNj5RXquXEHsfiae9HdMrcXvbsyZZHN6omfEUun6Ym6uZtCnCNpLc10E izMrPARtLSGAnf+Un4Zn/cFXE1wcTGVF/NtQBCqUsXnYxLLaLKguSjzi+5bDtFL681B0 y1WQ== X-Gm-Message-State: AJIora+Ey2aGQnrdbG/GthqPveLGZBloMJn8sfTYKfiBJ0t0blNlDAtc 7AwXoj0MwLnYJ1trUdChC9YtvQZX/g2BVNYF4OuY0+Z1ayjfGA== X-Google-Smtp-Source: AGRyM1s5flCx7odsyh1vOL8zoJ6cbHT9lopQTSgFxReksYSAzQB85H5Btgnknh+A9bEpLyJb0bNQU4ex5/coel7ters= X-Received: by 2002:a17:907:9803:b0:72e:ec55:b2a5 with SMTP id ji3-20020a170907980300b0072eec55b2a5mr13315702ejc.347.1658830144442; Tue, 26 Jul 2022 03:09:04 -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 From: Mario Marietto Date: Tue, 26 Jul 2022 12:08:27 +0200 Message-ID: Subject: 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="0000000000008095cd05e4b27da6" X-Rspamd-Queue-Id: 4LsXgl2k68z3lXj X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=MJmNcbnr; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2a00:1450:4864:20::62e as permitted sender) smtp.mailfrom=marietto2008@gmail.com X-Spamd-Result: default: False [-3.96 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-0.997]; NEURAL_HAM_LONG(-1.00)[-0.996]; NEURAL_HAM_MEDIUM(-0.97)[-0.970]; 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::62e: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 --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

Hello to everyone.

What I'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've also got a third gpu (geforce RTX 20= 80 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 630]'

3) gpu geforce RTX 2080 ti without monitor,used only to be passed t= hru 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= =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 'CoffeeLak= e-S GT2 [UHD Graphics 630]). But this kind of usage is not comfortab= le 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.
--0000000000008095cd05e4b27da6--