-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nvidia drivers not working after Pop OS 22.04 update that resulted in installing kernel 5.17.5 instead of 5.16.19 #2369
Comments
See if reinstalling the Nvidia drivers might fix things as this also recreates the nvidia DKMS kernel modules. To do this please run the following:
|
@linuxgnuru this didn't work. I ended up using this command to revert to the previous kernel 5.16.19 : |
Hi, recently I've got similar issue (nvidia kernel module not loaded and my second monitor not work) after upgrading kernel to 5.17.5. so I decide to reinstall nvidia driver, like what @linuxgnuru says with some adjustment like in this article https://support.system76.com/articles/login-loop-pop/#reinstall-nvidia-driver sudo apt purge ~nnvidia # I change this to `sudo apt purge '^nvidia-*'`
sudo apt autoremove
sudo apt clean
sudo apt update
sudo apt full-upgrade
sudo apt install system76-driver-nvidia
sudo systemctl reboot now I can use my second monitor with 5.17.5 kernel and 510.68.02 nvidia driver 🚀 |
I have the same issue. Saw the following happen in apt: Building module: Not entirely sure what I can do to fix it on my end. For now I'm just booting the previous kernel version. |
@adnub I believe you're experiencing pop-os/nvidia-graphics-drivers-470#5 |
@DSPdav this worked with the 5.17.5 kernel thanks :) |
I've tentatively just boot back into 5.16.19-* - by just holding down 'spacebar' at boot, dropping into the old-kernel.conf. |
@irishgordo I believe you are experiencing pop-os/nvidia-graphics-drivers-470#5. It is a different issue from this one, but pop-os/nvidia-graphics-drivers-470#6 will probably fix it. |
@leviport my issue is exactly this one pop-os/nvidia-graphics-drivers-470#5, it's the driver 470 that doesn't work with kernel 5.17.5 so I wanted to revert back automatically to the 5.16.19 kernel but I didn't know how since I don't have GRUB2 on my EFI system. Using kernelstub solved my problem though so I'm closing this issue thanks everybody and thanks Pop OS for providing this simple tool 😄 |
awesome thanks for that! @leviport |
@DSPdav's fix also worked for me with no need to boot into the 5.16 kernel... the
command pulled the 510 driver automatically. |
Hi all.
/var/lib/dkms/nvidia/510.68.02/build/make.log UPDATE: |
Switching to gcc-11 did the trick for me as well. Thanks! |
Hi, can you explain how you did this? Struggling with the same issue, any help would be appreciated! Thanks! |
I also need the solution |
@cbacary @vikassidana chek your 'update-alternatives' |
You can follow those instructions but for gcc version 11. I am have the NVIDIA runfile installation on Pop!OS 22.04 and this week I had to install gcc version 12. |
December 2023: for anyone still stuck on this, here's the full process that worked for me. Building on suggestions from the posts above:
|
It worked for me, I booted in the recovery mode typed this and all went dark, a reboot and I was good. |
Distribution (run
cat /etc/os-release
):uname -r
:5.17.5-76051705-generic
I did an update to pop os today (
sudo apt update
) then upgrade (sudo apt upgrade
). I got a notification telling me to reboot my pc to finish the upgrade, so I did.After the reboot, my second screen wasn't working so I run
nvidia-smi
and I got the errorNVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
I tried
sudo modprobe nvidia
which resulted in this errormodprobe: FATAL: Module nvidia not found in directory /lib/modules/5.17.5-76051705-generic
which means there are no nvidia modules for kernel 5.17.5 and that grabbed my attention to the fact that the kernel was updated : it's 5.17.5 now instead of 5.16.19 that I had before the update.For my laptop, I managed to reconfigure grub2 to use the previous kernel instead which has the proper modules and drivers but for my desktop, which uses efi, I don't have grub2 installed so I don't know how to revert to the previous kernel automatically.
Can someone tell me how to fix this ? What's the problem with the new kernel ? Why it doesn't have nvidia drivers ? What else doesn't work with this kernel ?
Thanks
The text was updated successfully, but these errors were encountered: