From owner-freebsd-questions@freebsd.org Tue Aug 18 15:39:44 2020 Return-Path: Delivered-To: freebsd-questions@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 97D3B3BFBDB for ; Tue, 18 Aug 2020 15:39:44 +0000 (UTC) (envelope-from pulley@dabus.com) Received: from aegir.dabus.com (aegir.dabus.com [166.70.184.35]) by mx1.freebsd.org (Postfix) with ESMTP id 4BWFTW3Qv4z4GMV for ; Tue, 18 Aug 2020 15:39:43 +0000 (UTC) (envelope-from pulley@dabus.com) Received: from aegir.dabus.com (aegir [166.70.184.35]) by aegir.dabus.com (Processor) with ESMTP id C874B11EC00 for ; Tue, 18 Aug 2020 09:39:34 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=dabus.com; h=date:from:to :subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=aegir1; bh=wMQn0Cbs0x 6UVku2W2X1cokGejI=; b=eKcB2RaY+THOk8vif2t4B1nus98ZC+xTb6wu6MK1wl /jX07Oi8Bbgwm2e6GotBYm/mnhqSjtT6e32ZlR+gtucgnmxtFA48lpIvFTa16siY SmTv+yIWVufyPfrGeNzGtglwFoqMpohmqytkA+4LJsPJTBhEVhuXGlgpKJGFuVXB k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=dabus.com; h=date:from:to :subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; q=dns; s=aegir1; b=g9fN 0VsKMkpJxQHHDjhPOCo0ImlJNl3fjHncbvYq2SfFCc1eJI7LqnnyxRTiwBMaEPzM ArC3ItXx4sfzmx0jFAwtKgHtx6xtNHHFtXhCHe/qmK7HpNkYH/hXMD81CRu+SdtN q8KXV6xYtCVFJ7Uu/cY0zCm0I5azFS6TMP24P7w= Received: from localhost (unknown [192.168.10.6]) by aegir.dabus.com (Dabus) with ESMTPA id C033511EBFD for ; Tue, 18 Aug 2020 09:39:34 -0600 (MDT) Date: Tue, 18 Aug 2020 09:39:33 -0600 From: Eric S Pulley To: freebsd-questions@freebsd.org Subject: Re: Nvidia on FreeBSD Message-ID: <20200818093933.0000195e@dabus.com> In-Reply-To: References: <66e8ebe25c8952ef651ecdb46a8b4dc1.squirrel@webmail.harte-lyne.ca> Organization: Dabus X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4BWFTW3Qv4z4GMV X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=dabus.com header.s=aegir1 header.b=eKcB2RaY; dmarc=none; spf=pass (mx1.freebsd.org: domain of pulley@dabus.com designates 166.70.184.35 as permitted sender) smtp.mailfrom=pulley@dabus.com X-Spamd-Result: default: False [-0.78 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[dabus.com:s=aegir1]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; SH_EMAIL_DBL_DONT_QUERY_IPS(0.00)[0.0.0.64:email]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; HAS_ORG_HEADER(0.00)[]; DMARC_NA(0.00)[dabus.com]; DBL_PROHIBIT(0.00)[0.0.0.64:email]; DKIM_TRACE(0.00)[dabus.com:+]; NEURAL_HAM_SHORT(-0.38)[-0.376]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:6315, ipnet:166.70.0.0/16, country:US]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2020 15:39:44 -0000 On Mon, 17 Aug 2020 14:43:54 -0400 Aryeh Friedman wrote: > On Mon, Aug 17, 2020 at 2:14 PM James B. Byrne via freebsd-questions < > freebsd-questions@freebsd.org> wrote: > > > > > These are the installed packages relating to nvidia: > > > > [root@vhost01 ~ (master)]# pkg info -x drm > > libdrm-2.4.102,1 > > > > > > [root@vhost01 ~ (master)]# pkg info -x nvidia > > nvidia-driver-390-390.138 > > > > This is what I have in rc.conf: > > > > kld_list="cuse fuse linux nvidia nvidia-modeset" > > > > > > This is everything from dmesg that I can identify as being related > > to nvidia or > > video: > > > > VT(vga): resolution 640x480 > > > > > > > > vtvga0: on motherboard > > > > > > > > hdacc0: at cad 0 on hdac0 > > hdaa0: at nid 1 on hdacc0 > > pcm0: at nid 4 on hdaa0 > > pcm1: at nid 5 on hdaa0 > > > > > > > > nvidia0: on vgapci0 > > vgapci0: child nvidia0 requested pci_enable_io > > vgapci0: child nvidia0 requested pci_enable_io > > nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX > > platforms > > 390.138 Thu May 14 04:04:42 PDT 2020 > > > > > > > > AMD-Vi: IVRS Info VAsize = 64 PAsize = 48 GVAsize = 2 flags:0 > > driver bug: Unable to set devclass (class: ppc devname: (unknown)) > > ivhd0: on acpi0 > > ivhd0: Flag:b0 > > ivhd0: Features(type:0x11) MsiNumPPR = 0 PNBanks= 2 PNCounters= 0 > > ivhd0: Extended features[31:0]:22294ada > > HATS = 0x2 > > GATS = 0x0 GLXSup = 0x1 SmiFSup = 0x1 SmiFRC = 0x2 GAMSup = 0x1 > > DualPortLogSup > > = 0x2 DualEventLogSup = 0x2 > > ivhd0: Extended features[62:32]:f77ef Max PASID: 0x2f > > DevTblSegSup = 0x3 > > MarcSup = 0x1 > > ivhd0: supported paging level:7, will use only: 4 > > ivhd0: device range: 0x0 - 0xffff > > ivhd0: PCI cap 0x190b640f@0x40 feature:19 > > > > > > I have two Ancore Communiucations Inc. 23" monitors that previously > > ran at 1920 > > x 1080, 60 Hz. One of these is presently attached to the DVI port > > of the Nvidia card. It is considered unknow by mate and reporta a > > resolution of 1024 > > x 768 but the display looks more like 800 x 600. > > > > What are the next steps to get this thing recognized. > > > > Steps: > 1. Remove all mention of DRM from your configs and delete the > kld_list line from /etc/rc.conf > 1. deinstall/delete *ALL* packages > 2. Get a copy of the /usr/ports directly that is recent > 3. Build /usr/ports/X11/nvidia-driver-390 from source as follows: > (optional) cd /usr/ports/ports-mgmt/portmaster > cd /usr/ports > rehash > portmaster X11/nvidia-driver-390 > 4. Add to /boot/loader.conf: > nvidia-modeset_enable="YES" > 5. Reboot > 6. Reinstall whatever other X stuff you want (after verifying that > nvdia-modeset is loaded) Why such a drastic step as to have him remove everything? Nivida FreeBSD drivers usually just work. Seems over kill to have hem remove and hand compile everything. Just remove anything nvidia then install: nvidia-driver-390 nvidia-xconfig-440 nvidia-settings-440 make sure: nvidia-modeset_load="YES" is in loader.conf and: linux_enable="YES" is in rc.conf. reboot (or do the kldload commands but rebooting makes sure you got it right.) and run: nvidia-xconfig Start X. it should come up on both monitors. If it only comes up on one or it's mirrored or the wrong res run nvidia-settings and set it how you want. May want to just do startx and make sure it works with twm and get you res/monitor layout set before adding in any DE's Once that all works if you need additional fonts or other stuff added to you xconf add them in by hand. Remember to "Merge" the file if you ever need to save a xconf fron nvidia-settings again. Working fine for *long* time now with my gtx5xx-9xx cards here. All sorts of different window managers/DEs over the years. -- esp