Skip to content

Instantly share code, notes, and snippets.

@GabrielMMelo
Created December 19, 2018 10:55
Show Gist options
  • Save GabrielMMelo/b9c35ac50c8c2af5efd27d95a7ac9bbf to your computer and use it in GitHub Desktop.
Save GabrielMMelo/b9c35ac50c8c2af5efd27d95a7ac9bbf to your computer and use it in GitHub Desktop.
Script thats fixes my unix-like OS problem with nvidia boards
sudo apt-get install bbswitch-dkms
sudo vi /etc/modprobe.d/blacklist.conf
###### add this below
# Blacklist the alternative nvidia module
blacklist nouveau
# Blacklist the original nvidia module
blacklist nvidia
sudo vi /etc/modules
###### add this below
# Switch off discrete GPU
bbswitch load_state=0
###### Update initial ramdisk
sudo update-initramfs -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment