I am having issue with loading my NVidia Drivers on my Ubuntu 18.04.
I’ve been looking around for this problem and have encountered similar issue which do have solution. None of these appear to have resolved the problem I have too.
Here some info on my machine:
OS is ‘Ubuntu 18.04.1 LTS’
GT2)` onboard chip
I’m currently running nvidia-driver-415, but ran into similar problems with nvidia-driver 390, 396 and 410.
Output from lspci | grep VGA returns the following:
user@user:~$ nvidia-settings
ERROR: NVIDIA driver is not loaded
ERROR: Unable to load info from any available system
(nvidia-settings:5260): GLib-GObject-CRITICAL **: 17:46:10.944: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** Message: 17:46:10.946: PRIME: Requires offloading
** Message: 17:46:10.946: PRIME: is it supported? yes
Any guidance on what I could/should try out would be much appreciated. I am of course more than willing to provide additional information if necessary.
How did you install the driver? Don’t use the .run installer since it’s an Optimus system. If you have installed the driver from Ubuntu’s repo or the graphics ppa then you should be able to switch to the Nvidia gpu using
sudo prime-select nvidia
and reboot. Otherwise, please run nvidia-bug-report.sh as root and attach the resulting .gz file to your post. Hovering the mouse over an existing post of yours will reveal a paperclip icon.
[url]https://devtalk.nvidia.com/default/topic/1043347/announcements/attaching-files-to-forum-topics-posts/[/url]
Installing it via the .run installer is one of the things I’ve tried, with no avail though. So I reverted that operation.
The
sudo prime-select nvidia
one I’d encountered earlier, and also executed earlier, with the following result:
user@user:~$ sudo prime-select nvidia
Info: the nvidia profile is already set
Thus, I have followed your suggestion and created a bug report.
I has been added to the main post, I hope something useful turns up out of it!
Lastly, here is the output from running the script:
user@user:~$ sudo nvidia-bug-report.sh
nvidia-bug-report.sh will now collect information about your
system and create the file 'nvidia-bug-report.log.gz' in the current
directory. It may take several seconds to run. In some
cases, it may hang trying to capture data generated dynamically
by the Linux kernel and/or the NVIDIA kernel module. While
the bug report log file will be incomplete if this happens, it
may still contain enough data to diagnose your problem.
Please include the 'nvidia-bug-report.log.gz' log file when reporting
your bug via the NVIDIA Linux forum (see devtalk.nvidia.com)
or by sending email to 'linux-bugs@nvidia.com'.
Running nvidia-bug-report.sh...ls: cannot access '/proc/driver/nvidia/./gpus/': No such file or directory
If the bug report script hangs after this point consider running with
--safe-mode and --extra-system-data command line arguments.
complete.
Should I be worried about the “cannot access ‘/proc/driver/nvidia/./gpus/’” message?
Initially I disabled secure boot in the BIOS, but doing so removed my boot manager entirely.
What might be key in this situation, is that I have a dual boot set up, Windows 10 and Ubuntu 18.04, where Windows 10 was the distro the laptop came with.
As switching UEFI off in favor of the Legacy Mode made it so that I couldn’t start Windows 10 or Ubuntu 18.04, I followed method 2 as described here: UEFI/SecureBoot/DKMS - Ubuntu Wiki
These seemed like a fair approach to disable Secure Boot.
After successfully following the steps there, I however am still left with Nvidia Drivers not being loaded, as can be seen here:
user@user:~$ nvidia-settings
ERROR: NVIDIA driver is not loaded
ERROR: Unable to load info from any available system
(nvidia-settings:2893): GLib-GObject-CRITICAL **: 17:04:16.599: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** Message: 17:04:16.601: PRIME: Requires offloading
** Message: 17:04:16.601: PRIME: is it supported? yes
Is there something obvious I’ve missed from that wiki?
Might be that the kernel is still enforcing signed modules.
If secure boot cannot disabled for whatever reasons, the proper way would be to re-install Ubuntu and on installation, there should be an option “Install third party software” which leads to having a signed nvidia module that can be loaded without tinkering.
Hi @galvani78, thanks for your reply.
I however do not have a /lib/modprobe.d/blacklist-nvidia.conf file at the moment.
Would I do have in the /lib/modprobe.d/ folder, is the following:
aliases.conf
blacklist_linux_4.15.0-47-generic.conf
blacklist_linux_4.15.0-48-generic.conf
fbdev-blacklist.conf
nvidia-graphics-drivers.conf
nvidia-kms.conf
systemd.conf
Which of these would you expect to have to be removed?
Ow, and @generix, sorry to not be replying earlier.
I assumed your suggestion would solve the problem, but that would mean a reinstall of Ubuntu in that case.
That exact reinstall is what I had done just prior to posting this question, so I didn’t feel up to the task just yet… As soon as I get around to actually performing the reinstall and if it resolve the issue, I’ll accept your replies as the Answer.