Solved nvidia-driver for 14.3-STABLE

I have nvidia GTX-1650 on my 14.3-STABLE box and was working fine since last upgrade of base packages. Like before, I have installed x11/nvidia-driver and graphics/nvidia-drm-61-kmod from ports. But the driver is not working. During boot there was an error of nvidia-driver and nvidia-modeset version mismatch as indicated in dmesg.today ,

Code:
nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  580.95.05  Tue Sep 23 09:31:22 UTC 2025
Reinstall of driver of no use. What I can do now.
 
During boot there was an error of nvidia-driver and nvidia-modeset version mismatch as indicated in dmesg.today ,
That's not an error you posted. What you posted showed it loaded the module.

And if you want to use the NVidia DRM module, you need to load nvidia-drm. You also need to add an entry in loader.conf:
Code:
Modesetting must be enabled to use nvidia-drm.ko for graphics. This can be done
by setting the modeset sysctl, the equivalent of the modeset kernel parameter
on Linux.

hw.nvidiadrm.modeset=1

This must be set before loading nvidia-drm.ko, most easily done by placing the
above in /boot/loader.conf.
 
Yes, the error was shown in the boot terminal what I could not copy. It was working earlier. Further the files in /boot/modules have not been changed as shown below, except for nvidia-drm-61-kmod
Code:
drwxr-xr-x   2 root wheel -       512 Nov 17 17:56 ./
drwxr-xr-x  15 root wheel -      3584 Nov 17 17:59 ../
-r--r--r--   1 root wheel -  10894048 Sep 24 23:28 amdgpu.ko
-r--r--r--   1 root wheel -     56888 Sep 24 23:28 dmabuf.ko
-r--r--r--   1 root wheel -    953440 Sep 24 23:28 drm.ko
-r--r--r--   1 root wheel -   3332344 Sep 24 23:28 i915kms.ko
-rw-r--r--   1 root wheel -     11596 Nov 17 17:56 linker.hints
-r--r--r--   1 root wheel -    165488 Nov 17 17:56 nvidia-drm.ko
-r--r--r--   1 root wheel -   2107336 Oct 11 05:18 nvidia-modeset.ko
-r--r--r--   1 root wheel - 112565944 Oct 11 05:18 nvidia.ko
-r--r--r--   1 root wheel -  74848568 Oct 11 05:18 nvidia_gsp_ga10x_fw.ko
-r--r--r--   1 root wheel -  30324128 Oct 11 05:18 nvidia_gsp_tu10x_fw.ko
-r--r--r--   1 root wheel -   2366872 Sep 24 23:28 radeonkms.ko
-r--r--r--   1 root wheel -    101480 Sep 24 23:28 ttm.ko
 
You need to have the same version of nvidia-driver and nvdia-kmod.
Are you sure you have, for both, either 580.105.08 or 580.95.05?

This is an example of what you should not have:
Code:
[1-0] # pkg query -x '[%R] %o %n %v' '(^nvidia-(driver$|kmod$))'|column -t
[FreeBSD]        x11/nvidia-driver  nvidia-driver  580.95.05
[FreeBSD-kmods]  x11/nvidia-kmod    nvidia-kmod    580.105.08.1403000
 
Back
Top