From a6098bbffed3a89d368f9ee777d3af17f088da22 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 22 Oct 2016 18:43:40 +0100 Subject: make sure nvidia-drm module does not brake optimus as nvidia-modeset module did --- ...lebee-3.2.1-handle-nvidia-modeset-and-nvidia-drm.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 x11-misc/bumblebee/files/bumblebee-3.2.1-handle-nvidia-modeset-and-nvidia-drm.patch (limited to 'x11-misc/bumblebee/files/bumblebee-3.2.1-handle-nvidia-modeset-and-nvidia-drm.patch') diff --git a/x11-misc/bumblebee/files/bumblebee-3.2.1-handle-nvidia-modeset-and-nvidia-drm.patch b/x11-misc/bumblebee/files/bumblebee-3.2.1-handle-nvidia-modeset-and-nvidia-drm.patch new file mode 100644 index 00000000..e71dd086 --- /dev/null +++ b/x11-misc/bumblebee/files/bumblebee-3.2.1-handle-nvidia-modeset-and-nvidia-drm.patch @@ -0,0 +1,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-22 18:41:42.151021720 +0100 +@@ -96,7 +96,10 @@ + int retries = 30; + bb_log(LOG_INFO, "Unloading %s driver\n", driver); + char *mod_argv[] = { +- "rmmod", ++ "modprobe", ++ "-r", ++ "nvidia_modeset", ++ "nvidia_drm", + driver, + NULL + }; -- cgit v1.2.3