Skip to content

Instantly share code, notes, and snippets.

@ptantiku
Created December 30, 2017 06:11
Show Gist options
  • Save ptantiku/644e9d70c1c1b7e40d6e2269250d2047 to your computer and use it in GitHub Desktop.
Save ptantiku/644e9d70c1c1b7e40d6e2269250d2047 to your computer and use it in GitHub Desktop.
# date: 2017-12-30
# continuing from https://gist.github.com/whizzzkid/37c0d365f1c7aa555885d102ec61c048
# today, Ubuntu pushed a new update for Nvidia, and it crashed my machine.
# if blinking uncontrollably, it is because gdm is crashed and trying to restart
# use Ctrl+Alt+F2 (multiple times) trying to switch to second console, and login
sudo systemctl stop gdm # stop gdm service, thus stop the blinking
# go to bumblebee config
sudo vi /etc/bumblebee/bumblebee.conf
# change all nvidia-xxx or nvidia-current to the newly installed version, e.g. nvidia-387
# For example:
# KernelDriver=nvidia-387
# LibraryPath=/usr/lib/nvidia-387:/usr/lib32/nvidia-387
# XorgModulePath=/usr/lib/nvidia-387/xorg,/usr/lib/xorg/modules
# go to modprobe blacklist
sudo vi /etc/modprobe.d/bumblebee.conf
# copy a section and change it to the newly installed driver,
# we will block it from automatically load
# bumblebee will manage the loading itself
# in this case, add:
# # 387
# blacklist nvidia-387
# blacklist nvidia-387-drm
# blacklist nvidia-387-updates
# blacklist nvidia-experimental-387
# set nvidia prime to use "intel", or "nvidia" by default
# if not already installed, sudo apt-get install nvidia-prime
sudo prime-select intel
# restart bumblebee
sudo systemctl restart bumblebeed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment