Skip to content

Commit

Permalink
Make sure the card will be deactivated if still active after disablin…
Browse files Browse the repository at this point in the history
…g the x-server..
  • Loading branch information
MrMEEE committed Jul 30, 2011
1 parent dfdd052 commit 57726cc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions install-files/bumblebee.sudo
@@ -1 +1,3 @@
%bumblebee ALL=(ALL:ALL) NOPASSWD: /etc/init.d/bumblebee
%bumblebee ALL=(ALL:ALL) NOPASSWD: /usr/local/bin/bumblebee-enablecard
%bumblebee ALL=(ALL:ALL) NOPASSWD: /usr/local/bin/bumblebee-disablecard
5 changes: 4 additions & 1 deletion install-files/optirun.ubuntu
Expand Up @@ -165,7 +165,10 @@ if [ "$STOP_SERVICE_ON_EXIT" != "NO" ]; then
fi
done
if [ `lspci -v -s $NVIDIABUSID |grep ! |wc -l` -eq 0 ]; then
sudo /etc/init.d/bumblebee disable
sudo /etc/init.d/bumblebee disable
fi
if [ `lspci -v -s $NVIDIABUSID |grep ! |wc -l` -eq 0 ]; then
sudo /usr/local/bin/bumblebee-disablecard
fi
fi

Expand Down
2 changes: 1 addition & 1 deletion install.sh
Expand Up @@ -34,7 +34,7 @@
# You should have received a copy of the GNU General Public License
# along with bumblebee. If not, see <http://www.gnu.org/licenses/>.
#
BUMBLEBEEVERSION=1.7.8
BUMBLEBEEVERSION=1.7.9

source stages/determinedistro

Expand Down

0 comments on commit 57726cc

Please sign in to comment.