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.

First Step: purge everything NVIDIA

$ sudo apt purge nvidia-*  

Second Step: purge the PPA

$ sudo ppa-purge ppa:graphics-drivers/ppa    

Third Step: autoremove

$ sudo apt autoremove

Fourth Step: clean up

$ sudo apt auto-clean

Fifth Step: blacklist nouveau

opened the file /etc/modprobe.d/disable-nouveau.conf

and 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

Sixth Step: re-add the PPA

$ sudo add-apt-repository ppa:graphics-drivers/ppa

Seventh Step: check for recommended drivers

$ ubuntu-drivers devices

Eighth Step: install the recommended driver from the PPA

$ sudo apt install nvidia-driver-396

Ninth Step: reboot the system

$ sudo reboot

Tenth Step: 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 [0300]: 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 [0300]: 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

Final Update: Problem solved! Thanks to cl-netbox for the solution and his answer.
I didn't even have to reinstall anything, the whole issue was Secure Boot being enabled.
Once I had disabled Secure Boot and rebooted the system, the graphics card was in use.


You have to disable Secure Boot on your machine, boot into BIOS and disable it in the UEFI settings.
There won't be any security problem at all and the alongside installed Windows will boot nevertheless.

  • 1
    I understand this has been accepted as an answer but what does secure boot has to do with switching hybrid card? – Aftab Naveed Aug 10 '18 at 1:09
  • 2
    @AftabNaveed Because kernels running on UEFI Secure Boot systems will require signed kernel modules. Signing the NVIDIA Kernel Module – cl-netbox Aug 10 '18 at 9:09
  • 1
    I'm having this issue and have secure boot disabled. – Greg Hilston Jun 15 '19 at 4:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.