Skip to content

Instantly share code, notes, and snippets.

@modulitos
Last active October 8, 2016 08:02
Show Gist options
  • Save modulitos/eb18ec7099ea3f3557a3 to your computer and use it in GitHub Desktop.
Save modulitos/eb18ec7099ea3f3557a3 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Initializes Bumblebee for multi-screen functionality.
xorg_process=$(ps aux | grep 'Xorg' | awk '{print $2}')
kill -15 $xorg_process
rmmod nvidia
tee /proc/acpi/bbswitch <<<OFF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment