summaryrefslogtreecommitdiff
path: root/x11-misc/bumblebee/files/bumblebee-3.2.1-handle-nvidia-modeset-and-nvidia-drm.patch
blob: 736658c1823847d8b6c17f9a7c7da7329dbdcdf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff -Nur a/src/module.c b/src/module.c
--- a/src/module.c	2013-04-26 16:49:03.022174178 +0100
+++ b/src/module.c	2016-10-23 18:21:39.053969992 +0100
@@ -96,7 +96,10 @@
     int retries = 30;
     bb_log(LOG_INFO, "Unloading %s driver\n", driver);
     char *mod_argv[] = {
-      "rmmod",
+      "modprobe",
+      "-r",
+      "nvidia_drm",
+      "nvidia_modeset",
       driver,
       NULL
     };