Re: versions of NVIDIA driver versus kmod in 15.0
"Edward Sanford Sutton, III" <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.ports |
|---|---|
| Message-ID | <SA1PR11MB88117CAAD9D43B246CCCF424E6B5A@SA1PR11MB8811.namprd11.prod.outlook.com> |
On 12/22/25 19:15, Graham Menhennitt wrote:
> Thanks for replying, Mario.
>
> In that file, I do not have any "FreeBSD-kmods" section. I have
> "FreeBSD-ports", "FreeBSD-ports-kmods", and "FreeBSD-base" (disabled).
FreeBSD-ports-kmods is the new FreeBSD-kmods. It sounds like you have
FreeBSD-ports set to quarterly (580.95.05) and FreeBSD-ports-kmods set
to latest (580.105.08). Check if /etc/pkg/FreeBSD.conf "url:" lines on
both FreeBSD-ports and FreeBSD-ports-kmods sections both contain latest
in them, both have quarterly in them, or if only one is set to quarterly
and one set to latest.
I build my own packages so do not use a separate kmods repo type of
structure but presume that both need to follow the same ports tree
(quartterly/latest) to avoid errors when they interact.
I'm not a package base user yet but presume you do not need to adjust
the FreeBSD-base section since those packages do not come from the ports
tree unlike the other two.
If the official repos still produce drivers that the kmods repo
produces then if you have FreeBSD-ports-kmods disabled and FreeBSD-ports
enabled you should get ports and drivers to have a version that is in
sync. Once 15.1 comes out you likely need to get the drivers from
FreeBSD-ports-kmods since FreeBSD-ports always builds against the oldest
supported 15 and 15.0 is supported for several months after 15.1 comes
around; incompatibilities with kernel modules when the OS version is too
new are why FreeBSD-ports-kmods (previously FreeBSD-kmods) was created.
> So, the way you're suggesting is already what I'm doing.
>
> Is that file not correct?
>
> Thanks again,
>
> Graham
>
> On 22/12/2025 5:47 pm, Mario Marietto wrote:
>> -> I just upgraded my server from 14.3 to 15.0. It went mostly
>> -> successfully, but I can't get my NVIDIA video working.
>>
>> Hello.
>>
>> can you try this method :
>>
>> Before to start upgrading packages,locate /etc/pkg/FreeBSD.conf and be
>> sure that :
>>
>> FreeBSD-kmods: {
>> url: "pkg+https://pkg.FreeBSD.org/${ABI}/
>> kmods_latest_${VERSION_MINOR} <https://pkg.FreeBSD.org/${ABI}/
>> kmods_latest_${VERSION_MINOR}>",
>> mirror_type: "srv",
>> signature_type: "fingerprints",
>> fingerprints: "/usr/share/keys/pkg",
>> enabled: no
>> }
>>
>> is disabled. Then upgrade them and when finished,try to re-enable it.
>>
>> On Mon, Dec 22, 2025 at 7:06 AM Graham Menhennitt
>> <[email protected]> wrote:
>>
>> Hello all,
>>
>> I just upgraded my server from 14.3 to 15.0. It went mostly
>> successfully, but I can't get my NVIDIA video working.
>>
>> When I install the driver, it also installs the kernel module. But
>> they
>> aren't the same version. When I try to run Xorg, it spits out an
>> error
>> because of this.
>>
>> Any clues, please.
>>
>> Thanks in advance,
>> Graham
>>
>> # pkg install nvidia-driver
>> ...
>> New packages to be INSTALLED:
>> egl-wayland: 1.1.20 [FreeBSD-ports]
>> nvidia-driver: 580.95.05 [FreeBSD-ports]
>> nvidia-kmod: 580.105.08.1500068 [FreeBSD-ports-kmods]
>>
>> Then on reboot (excuse any errors as this is manually typed):
>> NVRM: API mismatch: the client Xorg (pid 3302)
>> 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.
>>
>> From dmesg:
>> nvidia0: <NVIDIA GeForce RTX 3050 OEM> 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
>>
>>
>>
>>
>> --
>> Mario.