From nobody Tue Jul 26 15:47:09 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 4Lsh9t3rCPz4XM79 for ; Tue, 26 Jul 2022 15:47:14 +0000 (UTC) (envelope-from garyj@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Lsh9s2PMDz3Pw1 for ; Tue, 26 Jul 2022 15:47:13 +0000 (UTC) (envelope-from garyj@gmx.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1658850431; bh=lS8+yFzgh/TREl4o+/WZVjV1YAUc7T/DZ8WWtUqH/90=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:In-Reply-To:References: Reply-To; b=hUqQcqP7JaRJThU/unPxgFqIY49l4ThxRQTcSZQvfd34G3xepZyoJ7OvsNVVCnAsx 8FpJh3lJrPizQbym8RNAvLOWyJ0kYbzBZmhu1CTQ07Ng2UHJEnt0V+EjaIoAqDgr72 qwUBOb667whpza1CI9nOcEaW4+xybbYsySx3C5Cs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from ernst.home ([91.2.60.68]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M26r3-1oIpkN42bh-002aKN; Tue, 26 Jul 2022 17:47:11 +0200 Date: Tue, 26 Jul 2022 17:47:09 +0200 From: Gary Jennejohn To: Mario Marietto Cc: freebsd-x11@freebsd.org Subject: Re: Problem with xorg tryng to dual head setup with two graphics cards (intel and nvidia) Message-ID: <20220726174709.103e9148@ernst.home> In-Reply-To: References: Reply-To: garyj@gmx.de X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:JhatlBy+g536cwL2Mvi5G7mjJFtgLJcAYsP9Fb8qpQTc1sAPYvS dJ85qio0uRu+yXMoUqc5O5AHHYb5R8gw5ItU3mE0HkQkKL6NWzGhvu3OxIAafvoTs9ocvkU yHlEBuMElvzu1C2JdkDknwJjJtSt+7XNhzBsQ7u7SJzYbb6kK4YeZGdriB98k8ZcrJJndA+ ZreN8sq+HBYkxl+CEurQQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Jgc6vX9ikYU=:biA64wWymzO78p0obIWpAa lJeIu6RJbLrti6rE46+3J9W5h0sh803cffy8au++u9lI/SlxkbmUOq3b0CdoCOaPeDYLX3v0g HSYDEoIFK8dSIS4xDlK1EZwbkA6NGkF/CV0PaC8yGiLGTsNQQcvymdkn3GIYr2aiSSlAR0sJ/ kEo3YrzfVnwD03Amf0f4Amk3flw81A0bmnSV3HKDmZpYTQZWuN6BpkwI6UmWD87x6PQ3PSA4A B7K+2sqS8R7BZzdWB+rCfssJ6jYGa85yAHQN2D/DB8hH/try/yFH3jDY4qRlENv660g5bOWDw jE3E0Dn7B+z4qG7RmmNuT0jLyRQ5hk/vzGuOh1mrNZrCNgLVTKPUj4Cibwzu5j0vpVYZChYOC b8LUIFlDFc0VsswlUz+fko7xaDipWzEUVrMeZCSxBLnkjkJHdJ2q7Am2Dqw7ZHXes7ajsulTB fBaOQ/QGx06MI8erhw9HzvhFZ5U2/EKrfsehY+ekke9vByW7GXn84FUTyevBiqDZxKvpGfNGf oPWJEI78zQTL/rLNK/8fkLv2XfVa2V3UltczwqFiNryEcK73coCMvkkxdmG3nceovOaiPzdnq j13zDdCe/Qu1TAgyg0Vx/XqGkpIUi/eHu2OD+DXx3Jj/3KKw8YDjWeF4aOOWSEn4wNgZPFo9L l0iLGQN/al3cqWRxBwqQSQSs1KmK+WHeAu59nBovS/7w62futOQ3hKBWVUV/rOJLD0kgC60+i eBK2JyFjoeBTws0oTLeGpEcNFlYYlk8bCGU62meryvk7GfuwjQyjgb9HVRTHmoXC/pViz4LOT sBVkMYqDX4XSbn/3bYNDIkqoWhGH4DhT5+ifsFtPzImYhy8KurjeSo5MK6FwYkZc6l9G0Jc99 0w4y7ieIth9ND+WJnAqLoWbuQx9R4vjxZ/gfpJ5tjLl/ZUSDmlVGAS6YcoeYcgdqWPQBIW7eK euYVN02I1atn6rHyWcvnjpst7BWTCJbDG/A4LXD+3/xrp8Fes4v6Z9Devgr1X3eztpoDUMqfz 0LyMT5AOLeY12NDxsRSRJxiS+pqieiEgcUGlShONpKFbWIk0CE3aR7Nou14bJI+z2Ve3Y0roQ BR9uYHd08BE5uyc+pzLpL63HQHAMDaSbtc6 X-Rspamd-Queue-Id: 4Lsh9s2PMDz3Pw1 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=hUqQcqP7; dmarc=pass (policy=none) header.from=gmx.de; spf=pass (mx1.freebsd.org: domain of garyj@gmx.de designates 212.227.17.21 as permitted sender) smtp.mailfrom=garyj@gmx.de X-Spamd-Result: default: False [-3.37 / 15.00]; DWL_DNSWL_LOW(-1.00)[gmx.net:dkim]; NEURAL_HAM_SHORT(-0.98)[-0.977]; NEURAL_HAM_LONG(-0.86)[-0.862]; NEURAL_SPAM_MEDIUM(0.57)[0.569]; DMARC_POLICY_ALLOW(-0.50)[gmx.de,none]; R_SPF_ALLOW(-0.20)[+ip4:212.227.17.0/27]; R_DKIM_ALLOW(-0.20)[gmx.net:s=badeba3b8450]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[212.227.17.21:from]; FROM_HAS_DN(0.00)[]; FREEMAIL_REPLYTO(0.00)[gmx.de]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[212.227.17.21:from]; MLMMJ_DEST(0.00)[freebsd-x11@freebsd.org]; HAS_REPLYTO(0.00)[garyj@gmx.de]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; FREEMAIL_ENVFROM(0.00)[gmx.de]; FREEMAIL_FROM(0.00)[gmx.de]; REPLYTO_ADDR_EQ_FROM(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[gmx.net:+]; FREEMAIL_TO(0.00)[gmail.com]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N 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 becau= se > I want to use two gpus at the same time connected to two different monit= ors > 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 (geforc= e > 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 'CoffeeLak= e-S > GT2 [UHD Graphics 630]' > > 3) gpu geforce RTX 2080 ti without monitor,used only to be passed thru w= ith > 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 passe= d > 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 t= o > 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 > SynchMaster ---> hdmi cable ---> gpu intel 'CoffeeLake-S GT2 [UHD Graphi= cs > 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 th= e > 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 10= 60 > 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,becau= se > they aren't attached physically. What I want to do is to be able to do s= ome > 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 AO= C > connected to the nVidia 1060 gpu. But if I invert the drivers on xorg.co= nf > and the cables,the only monitor connected will again be the HDMI-0,but t= his > 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-car= ds.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. =2D- Gary Jennejohn