Re: CURRENT: working alternative nVidia GPU driver for x11/nvidia-kmod?

From: FreeBSD User <freebsd_at_walstatt-de.de>
Date: Sat, 29 Nov 2025 13:25:00 UTC
On Sat, 29 Nov 2025 13:18:12 +0100
Tomek CEDRO <tomek@cedro.info> wrote:

> On Sat, Nov 29, 2025 at 1:15 PM FreeBSD User <freebsd@walstatt-de.de> wrote:
> > Since some recent changes to the CURRENT kernel, x11/nividia-kmod/driver is
> > no longer working. Either kernel module nvidia-modeset.ko/nvidia.ko reject
> > to load with a failure when both  the following OIDs are set to ZERO:  
> 
> Do you have this set in /boot/loader.conf for the new nvidia gpu?
> 

Loading the GPU driver module via /etc/rc.conf.local saves me from
crashes/kernel hung in case of a problem, so setting those OIDs in loader.conf
is ineffective here because the module isn't already loaded.

> hw.nvidiadrm.modeset=1
> hw.nvidia.registry.EnableGpuFirmware=1

I've set hw.nvidia.registry.EnableGpuFirmware=1 in /etc/sysctl.conf.local, the
first one not.

Loading "kldload nvidia-modeset" after a successful boot of CURRENT.

Issuing
sysctl hw.nvidia.registry.EnableGpuFirmware=1
hw.nvidia.registry.EnableGpuFirmware: 0 -> 1

but for 
# sysctl hw.nvidiadrm.modeset=1
sysctl: unknown oid 'hw.nvidiadrm.modeset'

> 
> Or this is another problem?
> 
> --
> CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
>