Add NVIDIA driver to built-in Xorg configuration?

Tobias Kortkamp t at tobik.me
Tue Jul 19 14:32:40 UTC 2016


Hi,

would it be possible to include the following patch in
x11-servers/xorg-server?  It adds the NVIDIA driver to the built-in X
configuration.  It would remove the need to have an xorg.conf on systems
with an NVIDIA GPU which have to use x11/nvidia-driver.  I think it's a
source of unnecessary friction that doesn't really need to be there.  It
was deceptively simple to add, so I'm sure I'm missing something. ;-)

Thanks,
Tobias

https://cgit.freedesktop.org/xorg/xserver/tree/hw/xfree86/common/xf86pciBus.c?id=xorg-server-1.17.4#n1187
===================================================================
--- files/patch-hw_xfree86_common_xf86pciBus.c  (nonexistent)
+++ files/patch-hw_xfree86_common_xf86pciBus.c  (working copy)
@@ -0,0 +1,10 @@
+--- 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;
+     }


More information about the freebsd-x11 mailing list