I've contacted
almostblue and helped to solve the problem; below the pkg commands used to resolve the mismatch.
The 15.0-RELEASE configurations have been restored to use quarterly. The mismatch that occurred on quarterly between offending drivers has been resolved by a force install of the correctly versioned package.
To get an overview of relevant available packages, you can use:
pkg rquery -x '%n [%R] %v' '^drm-(510-|515-|61-|66-)?kmod|(^nvidia-(d|k))' | sed -En '/^[^ ]+-devel/d;p'| column -t
(Development versions are filtered out.)
Starting from the mismatch situation as happened using quarterly, below is a possible way to correct the situation, and the resulting overview of installed drivers:
Rich (BB code):
[10-0] # pkg query -x '%n [%R] %v' '^drm-(510-|515-|61-|66-)?kmod|(^nvidia-(d|k))' | column -t | nl
1 drm-66-kmod [FreeBSD-ports] 6.6.25.1500068_6
2 drm-kmod [FreeBSD-ports] 20250428
3 nvidia-driver [FreeBSD-ports] 580.95.05
4 nvidia-kmod [FreeBSD-ports-kmods] 580.105.08.1500068
[11-0] # pkg install -f -r FreeBSD-ports nvidia-kmod
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
FreeBSD-ports is up to date.
The following 1 package(s) will be affected (of 0 checked):
Installed packages to be DOWNGRADED:
nvidia-kmod: 580.105.08.1500068 -> 580.95.05.1500068 [FreeBSD-ports]
Number of packages to be downgraded: 1
151 MiB to be downloaded.
Proceed with this action? [y/N]: y
[1/1] Fetching nvidia-kmod-580.95.05.1500068~7d26c97025.pkg: 100% 151 MiB 26.4MB/s 00:06
Checking integrity... done (0 conflicting)
[1/1] Downgrading nvidia-kmod from 580.105.08.1500068 to 580.95.05.1500068...
[1/1] Extracting nvidia-kmod-580.95.05.1500068: 100%
[12-0] # pkg query -x '%n [%R] %v' '^drm-(510-|515-|61-|66-)?kmod|(^nvidia-(d|k))' | column -t | nl
1 drm-66-kmod [FreeBSD-ports] 6.6.25.1500068_6
2 drm-kmod [FreeBSD-ports] 20250428
3 nvidia-driver [FreeBSD-ports] 580.95.05
4 nvidia-kmod [FreeBSD-ports] 580.95.05.1500068
[13-0] #
Alternatively, similar results can be achieved by building
nvidia-driver from source, as has been mentioned. In that case, you'll probably get version
580.105.08
As shown, the mismatch can reveal itself in various ways, for example
I am getting the same behavior, looking at the dmesg excerpt shows the driver loading attempt and the mismatch:
Rich (BB code):
nvidia0: <NVIDIA GeForce GT 1030> 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 580.105.08 Wed Oct 29 22:04:36 UTC 2025
...
NVRM: API mismatch: the client 'Xorg' (pid 2143)
NVRM: has the version 580.95.05, but this kernel module has
NVRM: the version 580.105.08. Please make sure that this
NVRM: kernel module and all NVIDIA driver components
NVRM: have the same version.
NVRM: API mismatch: the client 'Xorg' (pid 2143)
NVRM: has the version 580.95.05, but this kernel module has
NVRM: the version 580.105.08. Please make sure that this
NVRM: kernel module and all NVIDIA driver components
NVRM: have the same version.
This is relevant; above the mismatch is shown on a package level. When running a fully proprietary Nvidia graphics stack, that is: using only proprietary Nvdia (driver) components (see also the configurations settings below), these two need to be of the same version (or at least able to work together successfuly):
Rich (BB code):
[0-0] # pkg which /boot/modules/nvidia-modeset.ko /usr/local/lib/xorg/modules/drivers/nvidia_drv.so
/boot/modules/nvidia-modeset.ko was installed by package nvidia-kmod-580.105.08.1500068
/usr/local/lib/xorg/modules/drivers/nvidia_drv.so was installed by package nvidia-driver-580.95.05
[1-0] #
These two files are a representation of the mismatch on a file level.
A fully proprietary Nvidia graphics stack has these configuration settings:
-
kld_list="nvidia-modeset" in /etc/rc.conf
It references nvidia-modeset.ko
- An appropriatetely configured Xorg .conf file with:
Rich (BB code):
Section "Device"
Identifier "Card0"
Driver "nvidia"
EndSection
it references nvidia-driver.so.