From nobody Wed Jun 15 09:58:41 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 1B702841018 for ; Wed, 15 Jun 2022 09:58:55 +0000 (UTC) (envelope-from graham@menhennitt.com.au) Received: from bumble.maple.relay.mailchannels.net (bumble.maple.relay.mailchannels.net [23.83.214.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4LNLNs5vgNz3LKV for ; Wed, 15 Jun 2022 09:58:53 +0000 (UTC) (envelope-from graham@menhennitt.com.au) X-Sender-Id: dreamhost|x-authsender|graham@menhennitt.com.au Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id E5CD11221D6; Wed, 15 Jun 2022 09:58:45 +0000 (UTC) Received: from pdx1-sub0-mail-a210.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 714DE12196C; Wed, 15 Jun 2022 09:58:45 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1655287125; a=rsa-sha256; cv=none; b=lpb/x5BbHa79bH0WAyIx7QelvT+SQYqI6BGB0kY1XCJCAmFzB1gnpeSORwGPkoG+BB0F0x wGzRntlqS8EJf71SILVEBk6QILYWU3IgicjCm30Fyjwjx+r6tOQ+ZPYaCtGoqm9/etcRsc JSUgqg1ZvFwVAh974ur/uxLh0/1VXvdA8h3xfbDzVdajIm4YECrxoafOnrTvXj5DwufC7e yMF0LtzvtNkiCRw0ytp9C33Qaz60oBJb1kVdtGRkLJ3NJ/tsH3ZiKOn3/ddBdxrcY6//Jq juBIMHcx5QAKZ1wKD36l4PGAhI9UEXLrYYJU3o2vB/4/SSOBjbVsIVqznHJnsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1655287125; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=oplRL8RCd+2ca2GxGTUVF08hQ2RUu+hM/OZGqFiurO4=; b=ly/76rHfp07JueRuR939hjBtbU/enQVopXEfgBMef3qTNWRc+nLxXHHMKp1mQyNWqPPzba hXtb+GoEx9D975+xKQr56XKTffNlhDpJODF4Th6vR4Zfdj3MDQmyIxsWEQXEpQw3+C1IUj LZKsN7D5ZQsmWKjM9zDWcdQyIbutLjUH+W5Ng0PixUBpi8gSw/2UxnvotxyD++cbISlc0X +RZTFQcPRfyb9n4WIAuhR6bJx4qphZ7N8yYtpqfEtOWLjsueqLaoagmUOkFAPrHW9qpUkK 94eT6qd+W5Yv12mt2xjmmCmy2X9GgqYRKG6K/k4zP7eD/lSY1hMOQzP0MP1vyg== ARC-Authentication-Results: i=1; rspamd-786f5898df-89bc2; auth=pass smtp.auth=dreamhost smtp.mailfrom=graham@menhennitt.com.au X-Sender-Id: dreamhost|x-authsender|graham@menhennitt.com.au X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|graham@menhennitt.com.au X-MailChannels-Auth-Id: dreamhost X-Thoughtful-Left: 15c8793a753e9084_1655287125702_769578098 X-MC-Loop-Signature: 1655287125701:3883525960 X-MC-Ingress-Time: 1655287125701 Received: from pdx1-sub0-mail-a210.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.112.55.213 (trex/6.7.1); Wed, 15 Jun 2022 09:58:45 +0000 Received: from [203.2.73.68] (unknown [121.45.245.67]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: graham@menhennitt.com.au) by pdx1-sub0-mail-a210.dreamhost.com (Postfix) with ESMTPSA id 4LNLNg4lsWz89; Wed, 15 Jun 2022 02:58:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=menhennitt.com.au; s=dreamhost; t=1655287124; bh=oplRL8RCd+2ca2GxGTUVF08hQ2RUu+hM/OZGqFiurO4=; h=Content-Type:Date:Subject:To:Cc:From; b=BU415R7rR9pOeQYoFdqKTE5Tlyu62ufGVchu7E5898Yy3OQJ+yNk6dMKenh3MOSkX elZGJu9HLpkI75iJKx0IkmK2tkjJ4Ccdkj0XOPi6R8zv3zNRl8sc0I1wiw/px4yeV3 7qmgF/8AN/yEEFWLa69ZZgBTTR+J8PuYDYT2jz8DJj87avngvhk4b15HwTOaBwRXmx 1/uFOvL4CahVjyVHXlRDwkepOVsBsXalSv8HXF+WJ94TrZPmwXWFhlZYaVF4C4E255 PkgeeyLbuNYnhD0taI7qVyhbkfintvUVqhKv2t29EtGN96EN4HWK9EPVxyAKcwfpb4 vsq+P4uss1dEQ== Content-Type: multipart/alternative; boundary="------------vOOpDZht8DiEpGZOqlsFRs4w" Message-ID: <39f3b588-3a17-94d2-418a-06de2ffcbf00@menhennitt.com.au> Date: Wed, 15 Jun 2022 19:58:41 +1000 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: can't get NVIDIA driver working SOLVED Content-Language: en-US To: Pete Wright Cc: freebsd-x11@freebsd.org References: <20220611153042.dptaj6apl7jzureo@colony> From: Graham Menhennitt In-Reply-To: <20220611153042.dptaj6apl7jzureo@colony> X-Rspamd-Queue-Id: 4LNLNs5vgNz3LKV X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=menhennitt.com.au header.s=dreamhost header.b=BU415R7r; arc=pass ("mailchannels.net:s=arc-2022:i=1"); dmarc=none; spf=none (mx1.freebsd.org: domain of graham@menhennitt.com.au has no SPF policy when checking 23.83.214.25) smtp.mailfrom=graham@menhennitt.com.au X-Spamd-Result: default: False [-4.27 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; RCVD_COUNT_FIVE(0.00)[5]; R_DKIM_ALLOW(-0.20)[menhennitt.com.au:s=dreamhost]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[menhennitt.com.au]; RECEIVED_SPAMHAUS_PBL(0.00)[121.45.245.67:received]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[menhennitt.com.au:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[23.83.214.25:from]; NEURAL_HAM_SHORT(-0.97)[-0.971]; MLMMJ_DEST(0.00)[freebsd-x11]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:36483, ipnet:23.83.208.0/21, country:CA]; MID_RHS_MATCH_FROM(0.00)[]; ARC_ALLOW(-1.00)[mailchannels.net:s=arc-2022:i=1] X-ThisMailContainsUnwantedMimeParts: N This is a multi-part message in MIME format. --------------vOOpDZht8DiEpGZOqlsFRs4w Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 12/6/22 01:30, Pete Wright wrote: > On Fri, Jun 10, 2022 at 03:36:03PM +1000, Graham Menhennitt wrote: >> Hello FreeBSD-X11 people, >> >> I've just installed 13.1-Release on an AMD-64 machine with an GeForce GT545 >> card. Xorg starts ok but it it doesn't seem to recognise the NVIDIA driver >> and so I only get VGA resolution. I'd like some help getting the higher >> resolution and acceleration from the driver, please. >> >> After a basic FreeBSD installation, I've done: >> >>     pkg install xorg kde5 sddm nvidia-driver-390 >> >> In rc.conf, I loaded the nvidia driver and started sddm. I then rebooted. >> The system comes up and starts sddm but at only 1024 x 768 resolution. >> >> See below for the output from nvidia-debugdump, nvidia-smi, kldstat. Also, >> the relevant sections from rc.conf and the contents of /var/log/Xorg.0.log. > > a couple things that may be worth testing: > > 1. do you get the same results when loading the "nvidia-modeset" vs "nvidia" > 2. what does "pciconf -lv" report the PCI id for your nvidia device as? for > example here is how it is reporting on one of my systems: > > vgapci1@pci0:60:0:0: class=0x030200 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1d34 subvendor=0x17aa subdevice=0x22a2 > vendor = 'NVIDIA Corporation' > device = 'GP108GLM [Quadro P520]' > class = display > subclass = 3D > > note this is one of those weird optimus hybrid GPU systems, but pciconf > should point you to the correct device. > > 3. do you have the same issues when using the newer 470 or 510 nvidia drivers? > > > I think ideally Xorg should correctly auto-detect your device so no configs > will be needed to get you working, but hopefully some of these debug steps > will help. > > -pete > Thanks very much for replying, Pete. I finally got it working with two of your hints. Yes, I need nvidia-modeset rather than just nvidia. And I do need the 390 version of the driver for my card. As I suspected, the second problem was the two video cards (one on the motherboard and on the PCI bus). Running "pciconf -lv |grep -B3 display" gives: vgapci0@pci0:16:0:0:    class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1243 subvendor=0x1462 subdevice=0x2315    vendor     = 'NVIDIA Corporation'    device     = 'GF116 [GeForce GT 545]'    class      = display -- vgapci1@pci0:48:0:0:    class=0x030000 rev=0xc9 hdr=0x00 vendor=0x1002 device=0x1638 subvendor=0x1002 subdevice=0x1636    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'    device     = 'Cezanne'    class      = display So I added the following to /usr/local/etc/X11/xorg.conf.d/driver-nvidia.conf to force it to use the Nvidia card: Section "Device"        Identifier "Card0"        Driver     "nvidia"        BusID    "PCI:16:0:0" EndSection And it all works! Thanks again for your help. Graham --------------vOOpDZht8DiEpGZOqlsFRs4w Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 12/6/22 01:30, Pete Wright wrote:
On Fri, Jun 10, 2022 at 03:36:03PM +1000, Graham Menhennitt wrote:
Hello FreeBSD-X11 people,

I've just installed 13.1-Release on an AMD-64 machine with an GeForce GT545
card. Xorg starts ok but it it doesn't seem to recognise the NVIDIA driver
and so I only get VGA resolution. I'd like some help getting the higher
resolution and acceleration from the driver, please.

After a basic FreeBSD installation, I've done:

    pkg install xorg kde5 sddm nvidia-driver-390

In rc.conf, I loaded the nvidia driver and started sddm. I then rebooted.
The system comes up and starts sddm but at only 1024 x 768 resolution.

See below for the output from nvidia-debugdump, nvidia-smi, kldstat. Also,
the relevant sections from rc.conf and the contents of /var/log/Xorg.0.log.

a couple things that may be worth testing:

1. do you get the same results when loading the "nvidia-modeset" vs "nvidia"
2. what does "pciconf -lv" report the PCI id for your nvidia device as?  for
   example here is how it is reporting on one of my systems:

vgapci1@pci0:60:0:0:	class=0x030200 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1d34 subvendor=0x17aa subdevice=0x22a2
    vendor     = 'NVIDIA Corporation'
    device     = 'GP108GLM [Quadro P520]'
    class      = display
    subclass   = 3D

   note this is one of those weird optimus hybrid GPU systems, but pciconf
   should point you to the correct device.

3. do you have the same issues when using the newer 470 or 510 nvidia drivers?


I think ideally Xorg should correctly auto-detect your device so no configs
will be needed to get you working, but hopefully some of these debug steps
will help.

-pete

Thanks very much for replying, Pete.

I finally got it working with two of your hints.

Yes, I need nvidia-modeset rather than just nvidia. And I do need the 390 version of the driver for my card.

As I suspected, the second problem was the two video cards (one on the motherboard and on the PCI bus). Running "pciconf -lv |grep -B3 display" gives:

vgapci0@pci0:16:0:0:    class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1243 subvendor=0x1462 subdevice=0x2315
   vendor     = 'NVIDIA Corporation'
   device     = 'GF116 [GeForce GT 545]'
   class      = display
--
vgapci1@pci0:48:0:0:    class=0x030000 rev=0xc9 hdr=0x00 vendor=0x1002 device=0x1638 subvendor=0x1002 subdevice=0x1636
   vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
   device     = 'Cezanne'
   class      = display

So I added the following
to /usr/local/etc/X11/xorg.conf.d/driver-nvidia.conf to force it to use the Nvidia card:

Section "Device"
        Identifier "Card0"
        Driver     "nvidia"
        BusID    "PCI:16:0:0"
EndSection


And it all works!

Thanks again for your help.

Graham

--------------vOOpDZht8DiEpGZOqlsFRs4w--