- Thread Starter
- #26
I had previously a 4070 working with that exact configuration, i.e., the proprietary and the open-source DRM driver co-existed (installed from pkgs), both being kldloaded in rc.conf , as you mention.This may seem elaborate but, I found it rather difficult to get this graphics driver issue clear for myself; this also comes up quite regularly in the forums. Perhaps this is already known.
Using Nvidia graphics hardware and using Xorg, you can use either:
The kernel modules are referenced in /etc/rc.conf:
- 100 % Nvidia proprietory drivers:
- as kernel module: /boot/modules/nvidia-modeset.ko*, contained in x11/nvidia-driver
- as Xorg driver (proprietary Nvidia): /usr/local/lib/xorg/modules/drivers/nvidia_drv.so, also contained in x11/nvidia-driver- mixed: open source driver and Nvidia proprietory driver:
- as open source kernel module /boot/modules/nvidia-drm.ko, contained in graphics/nvidia-drm-61-kmod (or graphics/nvidia-drm-515-kmod), or the meta port graphics/nvidia-drm-kmod
- as Xorg driver (proprietary Nvidia): /usr/local/lib/xorg/modules/drivers/nvidia_drv.so, contained in x11/nvidia-driver and also in graphics/nvidia-drm-61-kmod
Refer also to the descriptions in the package message, as in for example here.
kld-list="nvidia-modeset"
for #1kld-list="nvidia-drm"
** for #2; must be accompanied/preceeded byhw.nvidiadrm.modeset=1
in /boot/loader.conf
The proprietary Nvidia Xorg driver /usr/local/lib/xorg/modules/drivers/nvidia_drv.so is referenced in an appropriate Xorg .conf file embedded inSection "Device"
as in:
Rich (BB code):Driver "nvidia"
For normal Xorg usage the Nvidia proprietary solution works well, usually. You may be experiencing problems because you are using a fairly new Nvidia graphics card.
The use of a mixed port like graphics/nvidia-drm-515-kmod, graphics/nvidia-drm-61-kmod (and graphics/nvidia-drm-66-kmod on -CURRENT) for Xorg-use is, as a general case, not necessary. You will also get these mixed drivers when building the meta port graphics/nvidia-drm-kmod; on 14.2-RELEASE this will result in building and installing graphics/nvidia-drm-61-kmod. The exception is using Wayland where you likely will need the mixed open source-Nvidia proprietary drivers.
Moreover, relating to the quote above, it seems you are in effect inter-mixing these two solutions:
It is unclear how such 'double mixing' affects a working graphics solution in your case; it doesn't help in debugging the issue either.
- solely Nvidia proprietary drivers as in x11/nvidia-driver (this is not a meta port)
- mixed open source and Nvidia proprietary drivers as in graphics/nvidia-drm-kmod (meta port), graphics/nvidia-drm-515-kmod and graphics/nvidia-drm-61-kmod
I suggest, as mentioned by T-Aoki and ashafer, that you do not use the mixed open source-proprietary option #2 and concentrate on the Nvidia proprietary drivers option #1: x11/nvidia-driver (or an original tarball from Nvidia if need be).
___
* this automatically chain loads /boot/modules/nvidia.ko when /boot/modules/nvidia-modeset.ko is kldloaded by specifyingkld_list="nvidia-modeset"
in /etc/rc.conf
** for some elaborate Wayland set ups, I believe, you may need both, that is:kld_list="nvidia-drm nvidia-modeset"
The NVIDIA tarball works, I have a "usable" environment. I want to go back to my previous setup, ideally, that's my motivation here.
I will follow the recommendations as suggested above, namely making sure /usr/src are up-to-date with my running kernel.