Laptop: Acer Predator with Ubuntu 18.04 LTS and Windows 10 (dual boot)
Specifications: Intel® Core i7-7700HQ NVIDIA GTX 1060 OS-Type: 64-bit
Everything is working fine so far, except that I can't switch to the NVIDIA graphics card in Ubuntu.
Please help me, this is the first time that I have installed a Linux distribution on my PC.
I was following the installation tutorial from this website, I can't get it to work.
I have tried to install the NVIDIA drivers from the Ubuntu repositories and from the GPU Drivers PPA.
I have read many threads and tried to follow the suggestions. But same results, nothing is working. Below is a detailed step by step of the last commands I ran in the order they were executed.
Purge everything NVIDIA:
sudo apt purge nvidia-*
Purge the PPA:
sudo ppa-purge ppa:graphics-drivers/ppa
sudo apt autoremove
sudo apt auto-clean
Edited the file
/etc/modprobe.d/disable-nouveau.confand added these lines:
blacklist nouveau blacklist vga16fb blacklist rivafb blacklist nvidiafb blacklist rivatv blacklist amd76_edac alias nouveau off alias lbm-nouveau off options nouveau modeset=0
Re-add the PPA:
sudo add-apt-repository ppa:graphics-drivers/ppa
Check for recommended drivers:
Install the recommended driver from the PPA:
sudo apt install nvidia-driver-396
Reboot the system:
Check which drivers are in use:
$ lspci -k | grep -EA2 'VGA|3D' 00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04) Subsystem: Acer Incorporated [ALI] Device 118a Kernel driver in use: i915 -- 01:00.0 VGA compatible controller: NVIDIA Corporation GP106M [GeForce GTX 1060 Mobile] (rev a1) Subsystem: Acer Incorporated [ALI] GP106M [GeForce GTX 1060 Mobile] Kernel driver in use: nouveau $ lspci -nnk | grep -i vga -A3 00:02.0 VGA compatible controller : Intel Corporation Device [8086:591b] (rev 04) Subsystem: Acer Incorporated [ALI] Device [1025:118a] Kernel driver in use: i915 Kernel modules: i915 -- 01:00.0 VGA compatible controller : NVIDIA Corporation GP106M [GeForce GTX 1060 Mobile] [10de:1c20] (rev a1) Subsystem: Acer Incorporated [ALI] GP106M [GeForce GTX 1060 Mobile] [1025:118b] Kernel driver in use: nouveau Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia $ nvidia-smi NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running. $ nvidia-settings ERROR: NVIDIA driver is not loaded ERROR: Unable to load info from any available system