Hi all,
I am struggling with setting up my new laptop. I’ve spent several days figuring out what and how to do in order to get all from my computer. Installing and configuring NVIDIA driver is seemingly the worst part, yet.
I got a new laptop, Acer Nitro 5 with NVIDIA RTX 3050 and Intel card, and fresh Ubuntu 18.06. Since graphics didn’t start using the system provided driver installation, I used ‘NVIDIA-Linux-x86_64-470.94.run’ script downloaded from Official Drivers | NVIDIA?
I have UEFI with secure boot disabled.
When I am done with configuring the driver, I am going to install CUDA and cuDNN.
Following is my installation steps:
sudo gedit /etc/default/grub # I put ’ nomodeset’ before the last quotation mark in the line: GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash”
sudo update-grub
sudo apt-get update && sudo apt-get -y dist-upgrade && sudo apt-get -y autoremove
sudo dpkg --add-architecture i386
sudo apt update
sudo apt -y install build-essential libc6:i386 libglvnd-dev pkg-config
sudo bash -c “echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf”
sudo bash -c “echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf”
sudo update-initramfs -u
sudo reboot
sudo bash NVIDIA-Linux-x86_64-470.94.run --no-x-check # I selected installing 32 compatibility and skipped automatic X configuration (otherwise it didn’t start after reboot)
My attempts to configure the resulting installation didn’t work well. Every time something was wrong, and I couldn’t fix it using google only. So now I am asking for human help.
Following is some symptoms I’ve seen in others’ issues, so they could be relevant:
File /etc/X11/xorg.conf doesn’t exist
$ lspci -v | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Device 9a68 (rev 01) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller: NVIDIA Corporation Device 25a2 (rev a1) (prog-if 00 [VGA controller])
$ nvidia-smi
Sun Jan 2 18:36:01 2022
±----------------------------------------------------------------------------+
| NVIDIA-SMI 470.94 Driver Version: 470.94 CUDA Version: 11.4 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce … Off | 00000000:01:00.0 Off | N/A |
| N/A 35C P0 9W / N/A | 5MiB / 3910MiB | 0% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+
±----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 885 G /usr/lib/xorg/Xorg 4MiB |
±----------------------------------------------------------------------------+
$ xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1920 x 1080, current 1920 x 1080, maximum 1920 x 1080
default connected primary 1920x1080+0+0 0mm x 0mm
$ nvidia-settings
(nvidia-settings:3976): GLib-GObject-CRITICAL **: 18:39:33.772: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed
ERROR: nvidia-settings could not find the registry key file or the X server is not accessible. This file
should have been installed along with this driver at
/usr/share/nvidia/nvidia-application-profiles-key-documentation. The application profiles will
continue to work, but values cannot be prepopulated or validated, and will not be listed in the
help text. Please see the README for possible values and descriptions.
nvidia-bug-report.log.gz (317.8 KB)