From owner-freebsd-x11@freebsd.org Tue Sep 22 08:11:59 2020 Return-Path: Delivered-To: freebsd-x11@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 24F203E1610 for ; Tue, 22 Sep 2020 08:11:59 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa2.yoonka.com (yoonka.com [88.98.225.149]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "msa2.yoonka.com", Issuer "msa2.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BwYtk3j2hz4ftt for ; Tue, 22 Sep 2020 08:11:58 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from venus.yoonka.com (venus.yoonka.com [10.70.7.24]) by msa2.yoonka.com (8.15.2/8.15.2) with ESMTPS id 08M8BurE046574 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Tue, 22 Sep 2020 08:11:57 GMT (envelope-from list1@gjunka.com) Subject: Re: GPU selection To: Pete Wright Cc: freebsd-x11@freebsd.org References: <2468547c-e4c8-ec5d-413f-e8f5816d9471@gjunka.com> <85b0dff6-ba6d-2fd9-b321-0da2e4721f5e@gjunka.com> <8b5f31d8-225b-4fa1-298f-fe0bbef7b9cb@nomadlogic.org> From: Grzegorz Junka Message-ID: Date: Tue, 22 Sep 2020 08:11:56 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <8b5f31d8-225b-4fa1-298f-fe0bbef7b9cb@nomadlogic.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4BwYtk3j2hz4ftt X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of list1@gjunka.com designates 88.98.225.149 as permitted sender) smtp.mailfrom=list1@gjunka.com X-Spamd-Result: default: False [-2.28 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.995]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:88.98.225.149:c]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[gjunka.com]; NEURAL_HAM_LONG(-1.04)[-1.040]; NEURAL_SPAM_SHORT(0.05)[0.051]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:56478, ipnet:88.98.192.0/18, country:GB]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-x11] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2020 08:11:59 -0000 On 21/09/2020 17:14, Pete Wright wrote: > > > On 9/21/20 12:09 AM, Grzegorz Junka wrote: >> On 21/09/2020 00:45, Jan Beich wrote: >>> Grzegorz Junka writes: >>> >>>> With the new drm-kmod, is it possible to specify which card should be >>>> used for X11? >>> Do you mean BusID in xorg.conf(5) ? >> >> That's the reason why I am asking, in the new X11 there is no >> xorg.conf file. At least I don't seem to be able to find one. It's >> all configured automatically through mode setting if I understand >> this correctly? > > You can still use an xorg.conf with xorg-1.20.x, but the recommend > method is to let auto-detection work.  what i do is drop configuration > snippets in /usr/local/etc/x11/xorg.conf.d/.  for example when testing > out adjustments to my GPU I have a file 10-amdgpu.conf which includes > the pertinent configuration section for that device - for example: > > Section "Device" >     Identifier  "Card0" >     Driver      "amdgpu" >     BusID       "PCI:38:0:0" > EndSection > > hope this is helpful, > -pete > Yes, this helps. Thanks. If I understand this correctly, this would be needed if I wanted to use both cards, otherwise I can just install either NVidia or AMD driver and they would pick up the right hardware as the default one to use with xorg automatically? GrzegorzJ