If the file /usr/local/etc/X11/xorg.conf.d/00-video-initgfx.conf
does not exist, or doesn’t contain the line Driver "nvidia"
, create the file with the content
Section "Device"
Identifier "NVIDIA CARD"
VendorName "NVIDIA Corporation"
Driver "nvidia"
EndSection
Then reboot.