Here is something for people who compile their own packages and like experimenting with stuff. I've been running Xorg with the following patch applied for a while now.
Currently if you want to use NVIDIA's driver you have to at least create a minimal xorg.conf as per Thread 52311. With the patch applied I don't need to do that anymore. The only thing I have to do to setup Xorg is
Create /usr/ports/x11-servers/xorg-server/files/patch-hw_xfree86_common_xf86pciBus.c with
or use this link to download the file. It adds NVIDIA's driver to Xorg's builtin configuration in preference to the old x11-drivers/xf86-video-nv driver. It should be safe to use even on systems with no NVIDIA GPU.
Recompile and reinstall x11-server/xorg-server with
If you try this and it works (or doesn't) please leave a comment here.
Currently if you want to use NVIDIA's driver you have to at least create a minimal xorg.conf as per Thread 52311. With the patch applied I don't need to do that anymore. The only thing I have to do to setup Xorg is
pkg install nvidia-driver
and sysrc kld_list+=nvidia
.Create /usr/ports/x11-servers/xorg-server/files/patch-hw_xfree86_common_xf86pciBus.c with
Code:
--- hw/xfree86/common/xf86pciBus.c.orig 2016-07-19 15:37:53.698794484 +0200
+++ hw/xfree86/common/xf86pciBus.c 2016-07-19 15:37:26.000000000 +0200
@@ -1192,6 +1192,7 @@
#ifdef __linux__
driverList[idx++] = "nouveau";
#endif
+ driverList[idx++] = "nvidia";
driverList[idx++] = "nv";
break;
}
Recompile and reinstall x11-server/xorg-server with
make -C /usr/ports/x11-server/xorg-server clean reinstall
and remove your xorg.conf, 10-nvidia.conf or whatever you have. See if your X setup still works.If you try this and it works (or doesn't) please leave a comment here.