With the introduction of nvidia-uvm module, unloading nvidia module will fail unless nvidia-uvm is unloaded. GH-565 suggests using "remove" or "softdep" modprobe.d clauses to teach modprobe to handle that for us; "rmmod" does not have that functionality, so switch to "modprobe -r".
Origin: upstream, https://github.com/Bumblebee-Project/Bumblebee/commit/
1ada79fe5916961fc4e4917f8c63bb184908d986
Bug: https://github.com/Bumblebee-Project/Bumblebee/issues/565
Bug-Debian: 793389
Gbp-Pq: Name modprobe-r-instead-of-rmmod.patch
Ignore error on X shutdown
Origin: upstream, https://github.com/Bumblebee-Project/Bumblebee/commit/
25387e92822fb1a56fa43f1f9f636b987018d068
Gbp-Pq: Name ignore-error-on-X-shutdown.patch
Fix detection of devices on bus numbers larger than 9
Origin: upstream, https://github.com/Bumblebee-Project/Bumblebee/commit/
2073f8537412aa47755eb6f3f22a114403e5285b
Bug: https://github.com/Bumblebee-Project/Bumblebee/issues/573
Gbp-Pq: Name fix-device-detection.patch