Re: NVIDIA driver problem

From: Chris <bsd-lists_at_bsdforge.com>
Date: Mon, 07 Nov 2022 03:40:03 UTC
On 2022-11-06 14:47, Wojciech Puchar wrote:
> i have one on laptop
> 
> build nvidia-driver-390
> 
> it loads fine (kldload nvidia-modeset.ko)
> 
> nvidia0: <NVS 5200M> 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.154  Wed Jun 22 04:42:19 UTC 2022
> 
> 
> i configured Xorg as for a guide. no xorg.conf
> 
> in xorg.conf.d file nvidia-driver.conf
> 
> https://forums.freebsd.org/threads/howto-setup-xorg-with-nvidias-driver.52311/
> 
> Xorg doesn't start. It loads nvidia driver for Xorg but just says no screen 
> found.
> 
> How can i diagnose a problem?
The first place to start is /var/log/Xorg.0.log.
It should dump some pretty informative information that should explain why 
Xorg(1)
doesn't think it find a screen. :-)
Almost all my rigs use the Nvidia driver. I have found that only sometimes I 
must
also add the BusID:
BusID		"PCI:0:13:0"
Otherwise after loading nvidia, X seems to do it's job. Here's mine, in case 
it
provides any help:

# /usr/local/etc/X11/xorg.conf.d/driver-nvidia.conf
Section "Device"
	Identifier	"Card0"
	Driver		"nvidia"
#	BusID		"PCI:0:13:0"
EndSection

--chris