rc.conf shows nvidia-modeset not found.

This prize numpty has installed:

Code:
$ pkg info -a | grep nvidia
nvidia-driver-580.95.05        NVidia graphics card binary drivers for hardware OpenGL rendering
nvidia-kmod-580.95.05.1403000  kmod part of NVidia graphics card binary drivers for hardware OpenGL rendering
nvidia-settings-580.95.05      Display Control Panel for X NVidia driver
nvidia-xconfig-580.95.05       Tool to manipulate X configuration files for the NVidia driver

And in /boot/loader.conf:

Code:
hw.nvidiadrm.modeset="1"

And at the end of /etc/rc.conf:

Code:
kldlist+="/boot/modules/nvidia-modeset"

But I keep seeing console errors about nvidia-modeset not being found, and startx fails to start Openbox.

Code:
$ locate nvidia-modeset
/boot/modules/nvidia-modeset.ko
/usr/ports/x11/nvidia-driver/files/460-patch-src_nvidia-modeset_nvidia-modeset-freebsd.c
/usr/ports/x11/nvidia-driver/files/extra-patch-src_nvidia-modeset_nvidia-modeset-freebsd.c
/usr/ports/x11/nvidia-driver/files/extra-patch-src_nvidia-modeset_nvidia-modeset-freebsd.c.in

But the strange thing is I can simply do:

doas kldload nvidia-modeset

And then use startx and run Openbox as normal.

I have tried without the full filepath in rc.conf. I see no difference. Really confused here.

All comments appreciated.
 
I am using:

kld_list="nvidia-drm"

But you also need (14.3-RELEASE-p5)

Code:
shell$ dmesg | grep -i geforce
nvidia0: <NVIDIA GeForce RTX 4070 Laptop GPU> on XXXXXX
shell$

Code:
shell$ cat /boot/loader.conf
#
# NVidia
#
hw.nvidiadrm.modeset=1

Code:
shell$ pkg info | grep nvidia
drm-61-kmod-6.1.128.1403000_7  Direct Rendering Manager GPU drivers
nvidia-drm-61-kmod-580.95.05.1403000 NVIDIA DRM Kernel Module
nvidia-driver-580.95.05        NVidia graphics card binary drivers for hardware OpenGL rendering
nvidia-kmod-580.95.05.1403000  kmod part of NVidia graphics card binary drivers for hardware OpenGL rendering
shell$

Code:
shell$ kldstat | grep nvidia
20    1 0xffffffff83268000    14a70 nvidia-drm.ko
26    2 0xffffffff83400000  6058178 nvidia.ko
29    1 0xffffffff89459000   1650f8 nvidia-modeset.ko
shell$

Code:
Section "Device"
    Identifier    "Card0"
    Driver        "nvidia"
EndSection
Depends if you want DRM or not
 
And at the end of /etc/rc.conf:

kldlist+="/boot/modules/nvidia-modeset"
kldlist+=: this would only work with sysrc(8) which is a tool to configure rc.conf via command line without using an editor. The plus is for adding another one to the current kld_list in rc.conf file, without the plus, it would override the list in rc.conf and just place this one.

Code:
# sysrc kld_list+=foo
kld_list: amdtemp amdgpu -> amdtemp amdgpu foo
# sysrc kld_list=foo
kld_list: amdtemp amdgpu foo -> foo
 
Back
Top