I have Ubuntu 18.04 installed on ASUS laptop with GEFORCE 940MX GPU card. I have tried everything using proprietary drivers or using NVIDIA run file to install cuda drivers. Finally, I was able to install NVIDIA and CUDA drivers using cuda run file. OpenGL and NVIDIA-X-config were not installed during this installation. Also, secure boot is disabled prior to installation.

Now, nvidia-smi works after this installation, but whenever I reboot system it gives error: "NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running."

It will be really helpful if experts can comment how to overcome this issue. Thanks in advance


This is most probably the nvidia graphics compatibility problem, so you shouldn't use the .run installer. Use the driver from ubuntu graphics ppa, then download the .deb and install cuda-toolkit.

  • This answer is suboptimal. I had to use the run-installer to prevent the installation of "drm" (direct rendering manager) which apparantly allows the intel onboard graphics card to be used by the graphical user interface (gdm? lightdm? xorg?). The GPU memory should be untouched by the GUI since the NVIDIA GPU is used for deep-learning and is needed in it's full capacity. Therefore I had to install it like this sudo ./NVIDIA-Linux-x86_64-430.40.run --no-open-gl-files --no-drm – mcExchange Sep 6 '19 at 16:17

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.