when there is a new kernel-update by update-manager, then simply
after reboot - with ubuntu-package manager uninstall nvidia-drivers (and bumblebee) - then
install nvidia-drivers again.
this looks inconvenient, but its easier ?!
From Nvidia customer service....
The following worked for me:
NVIDIA Driver Installation for Ubuntu 16.04
for Ubuntu 16.04, please try the following manual driver installation procedure:
blacklist open source nouveau driver by the command
sudo printf "blacklist nouveau\nblacklist lbm-nouveau" | sudo tee /etc/modprobe.d/blacklist-nouveau.conf
blacklist nouveau
blacklist lbm-nouveaulisam@Atlas-PC:~$
to update the boot process run the command
sudo update-initramfs -u
update-initramfs: generating /boot/initrd.img-4.4.0-36-generic
W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1.bin for module i915_bpo
W: Possible missing firmware /lib/firmware/i915/skl_guc_ver6.bin for module i915_bpo
Reboot
use ctrl+alt+F1 to go to a console, then login and use the command
sudo service lightdm stop (command to exit the gui)
change directory to the Download folder where you usually download the NVIDIA driver
cd /home/usr/Downloads
run sudo sh and follow on screen instructions
sudo sh ./NVIDIA-Linux-x86_64-367.44.run
It may say that the pre-installation script failed and do you want to continue and answer Yes.
The target kernel has CONFIG_MODULE_SIG set, which means that it supports cryptographic signatures on kernel modules. On some systems, the kernel may refuse to load modules without a valid signature from a trusted key. This system also has UEFI Secure Boot enabled; many distributions enforce module signature verification on UEFI systems when Secure Boot is enabled. Would you like to sign the NVIDIA kernel module?
<Install without signing>
I tried installing without installing and I get an error message saying I needed to sign the kernel module or signing was necessary for secure boot up.
I tried to disable secure boot:
plug in USB
Restart and enter BIOS
Advanced mode> secure boot
Windows UEFI mode OS
Save secure boot keys
Select USB drive as file system
Saved four key files PK, KEK, DB, DBX to USB
Delete PK to disable secure boot
Save and restart with Other OS type and Secure Boot state disabled
WARNING: Unable to find a suitable destination to install 32-bit comptability libraries. Your system may not be set up for 32-bit compatibility. 32-bit compatibility files will not be installedl if you wish to install them, re-run the installation and set a valid directory with the –compat32-libdir option.
<OK>
Would you like to run the nvidia-xconfig utility to automatically update your X configuration file so that NVIDIA X driver will be used when you restart X? Any pre-existing X configuration file will be backed up
<YES>
reboot or run this command to start the gui:
sudo service lightdm start
Best Answer
The module name is "nvidia" (which shows up in
lsmod
), but the actual filename isnvidia-current.ko
. Therefore you need to add toblacklist nvidia-current
to/etc/modprobe.d/blacklist-nvidia.conf
(filename does not matter). After that, runsudo update-initramfs -u
.Do note that this change applies only on the next boot. To unload the module in the current session, run
sudo rmmod nvidia
.By the way, when you install Bumblebee, it'll automatically blacklist nvidia and nouveau. See Is a NVIDIA GeForce with Optimus Technology supported by Ubuntu?