From owner-freebsd-x11@freebsd.org Tue Sep 22 14:46:03 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 E0F163EB3C6 for ; Tue, 22 Sep 2020 14:46:03 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [174.136.98.114]) (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 "mail.nomadlogic.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BwkdQ4jshz4694 for ; Tue, 22 Sep 2020 14:46:02 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from [192.168.1.159] (cpe-23-243-161-111.socal.res.rr.com [23.243.161.111]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id e46e1fbc (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 22 Sep 2020 14:46:00 +0000 (UTC) Subject: Re: GPU selection To: Grzegorz Junka 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: Pete Wright Message-ID: <904906f5-4fa4-0aeb-46c5-a766250ad4fe@nomadlogic.org> Date: Tue, 22 Sep 2020 07:46:00 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4BwkdQ4jshz4694 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of pete@nomadlogic.org designates 174.136.98.114 as permitted sender) smtp.mailfrom=pete@nomadlogic.org X-Spamd-Result: default: False [-2.61 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.04)[-1.043]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[nomadlogic.org]; NEURAL_HAM_MEDIUM(-0.97)[-0.973]; RECEIVED_SPAMHAUS_PBL(0.00)[23.243.161.111:received]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.30)[-0.297]; 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:25795, ipnet:174.136.96.0/20, country:US]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-x11]; RCVD_COUNT_TWO(0.00)[2] 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 14:46:04 -0000 On 9/22/20 1:11 AM, Grzegorz Junka wrote: > > 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? > that is what I would expect to happen, so it may be worth experimenting with that.  although, i wouldn't be surprised if you would need to specify an Xorg config to ensure your desired video card is used. one thing that is helpful that I forgot to mention - Xorg driver packages (xf86-video-amdgpu for example) drop an example code snippet in /usr/local/share/X11/xorg.conf.d/ suitable for use in /usr/local/etc/X11/xorg.conf.d/.  this has helped me when setting things up since i don't have to start from scratch. -p -- Pete Wright pete@nomadlogic.org @nomadlogicLA