summaryrefslogtreecommitdiff
path: root/sys-power/bbswitch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-10-23 20:51:48 +0100
committerV3n3RiX <venerix@rogentos.ro>2016-10-23 20:51:48 +0100
commit6f6762411d44f0805450901cec7c526d09ea039b (patch)
tree16673740ae02ad65232fe0a6a4b82f0cedbab260 /sys-power/bbswitch
parent277b051f070f314b5918868bae5a890f42f99455 (diff)
bbswitch-dkms
Diffstat (limited to 'sys-power/bbswitch')
-rw-r--r--sys-power/bbswitch/bbswitch-0.8-r1.ebuild24
-rw-r--r--sys-power/bbswitch/files/bbswitch.modprobe1
2 files changed, 25 insertions, 0 deletions
diff --git a/sys-power/bbswitch/bbswitch-0.8-r1.ebuild b/sys-power/bbswitch/bbswitch-0.8-r1.ebuild
new file mode 100644
index 00000000..f5254c4d
--- /dev/null
+++ b/sys-power/bbswitch/bbswitch-0.8-r1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="Toggle discrete NVIDIA Optimus graphics card"
+HOMEPAGE="https://github.com/Bumblebee-Project/bbswitch"
+SLOT="0"
+LICENSE="GPL-3+"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="=sys-kernel/${PN}-dkms-${PV}"
+RDEPEND=""
+
+S=${WORKDIR}
+
+src_install() {
+ insinto /etc/modprobe.d
+ newins "${FILESDIR}"/bbswitch.modprobe bbswitch.conf
+}
diff --git a/sys-power/bbswitch/files/bbswitch.modprobe b/sys-power/bbswitch/files/bbswitch.modprobe
new file mode 100644
index 00000000..dd6500c7
--- /dev/null
+++ b/sys-power/bbswitch/files/bbswitch.modprobe
@@ -0,0 +1 @@
+options bbswitch load_state=-1 unload_state=-1 \ No newline at end of file