Nvidia driver 515 not working on Acer laptop with RTX 3060

Hi there.

I am currently unable to get the nvidia driver 515 working on elementary OS 6.1
nvidia-bug-report.log.gz (75.7 KB)
on this acer Laptop. It has an i5-10300H CPU and the nvidia GTX 3060.

When running nvidia-smi I just get

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’ve tried several driver versions now with no luck. The intel integrated GPU works fine, but I just can’t get to use the nvidia one.

The logs are heere. If you need anything else, just ask! Thanks for looking at this.

There’s no kernel driver installed, please check you booted the correct kernel. Please post the output of
dkms status
dpkg -l |grep nvidia

Alright, sounds weird.

anyhow:

$ dkms status
nvidia, 515.48.07: added

and

$ dpkg -l |grep nvidia
ii  libnvidia-cfg1-515:amd64                   515.48.07-0ubuntu0.20.04.2                        amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-515                       515.48.07-0ubuntu0.20.04.2                        all          Shared files used by the NVIDIA libraries
rc  libnvidia-compute-470:amd64                470.129.06-0ubuntu0.20.04.1                       amd64        NVIDIA libcompute package
rc  libnvidia-compute-510:amd64                510.73.05-0ubuntu0.20.04.1                        amd64        NVIDIA libcompute package
ii  libnvidia-compute-515:amd64                515.48.07-0ubuntu0.20.04.2                        amd64        NVIDIA libcompute package
ii  libnvidia-decode-515:amd64                 515.48.07-0ubuntu0.20.04.2                        amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-515:amd64                 515.48.07-0ubuntu0.20.04.2                        amd64        NVENC Video Encoding runtime library
ii  libnvidia-extra-515:amd64                  515.48.07-0ubuntu0.20.04.2                        amd64        Extra libraries for the NVIDIA driver
ii  libnvidia-fbc1-515:amd64                   515.48.07-0ubuntu0.20.04.2                        amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-515:amd64                     515.48.07-0ubuntu0.20.04.2                        amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  nvidia-compute-utils-515                   515.48.07-0ubuntu0.20.04.2                        amd64        NVIDIA compute utilities
ii  nvidia-dkms-515                            515.48.07-0ubuntu0.20.04.2                        amd64        NVIDIA DKMS package
ii  nvidia-driver-515                          515.48.07-0ubuntu0.20.04.2                        amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-515                   515.48.07-0ubuntu0.20.04.2                        amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-515                   515.48.07-0ubuntu0.20.04.2                        amd64        NVIDIA kernel source package
ii  nvidia-prime                               0.8.16~0.20.04.2                                  all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                            470.57.01-0ubuntu0.20.04.3                        amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-515                           515.48.07-0ubuntu0.20.04.2                        amd64        NVIDIA driver support binaries
ii  screen-resolution-extra                    0.18build1                                        all          Extension for the nvidia-settings control panel
ii  xserver-xorg-video-nvidia-515              515.48.07-0ubuntu0.20.04.2                        amd64        NVIDIA binary Xorg driver

Please try (re)installing kernel headers
sudo apt install --reinstall linux-headers-$(uname -r)
and check if
dkms status
changes to “installed”. If not, run
sudo dkms install nvidia/515.48.07
and post any errors and attach the referenced make.log.

sudo apt install --reinstall linux-headers-$(uname -r)

did the job, after this dkms status did indeed say the driver was installed.

Thank you very much.

If you don’t mind me asking: how come just doing sudo apt install nvidia-driver-515 was not enough?

It “should” pull in the headers but sometimes it doesn’t. Don’t know about the specific dependencies of the ubuntu packages, that’s rather a question for the ubuntu packagers.

1 Like