nvidia-smi error shows NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver....

I am currently using ubuntu 19.04 (updated to it as i was having the same problem even on ubuntu 180.04.2LTS and even 18.10 ). I cant use my nvidia gpu though i can select it using “prime-select nvidia”.
After using the above command , when i restart my laptop and view the currently used GPU in settings- it still show intel and on doing “prime-select query” it shows nvidia. Dont know how to tackle this problem.

Also on running “nvidia-smi” it shows “VIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.”

nvidia-bug-report.log.gz (57.3 KB)

It’s truncated, please delete the wall-of-text and attach as file:
Hovering the mouse over an existing post of yours will reveal a paperclip icon.