aports/main/xorg-server/autoconfig-nvidia.patch
2019-03-07 21:42:23 +00:00

28 lines
599 B
Diff

--- a/hw/xfree86/common/xf86pciBus.c
+++ b/hw/xfree86/common/xf86pciBus.c
@@ -1144,7 +1144,23 @@
int idx = 0;
#if defined(__linux__) || defined(__NetBSD__)
- driverList[idx++] = "nouveau";
+ switch (dev->device_id)
+ {
+ /* NV1 */
+ case 0x0008:
+ case 0x0009:
+ driverList[idx++] = "vesa";
+ break;
+ /* NV3 */
+ case 0x0018:
+ case 0x0019:
+ driverList[idx++] = "nouveau";
+ break;
+ default:
+ driverList[idx++] = "nouveau";
+ driverList[idx++] = "nvidia";
+ break;
+ }
#endif
driverList[idx++] = "nv";
break;