This quick tutorial refers only to the latest NVIDIA’s OFFICIAL driver for TrueOS/FreeBSD that is available in repos for desktop GPU(S), which are listed as SUPPORTED video cards in FreeBSD.
In this case, I tested and used GTX580 and GTX960 Nvidia’s video adapters.
Install the following 3 packages/files through AppCafe or with pkg install:
As sudo or su do nvidia-xconfig - this will automagically create new basic /etc/X11/xorg.conf configuration file and add entry “kldload_nvidia="nvidia-modeset nvidia” in /etc/rc.conf
Reboot your system
As sudo or su do nvidia-settings. The nvidia-settings GUI utility will start and let you configure additional things within its “X Server Display Configuration” section. If you make any adjustments there, the utility can save (update or replace) your /etc/X11/xorg.conf, which was created initially with nvidia-xconfig. I recommend that you not use the “merge with existing file” option when saving new settings with the utility.
Reboot your system again
If you wish to control/adjust your fan(s) speed (RPMs) of those video adapters you need to add extra Screen Option “CoolBits” entry in /etc/X11/xorg.conf:
Option “Stereo” "0"
Option “metamodes” "2560x1440_60 +0+0"
Option “SLI” "Off"
Option “MultiGPU” "Off"
Option “BaseMosaic” "off"
Option “CoolBits” "4"
This will allow you to adjust your fan(s) constant RMPs. Nvidia driver’s default cooling target is very high and it doesn’t start the fan(s) until the GPU temp reaches 60 C, and then it goes up to 70 C, under stress. Those video adapters should not reach such high temps, even under heavy stress. So having the fans running constantly will not allow the GPU(s) reach high operating temps. and prevent them from overheating under stress. I run my GPU fan setting at 45% wich maintains the GPU’s temp at 28-32 C during normal operation and does not get above 60 C during GLX stress tests.
After each and every reboot or X server re-start, the fan’s RMPs setting/adjustment (CoolBits Option, part of xorg.conf) has to be reset/re-adjusted manually with nvidia-settings GUI util.
The “CoolBits” Option in /etc/X11/xorg.conf can use different numerical values for variety of options, such as OC. You can read about it on the WWW.
And, I don’t see support for CUDA in this driver.