From nobody Tue Jul 26 16:27:57 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 4Lsj5c3JZxz4XS9c for ; Tue, 26 Jul 2022 16:28:36 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (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 4Lsj5b6jkqz3XsX for ; Tue, 26 Jul 2022 16:28:35 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: by mail-ej1-x62d.google.com with SMTP id tk8so27109969ejc.7 for ; Tue, 26 Jul 2022 09:28:35 -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=DR3f9vVF4Rq5HtVFp9sYXJJu3OjduGty6RUnOGNGCYo=; b=ggu7BhMLlz2QkxBwIYH/V7MPgOD6Jq4qE6m5YdZ3SgwNL9Imq+fvw8scKleMFidBhp P5cRVfdcTB7m4SF0z4uWi2wWKWUYY0ko//1xOjT3HCFET5jq3ubUyNUps8+GPBYOTrnB WMozxLCK/O736DnvU2zfxjChB0twrUhe6SflfKtHsNnu9wBZKIuQsjmJ9pZ0TifQzJoS /j2YinGEczEOei3jRaFJgFHSqHNutJy0fIAqEFpbZDtofrZjm6P4h8JqDCxfIZHf7rqu kB3I8CLk/PE9luKakcZEOArCYq4WLe+cGLZmEhUPOALVXaTSXTexUJ+3oEPtBOn9aEbr UVQw== 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=DR3f9vVF4Rq5HtVFp9sYXJJu3OjduGty6RUnOGNGCYo=; b=DG19FjapGcGKnRAUbwbFMOHnaai9Y8jYREKY+pvjMm9vEgpsB2Lzlb9SOwHH1DCY8q fUSvAGm0tk4pHQ4qLDUdeTYQbpDcBCPmZTmNQ7Gspwa1IKrowN9UaIo5si1r58NfMeAJ pnJYSsCk+L5XjwnQqa7qjD9hnoIR6/Gt3d6j3XmIWUKXrP9v8iZSqYe3PojOrPh8Dorq WGdBop+oOle3hErVQFSYueYqoiH/t17JcZg74rgfH5dup7IMZ4ZR5NJpMUzSS1xfrbW8 G5Nyu0bOpfsIY2brhdtOjSt+bzofkk74Fr6CR6T/aSY63AmkX3WW2Mun+EVKh4EDGvfB +Snw== X-Gm-Message-State: AJIora+Qh5SqrzlFY/3QjnogwmGCTvpjZQ1gjMq+FaGOm4KE4fSqUqIx lJVi1+L6pLI3fQXP6GXm8hACHKqk2BflCEm71cnUaodVU+g= X-Google-Smtp-Source: AGRyM1v4SuSmCCNnc445a0PvcUJ4HeTKOXBYCkoUPbQMoUqqvIwWJU506x2yriZRSlNYbR2SttglwjucqWAF9pnjJL4= X-Received: by 2002:a17:907:763b:b0:72f:309d:d2c0 with SMTP id jy27-20020a170907763b00b0072f309dd2c0mr14778101ejc.434.1658852914427; Tue, 26 Jul 2022 09:28:34 -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: <20220726174709.103e9148@ernst.home> In-Reply-To: From: Mario Marietto Date: Tue, 26 Jul 2022 18:27:57 +0200 Message-ID: Subject: Re: Problem with xorg tryng to dual head setup with two graphics cards (intel and nvidia) To: garyj@gmx.de, freebsd-x11@freebsd.org Content-Type: multipart/alternative; boundary="000000000000b2f9b705e4b7ca5e" X-Rspamd-Queue-Id: 4Lsj5b6jkqz3XsX X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=ggu7BhML; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2a00:1450:4864:20::62d as permitted sender) smtp.mailfrom=marietto2008@gmail.com X-Spamd-Result: default: False [-3.94 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-0.997]; NEURAL_HAM_LONG(-0.98)[-0.976]; NEURAL_HAM_MEDIUM(-0.96)[-0.964]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62d:from]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-x11@freebsd.org]; FROM_HAS_DN(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-x11@freebsd.org]; DKIM_TRACE(0.00)[gmail.com:+]; FREEMAIL_TO(0.00)[gmx.de,freebsd.org]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --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 ha > scritto: > >> On Tue, 26 Jul 2022 12:08:27 +0200 >> Mario Marietto 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
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'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 ?

Il giorno mar 26 lug 2022 alle ore 18:23 Mario Marie= tto <mariett= o2008@gmail.com> ha scritto:
Hello.

W= hich 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 1= 2: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 mon= itors
> 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 Int= el
> 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 bhy= ve
> virtual machine. On the BIOS I've configured the Nvidia Geforce 10= 60 as the
> GPU with which the PC boots. So,this is the scheme that I want to foll= ow :
>
>
> 1) monitor AOC -> hdmi cable ---> gpu nvidia geforce 1060
>
> 2) monitor Samsung SynchMaster ---> hdmi cable ---> gpu intel &#= 39;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 th= e
> Geforce 1060. On my right I have the monitor samsung syncmaster,that&#= 39;s
> connected to the HDMI port of the intel GPU. The 3 gpu (Geforce RTX 20= 80
> ti) is non connected to any monitor because I want to use it to be pas= sed
> 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=3D:0.1 ; konsole
>
> and :
>
> [marietto@marietto ~]$ export DISPLAY=3D: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=3D:0.1 (monitor Samsung<= br> > SynchMaster ---> hdmi cable ---> gpu intel 'CoffeeLake-S GT2= [UHD Graphics
> 630]). But this kind of usage is not comfortable at all. Infact I can&= #39;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 enab= le
> xinerama,but it does not work well. It freezes the mouse and
> anyway,attaching virtually two screens into only one is ridiculous,bec= ause
> they aren't attached physically. What I want to do is to be able t= o 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
>=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
>=C2=A0 =C2=A0 1680x1050=C2=A0 =C2=A0 =C2=A059.95
>=C2=A0 =C2=A0 1440x900=C2=A0 =C2=A0 =C2=A0 59.89
>=C2=A0 =C2=A0 1280x1024=C2=A0 =C2=A0 =C2=A075.02=C2=A0 =C2=A0 60.02
>=C2=A0 =C2=A0 1280x960=C2=A0 =C2=A0 =C2=A0 60.00
>=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
>=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
>=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
>=C2=A0 =C2=A0 720x576=C2=A0 =C2=A0 =C2=A0 =C2=A050.00
>=C2=A0 =C2=A0 720x480=C2=A0 =C2=A0 =C2=A0 =C2=A059.94
>=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
> 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 :
>
> htt= ps://forums.freebsd.org/threads/dual-head-setup-with-two-graphics-cards.628= 86/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/ho= w-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--