Geforce RTX 3070 Laptop GPU on Ubuntu 21.04 with 5.13.0 kernel driver is not working


I’m trying to install nvidia drivers for Geforce RTX 3070 Laptop GPU using sudo apt install nvidia-driver-510 command. However, when I run nvidia-smi, I get the following 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.

dkms status command returns this: nvidia, 510.47.03, 5.13.0-30-generic, x86_64: installed.

I am using Ubuntu 21.04 with 5.13.0-30-generic kernel. I tried several solutions on the forums but none of them helped. Can you help me on resolving this?

nvidia-bug-report.log.gz :

You booted to the 5.4.15-050415-generic kernel. Please use grub menu to boot into the correct one.

Thanks for quick response. After I select the correct kernel from the menu and run `uname -a, I get the following:

Linux dms 5.13.0-30-generic #33-Ubuntu SMP Fri Feb 4 17:03:31 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

However, nvidia-smi still returns the same message.

Please create a new nvidia-bug-report.log with the correct kernel.

nvidia-bug-report.log (16.9 MB)

Now you ran into a 5.13 kernel bug

[ 2.897391] nvidia 0000:01:00.0: can’t change power state from D3cold to D0 (config space inaccessible)

Please check if switching to the 5.10-oem kernel helps
apt install linux-oem-20.04b

I installed the oem kernel with the apt install linux-oem-20.04b command and I still got the same issue. Thanks for the help.
nvidia-bug-report.log (1.9 MB)

Unfortunately, it seems Ubuntu has updated all oem kernels to 5.14 which shares the same bug.
Please check if
sudo apt install linux-oem-5.10
gets you a working kernel.

I can only install linux-oem-5.6 and linux-oem-5.14 with the package manager.

looks like linux-oem-edge is still 5.10 based.

Nah, just checked, also transformed to 5.14.

Please check if you can get a 5.15 kernel if you enable “proposed” repo in Software&Updates.

install 460.84 driver and give feedback

Hey @bahman, are there any updates regarding your issue? I also recently decided to buy a 3070 Ti, and was wondering if it’d work fine with ubuntu.

Hey @aien.saidi , it wasnt my issue anyway, but I’m sure u won’t have any problem with that driver version!