summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc/bumblebee/files')
-rw-r--r--x11-misc/bumblebee/files/bumblebee.confd3
-rw-r--r--x11-misc/bumblebee/files/bumblebee.envd9
-rw-r--r--x11-misc/bumblebee/files/bumblebee.initd23
-rw-r--r--x11-misc/bumblebee/files/nvidia-uvm-support.patch39
4 files changed, 0 insertions, 74 deletions
diff --git a/x11-misc/bumblebee/files/bumblebee.confd b/x11-misc/bumblebee/files/bumblebee.confd
deleted file mode 100644
index 1c70206..0000000
--- a/x11-misc/bumblebee/files/bumblebee.confd
+++ /dev/null
@@ -1,3 +0,0 @@
-# /etc/conf.d/bumblebee
-
-BUMBLEBEE_EXTRA_OPTS="--use-syslog" \ No newline at end of file
diff --git a/x11-misc/bumblebee/files/bumblebee.envd b/x11-misc/bumblebee/files/bumblebee.envd
deleted file mode 100644
index 59dfe1d..0000000
--- a/x11-misc/bumblebee/files/bumblebee.envd
+++ /dev/null
@@ -1,9 +0,0 @@
-# Comment this out if you are using VirtualGL also for other purposes and this
-# slows down things for you.
-VGL_READBACK="pbo"
-
-# Workaround for Bumblebee no longer working with current mesa.
-# (See: https://github.com/amonakov/primus/issues/201
-# https://bugs.archlinux.org/task/58933
-# ) But only if the TearFree thing does not work...
-PRIMUS_UPLOAD=1
diff --git a/x11-misc/bumblebee/files/bumblebee.initd b/x11-misc/bumblebee/files/bumblebee.initd
deleted file mode 100644
index 58f6d8b..0000000
--- a/x11-misc/bumblebee/files/bumblebee.initd
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-depend() {
- need localmount
-}
-
-PIDFILE="${PIDFILE:-/var/run/bumblebee.pid}"
-
-start() {
- ebegin "Starting BumbleBee Daemon"
- start-stop-daemon -S -p "${PIDFILE}" -x /usr/sbin/bumblebeed -- -D ${BUMBLEBEE_EXTRA_OPTS} --pidfile "${PIDFILE}"
- eend $?
-}
-
-stop() {
-
- ebegin "Stopping BumbleBee Daemon"
- start-stop-daemon -K -p "${PIDFILE}" -R SIGTERM/10
- eend $?
-}
diff --git a/x11-misc/bumblebee/files/nvidia-uvm-support.patch b/x11-misc/bumblebee/files/nvidia-uvm-support.patch
deleted file mode 100644
index f0c92cb..0000000
--- a/x11-misc/bumblebee/files/nvidia-uvm-support.patch
+++ /dev/null
@@ -1,39 +0,0 @@
---- a/src/bbsecondary.c 2019-01-01 14:54:00.322574712 +0100
-+++ b/src/bbsecondary.c 2019-01-01 14:56:06.237570395 +0100
-@@ -119,6 +119,23 @@
- if (!module_load(module_name, driver_name)) {
- set_bb_error("Could not load GPU driver");
- return false;
-+ } else {
-+ /* XXX NVIDIA UVM support */
-+ if (strstr(module_name, "nvidia")) { /* We are using NVIDIA's proprietary driver */
-+ char uvm_module_name[1024];
-+ sprintf(uvm_module_name, "%s-uvm", module_name);
-+ if (!module_load(uvm_module_name, "nvidia_uvm")) {
-+ char log_string[1024];
-+ sprintf(log_string, "Cannot load UVM module: %s\n", uvm_module_name);
-+ bb_log(LOG_ERR, log_string);
-+ /* Let's try the new nvidia-modeset if they have no uvm module installed: */
-+ sprintf(uvm_module_name, "%s-modeset", module_name);
-+ if (!module_load(uvm_module_name, "nvidia_uvm")) {
-+ sprintf(log_string, "Cannot load MODESET module either: %s\n", uvm_module_name);
-+ bb_log(LOG_ERR, log_string);
-+ }
-+ }
-+ }
- }
- }
- return true;
-@@ -244,6 +261,12 @@
- if (unload_driver || bb_config.force_driver_unload) {
- /* unload the driver loaded by the graphica card */
- if (pci_get_driver(driver, pci_bus_id_discrete, sizeof driver)) {
-+ /* XXX NVIDIA UVM support */
-+ if (strstr(driver, "nvidia")) {
-+ module_unload("nvidia_drm");
-+ module_unload("nvidia_modeset");
-+ module_unload("nvidia_uvm");
-+ }
- module_unload(driver);
- }
- }