From 6f6762411d44f0805450901cec7c526d09ea039b Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 23 Oct 2016 20:51:48 +0100 Subject: bbswitch-dkms --- sys-power/bbswitch/bbswitch-0.8-r1.ebuild | 24 ++++++++++++++++++++++++ sys-power/bbswitch/files/bbswitch.modprobe | 1 + 2 files changed, 25 insertions(+) create mode 100644 sys-power/bbswitch/bbswitch-0.8-r1.ebuild create mode 100644 sys-power/bbswitch/files/bbswitch.modprobe (limited to 'sys-power/bbswitch') 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 -- cgit v1.2.3