debian/0000755000000000000000000000000012251323621007163 5ustar debian/control.modules.in0000644000000000000000000000177512167503605012664 0ustar Source: bbswitch Section: kernel Priority: extra Maintainer: Debian NVIDIA Maintainers Uploaders: Aron Xu , Vincent Cheng , Yunqiang Su Build-Depends: debhelper (>= 9) Standards-Version: 3.9.4 Homepage: https://github.com/Bumblebee-Project/bbswitch Vcs-Git: git://anonscm.debian.org/pkg-nvidia/bbswitch.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-nvidia/bbswitch.git Package: bbswitch-modules-_KVERS_ Architecture: all Depends: linux-image-_KVERS_ Provides: bbswitch-modules Suggests: bumblebee Description: Interface for toggling the power on nVidia Optimus video cards bbswitch is a kernel module which automatically detects the required ACPI calls for two kinds of Optimus laptops. It has been verified to work with "real" Optimus and "legacy" Optimus laptops (at least, that is what the author Lekensteyn calls those). . This package contains the compiled Linux kernel modules for _KVERS_ debian/rules0000755000000000000000000000134312251317712010250 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 name = bbswitch # Parse the package version from the changelog, "borrowed" from acpi_call version := $(shell dpkg-parsechangelog | grep '^Version:' | cut -d' ' -f2 |\ rev | cut -d- -f2- | rev | cut -d':' -f2) %: dh $@ --with dkms build: override_dh_auto_clean: override_dh_auto_build: override_dh_dkms: dh_dkms -p$(name)-dkms -V $(version) override_dh_auto_install: # bbswitch-dkms dh_installdirs -p$(name)-dkms usr/src/$(name)-$(version) dh_install -p$(name)-dkms Makefile usr/src/$(name)-$(version) dh_install -p$(name)-dkms bbswitch.c usr/src/$(name)-$(version) override_dh_installchangelogs: dh_installchangelogs NEWS debian/copyright0000644000000000000000000000240712167503362011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: bbswitch Source: https://github.com/Bumblebee-Project/bbswitch Files: * Copyright: 2011-2013 Bumblebee Project License: GPL-3.0+ Files: debian/* Copyright: 2011-2012 Peter Lekensteyn 2011-2012 Bruno Pagani 2012 Aron Xu 2013 Vincent Cheng License: GPL-3.0+ License: GPL-3.0+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". debian/compat0000644000000000000000000000000212167503362010371 0ustar 9 debian/rules.modules0000644000000000000000000000131312167503373011717 0ustar #!/usr/bin/make -f # module-assistant stuff PACKAGE = bbswitch-modules MA_DIR ?= /usr/share/modass -include $(MA_DIR)/include/generic.make -include $(MA_DIR)/include/common-rules.make kdist_clean: prep-deb-files dh_clean $(MAKE) clean KBUILD=$(KSRC) KVERS=$(KVERS) kdist_config: prep-deb-files binary-modules: kdist_config dh_testdir dh_testroot dh_prep # Build and install the module make -C $(KSRC) M=$(CURDIR) install -D -m 0644 bbswitch.ko debian/$(PACKAGE)-$(KVERS)/lib/modules/$(KVERS)/kernel/drivers/acpi/bbswitch.ko dh_installdocs dh_installchangelogs dh_installmodules dh_compress dh_fixperms dh_installdeb dh_gencontrol -- -v$(VERSION) dh_md5sums dh_builddeb --destdir=$(DEB_DESTDIR) debian/dkms0000644000000000000000000000001712167503362010052 0ustar dkms/dkms.conf debian/control0000644000000000000000000000175312251317676010611 0ustar Source: bbswitch Section: kernel Priority: extra Maintainer: Debian NVIDIA Maintainers Uploaders: Aron Xu , Vincent Cheng , Yunqiang Su Build-Depends: debhelper (>= 9), dkms Standards-Version: 3.9.4 Homepage: https://github.com/Bumblebee-Project/bbswitch Vcs-Git: git://anonscm.debian.org/pkg-nvidia/bbswitch.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-nvidia/bbswitch.git Package: bbswitch-dkms Architecture: linux-any Depends: ${misc:Depends}, dkms Suggests: bumblebee Description: Interface for toggling the power on nVidia Optimus video cards bbswitch is a kernel module which automatically detects the required ACPI calls for two kinds of Optimus laptops. It has been verified to work with "real" Optimus and "legacy" Optimus laptops (at least, that is what the author Lekensteyn calls those). . This package uses DKMS to automatically build the bbswitch kernel module. debian/source/0000755000000000000000000000000012167503362010473 5ustar debian/source/format0000644000000000000000000000001412167503362011701 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000242212251323621011035 0ustar bbswitch (0.7-2ubuntu1) trusty; urgency=low * debian/control, debian/rules: - Remove support for module-assistant so as to comply with the requirements of the MIR. * debian/patches/01_add-support-for-Linux-3.13.patch: - Add support for Linux 3.13. This is also backward compatible. -- Alberto Milone Mon, 09 Dec 2013 12:19:45 +0100 bbswitch (0.7-2) unstable; urgency=low * Add bbswitch-source package to support module-assistant. (Closes: #715398) -- Vincent Cheng Thu, 11 Jul 2013 01:24:11 -0700 bbswitch (0.7-1) unstable; urgency=low * New upstream release. -- Vincent Cheng Wed, 29 May 2013 01:40:23 -0700 bbswitch (0.6-2) unstable; urgency=low * Upload to unstable. -- Vincent Cheng Fri, 03 May 2013 02:05:40 -0700 bbswitch (0.6-1) experimental; urgency=low * New upstream release. * debian/control: - Add Vincent and Yunqiang as Uploaders. - Move to linux-any, since it does not support other platforms. -- Vincent Cheng Tue, 19 Mar 2013 21:35:43 -0700 bbswitch (0.5-1) unstable; urgency=low * Initial release (Closes: #673424) -- Aron Xu Wed, 10 Oct 2012 19:45:33 +0800 debian/patches/0000775000000000000000000000000012251321715010616 5ustar debian/patches/series0000664000000000000000000000004412251321715012031 0ustar 01_add-support-for-Linux-3.13.patch debian/patches/01_add-support-for-Linux-3.13.patch0000664000000000000000000000161612251321715016650 0ustar From 59e978177ae37250f71d91af1cb244b023fc4f72 Mon Sep 17 00:00:00 2001 From: Alberto Milone Date: Mon, 9 Dec 2013 12:00:35 +0100 Subject: [PATCH 1/1] Add support for Linux 3.13 Replace DEVICE_ACPI_HANDLE with ACPI_HANDLE, as the former has been removed in Linux 3.13. This patch also works on older kernels. --- bbswitch.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bbswitch.c b/bbswitch.c index 7f73abe..41f8d5d 100644 --- a/bbswitch.c +++ b/bbswitch.c @@ -400,7 +400,11 @@ static int __init bbswitch_init(void) { pci_class != PCI_CLASS_DISPLAY_3D) continue; +#ifdef ACPI_HANDLE + handle = ACPI_HANDLE(&pdev->dev); +#else handle = DEVICE_ACPI_HANDLE(&pdev->dev); +#endif if (!handle) { pr_warn("cannot find ACPI handle for VGA device %s\n", dev_name(&pdev->dev)); -- 1.7.9.5 debian/watch0000644000000000000000000000015212167503362010222 0ustar version=3 https://github.com/Bumblebee-Project/bbswitch/tags .*/v?(\d.*)\.(?:tgz|tbz2|tar\.(?:gz|bz2|xz)) debian/docs0000644000000000000000000000001212167503362010037 0ustar README.md