pop-os / nvidia-graphics-drivers

Pop!_OS NVIDIA Graphics Drivers
134 stars 7 forks source link

Unable to Switch to Nvidia graphics on Ubuntu 22.04 #148

Open FourFifthsCode opened 2 years ago

FourFifthsCode commented 2 years ago

System: Oryx Pro

Unable to switch to nvidia graphics after clean install of Ubuntu 22.04 and system76-driver-nvidia.

After switching in the menu or command line and rebooting, was still using integrated graphics.

I was able to use 510 driver and switch to nvidia graphics after running sudo apt install --reinstall nvidia-dkms-510 on Ubuntu 22.04

lightmaster commented 1 year ago

Having this same issue on Pop_OS! 22.04 (based on Ubuntu 22.04). For me, running kernel 5.19 breaks the Nvidia driver, but kernel 5.18 (the stock one that came with the Pop_OS! ISO) works fine.

leviport commented 1 year ago

Does purging and reinstalling the Nvidia driver help?

sudo apt purge ~nnvidia
sudo apt autoremove && sudo apt clean
sudo apt install nvidia-driver-515

if you have a system76 machine, install system76-driver-nvidia instead of just nvidia-driver-515.

lightmaster commented 1 year ago

I was able to boot the previous 5.18.10-76051810-generic kernel and its working again for me. Doesn't solve the issue of 5.19 breaking the lastest Nvidia drivers, but at least a workaround until its fixed.

leviport commented 1 year ago

When new kernels are installed, the Nvidia DKMS stuff needs to be rebuilt. Since 5.19 works with Nvidia on countless other machines out there, I'm assuming your DKMS stuff needs to be rebuilt. Purging and installing Nvidia the way I mentioned above will rebuild the DKMS stuff.

lightmaster commented 1 year ago

sudo apt purge ~nnvidia

by that, did you mean to purge nvidia-driver-515 if that's the one that currently installed?

leviport commented 1 year ago

I didn't "mean anything" by it, it's a wildcard that will match anything with nvidia in the package name.

farfromrefug commented 1 year ago

i actually had kind of the same issue. Games in steam where not using nvidia card correctly. i tried to rebuild dkms for 5.19 but it did not fix it. Then i booted in 5.18, rebuilt dkms (515) and it started to work again(in 5.18)