37
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.
32
votes
Removing Nvidia CUDA Toolkit and installing new one
For removing cuda, Nvidia has prepared a file (I presume this is a standard method). You need to change your directory to the cuda's path, which is by default /usr/local/cuda-x.y/bin; where x.y is ...
30
votes
Removing Nvidia CUDA Toolkit and installing new one
Make sure the method you use to install cuda toolkit. This answer is for whom use deb files to install cuda. I have no idea if this works for .run files.
sudo apt-get autoremove --purge cuda
This ...
30
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.
...
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 ...
19
votes
Accepted
Does Ubuntu 16.04 support hybrid graphics cards (bumblebee)
I got it working after some trying (nvidia-364, from ubuntu graphics ppa).
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-364
sudo apt-get install ...
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 ...
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, ...
18
votes
Accepted
modprobe nvidia throws error: could not insert 'off'
So, IMHO, nvidia did some changes to their install. For everyone trying to get bumblebee work with their nvidia driver, you have to know that:
Now nvidia library is located in /usr/lib/x86_64-linux-...
15
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 ...
12
votes
Removing Nvidia CUDA Toolkit and installing new one
For CUDA 10.1 or newer, try:
sudo /usr/local/cuda/bin/cuda-uninstaller
For CUDA 10.0, try:
sudo /usr/local/cuda/bin/uninstall_cuda_10.0.pl
12
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 ...
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 ...
10
votes
Does Ubuntu 16.04 support hybrid graphics cards (bumblebee)
Bumblebee had no development since 2013 and is deprecated in 16.04, installation of nvidia-361 and nvidia-prime should take care of the bumblebee functionality. pilot6 gave the usage details here.
...
9
votes
Removing Nvidia CUDA Toolkit and installing new one
Try:
sudo apt-get --purge -y remove 'cuda*'
sudo apt-get --purge -y remove 'nvidia*'
sudo reboot
It removes any installed cuda and nvidia packages and then you can install any specific version that ...
8
votes
Nvidia with Bumblebee installation for 16.04
Looks like someone has succeeded...
https://lenovolinux.blogspot.si/2016/05/bumblebee-on-lenovo-t440p-nvidia-gt.html
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 ...
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 ...
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 (...
4
votes
Removing Nvidia CUDA Toolkit and installing new one
One should NOT, unlike suggested in among others the accepted answer, manually remove files that were installed with apt (from some ppa, or nvidia repository).
The correct way to uninstall just cuda ...
4
votes
Kubuntu 16.04 + Bumblebee Failed to load module "mouse" (module does not exist, 0)
Please don't install any packages.
Just edit the file /etc/bumblebee/xorg.conf.nvidia to include the following screen-section to make bumblebee work:
Section "Screen"
Identifier "Default Screen"
...
3
votes
Does Ubuntu 16.04 support hybrid graphics cards (bumblebee)
Still nothing on the vsync problem. We'll need kernel 4.5, xorg patch (1.19) and nvidia patch.
You can follow up the thread here.
https://devtalk.nvidia.com/default/topic/775691/linux/vsync-issue-...
3
votes
Do I need to install Bumblebee for Hybrid Graphics system to enable Optimus on Ubuntu 16.04?
Ubuntu 16.04 of course supports hybrid graphics solutions, especially notebooks that have intel graphics and NVIDIA graphics with Optimus support. Do NOT install bumblebee, it is not under development ...
3
votes
Steam for Ubuntu 16.04
You should install and use nvidia propreitary drivers, there's no need to use bumblebee for 16.04.
First, open terminal and remove bumblebee:
sudo apt-get remove bumblebee
sudo apt-get autoremove
...
3
votes
Accepted
Optirun Cannot access secondary GPU - error: [XORG] Invalid argument for -config
I have found a nice workaround. It was ridiculous. The package primus comes with the primusrun command that does the same as optirun, just better and does not cause that error to appear.
3
votes
How can I use my secondary (nvidia) graphics card
My understanding is that more recent NVIDIA hardware/software combinations are unlikely to work well with bumblebee/optirun type solutions. What works reliably for me is:
> sudo nvidia-settings
...
3
votes
Accepted
Bumblebee: [ERROR]Cannot access secondary GPU - error: [XORG] (EE)
https://github.com/Bumblebee-Project/Bumblebee/issues/749
The answer was finally there, uninstall xserver-xorg-legacy
sudo apt remove xserver-xorg-legacy
Here are the main resources I used to crack ...
3
votes
Accepted
NVIDIA drivers not working (Bumblebee and NVIDIA X Server Settings)
As you did not mention the Ubuntu edition you are using ... this is valid for all currently supported editions (12.04 | 14.04 | 16.04 | 16.10). Use this method to install the latest stable NVIDIA ...
3
votes
Unable to use nvidia gpu with optimus on ubuntu 16.04
Bumblebee does not work well on Ubuntu 16. You should use prime.
sudo apt-get install nvidia-378 nvidia-prime
Prior to doing this you should purge bumbleebe and whatever else you installed.
3
votes
Dell XPS 15 9570 (2018) disable nvidia GPU
On my 9750 running Ubuntu 18.04, whenever I turn off the dgpu using bbswitch before logging in or on boot, my system freezes.
After trying many different methods and many reboots I settled on a ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
bumblebee × 535nvidia × 362
nvidia-optimus × 278
drivers × 147
graphics × 87
12.04 × 37
xorg × 29
14.04 × 27
hybrid-graphics × 22
nvidia-prime × 22
13.04 × 21
steam × 20
cuda × 20
12.10 × 18
intel-graphics × 17
16.04 × 13
kernel × 13
gpu × 12
multiple-monitors × 11
wine × 11
games × 11
display-resolution × 11
unity × 10
lenovo × 10
nouveau × 9