As of May 31, 2023, we have updated our Code of Conduct.
34 votes

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

You may want to install cuda toolkit. Using the following command to install it. sudo apt install nvidia-cuda-toolkit Once the installation is done, reboot the machine. nvidia-smi should work.
Jack Chan's user avatar
  • 541
29 votes
Accepted

How am I supposed to use nvidia-prime?

You need to have both Nvidia proprietary drivers and nvidia-prime to get it working. This can be done by running sudo apt-get install nvidia-346 nvidia-prime for Ubuntu 14.04 and 15.04. Then you ...
Pilot6's user avatar
  • 88.1k
29 votes

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

If your nvidia-smi failed to communicate but you've installed the driver so many times, check prime-select. Run prime-select query to get all possible options. You should see at least nvidia | intel. ...
Phúc Lê's user avatar
  • 399
25 votes

What is the difference between optirun and primusrun?

Bumblebee is the current workaround for using Nvidia optimus with linux. At the heart of bumblebee has been VirtualGL which is now being superseded by Primus. If you have Bumblebee you'll know that ...
kyodake's user avatar
  • 14.9k
22 votes

bumblebee doesn't work on Ubuntu 18.04

There was one major change in nvidia driver that prevents bumblebee from working - glvnd (https://github.com/NVIDIA/libglvnd). In short, bumblebee is running a separate instance of xorg on a separate ...
clover's user avatar
  • 511
19 votes

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

I disabled the Secure Boot and it worked pretty fine. @rod-smith aswered another question more specific explaining how to do it, basically is a setup config, but he also write a good article about ...
Rodolfo's user avatar
  • 1,003
18 votes
Accepted

Do I need to install Bumblebee for Hybrid Graphics system to enable Optimus on Ubuntu 16.04?

Currently, you have (at the best of my knowledge) three possibilities regarding Nvidia hybrid graphics (the so-called Optimus technology) under Linux: Bumblebee. While this project might seem dead, ...
Archange's user avatar
  • 296
14 votes
Accepted

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

The solution by Markus lead me to a better solution. So it has to do with Secure Boot, but it is not necessary to deactivate. To fix the problem, just do 3 steps: Deactivate the Nvidia driver by ...
w-sky's user avatar
  • 1,157
14 votes
Accepted

Screen tearing on Nvidia GTX960m

I have two hybrid laptops running 17.04, an old ThinkPad and a P50 (2016). These are Nvidia Optimus machines, both with the 'enterprise class' Quadro graphics and proper hardware multiplexing which ...
Tim Richardson's user avatar
12 votes

How am I supposed to use nvidia-prime?

you can also do sudo prime-select intel (or nvidia or query) Ubuntu 18.04.1 repositories have been updated with a partial backport of work from 18.10 which dramatically improves the Optimus ...
Tim Richardson's user avatar
12 votes

Installing Ubuntu On Dell Precision 5510

How to Install Ubuntu 16.04 LTS on the Dell Precision 5510 [edit: Aside from the "Allow Linux to see your storage device" step, on newer install media, this guide is no longer necessary. Just install ...
justsomeguy's user avatar
12 votes
Accepted

Ubuntu 20.04 Installing Nvidia drivers

So I had a total disaster with "Bumblebee". I entered the above commands but they caused all sorts of weird responses resulting in me having to give up and just re-install a clean copy of ubuntu 20.04 ...
greenbeast's user avatar
11 votes
Accepted

Bumblebee Intel+Nvidia on 15.10 blackscreen issue

As you have quite new GPU hardware you should use new NVIDIA drivers and software as well. Replace bumblebee with nvidia-prime to switch between integrated and dedicated graphics. Reinstall the ...
cl-netbox's user avatar
  • 30.7k
11 votes

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

since I cannot comment on @Rodolfo's answer above (not enough reputation), I am adding a new answer. On my machine I had to configure Secure Boot accordingly to my OS. I have an ASUS mainboard ...
markus's user avatar
  • 129
10 votes

How to set up nVidia Optimus/Bumblebee in 14.04

I have been facing the same issue for quite some time. I had to reference many article online however I never got any help. So I wrote a blog post of my own and I got very positive response. Many ...
Rajat Pandita's user avatar
9 votes
Accepted

Ubuntu 18.10 external monitor with intel graphics

The short version: Your laptop's HDMI port is wirred to the nVidia card in Hardware. No software solution can change this, you need to resort to a mini-DP --> HDMI hardware convertor to make this ...
WinEunuuchs2Unix's user avatar
8 votes
Accepted

How to use "prime-select on-demand" in latest Kubuntu 19.10

This is a confusing new 'option' that isn't described and generally of no use to most users. The bug report that lead to this being added stated - "Per current NV and intel GPU driver, if we load ...
doug's user avatar
  • 16.8k
7 votes

Bumblebee Intel+Nvidia on 15.10 blackscreen issue

Although everything seemed to work, trying the following shows the bbswitch cannot turn off the nvidia card properly: cat /proc/acpi/bbswitch primusrun glxinfo|grep OpenGL sleep 1 cat /proc/acpi/...
Gokhan Moral's user avatar
7 votes

Bumblebee Intel+Nvidia on 15.10 blackscreen issue

Managed to get bumblebee to work in Wily after way too much unnecessary headaches, without that nvidia-prime horribleness. As others suspected, it's because of gpu-manager. Whatever that is, it is ...
Luca Boccassi's user avatar
7 votes
Accepted

Module 'nvidia-361' is not found

As you have a quite new CPU and GPU - there might be some incompatibilities. Use the following method to install the NVIDIA drivers. First of all uninstall the currently installed NVIDIA drivers and ...
cl-netbox's user avatar
  • 30.7k
7 votes

How to use "prime-select on-demand" in latest Kubuntu 19.10

In ubuntu 19.10 xorg needs some patches that are only available for 18.04 and 19.04 here You can read all information here first you need to remove intel drivers to use software based rendering (...
Celebre Asm's user avatar
6 votes

primus: fatal: Bumblebee daemon reported: error: Could not load GPU driver

I had the same problem. I solved changing some lines in file /etc/bumblebee/bumblebee.conf: (In my case I'm using the version 352 of nvidia driver, change this value by your driver version) ...
Adrianx64's user avatar
5 votes
Accepted

Battery drains very fast on Ubuntu

You have hybrid graphics. Both adapters are powered all the time and that is way battery life is low. Nvidia adapter is new. So you need to install drivers. Run in terminal sudo add-apt-repository ...
Pilot6's user avatar
  • 88.1k
5 votes

How to use CUDA with NVIDIA Prime

In my case I found that the NVidia card was not actually turned off, and the only thing I actually needed to do to run CUDA code was: export LD_LIBRARY_PATH=/usr/lib/nvidia-352 in the shell where I ...
David Huggins Daines's user avatar
5 votes
Accepted

Disable NVIDIA Optimus Graphics Card

Uninstall the proprietary NVIDIA drivers and disable the use of the nouveau drivers. Open a terminal and execute : sudo apt-get install gksu gksudo gedit /etc/default/grub Add nouveau.modeset=0 ...
cl-netbox's user avatar
  • 30.7k
5 votes
Accepted

Nvidia prime or optimus

I think you're confusing technologies here. NVIDIA Optimus is the codename for the dual graphics card split enjoyed by a wide variety of "gaming" laptops with "dedicated" graphics. It has nothing to ...
Kaz Wolfe's user avatar
  • 33.7k
5 votes

No Audio Over HDMI on NVIDIA GeForce GTX 1050 Ti

Many thanks to Rudi Daemen. The audio problem on my GTX 1060 was solved by his solution. You can try his solution: Create file /etc/systemd/system/fix-hdmi-audio.service [Unit] Description=nVidia ...
Ping Chu Hung's user avatar
5 votes

My Nvidia dGPU isn't detected after updating to 19.10

nvidia-prime has changed yet again between Ubuntu 19.04 and 19.10. Between Ubuntu 16.04 and Ubuntu 18.04, Ubuntu used bbswitch, a community built kernel module, to turn off the Nvidia GPU in Optimus ...
Syfer Polski's user avatar
4 votes
Accepted

How to use NVidia Gpu simultaneously with intel HD

Based on your query in http://ubuntuforums.org/showthread.php?t=2291771 and the answers there, what you are asking for is not possible. From the forum: From my understanding of Nvidia Optimus ...
user68186's user avatar
  • 30.8k
4 votes
Accepted

Ubuntu 14.04 : Installing cuda 7

I managed to get it working after running the following commands: sudo apt-get clean sudo apt-get autoclean sudo apt-get autoremove sudo apt-get install -f
tejaskhot's user avatar
  • 271

Only top scored, non community-wiki answers of a minimum length are eligible