Skip to content
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

Unable to Switch to Nvidia graphics on Ubuntu 22.04 #148

Open
FourFifthsCode opened this issue Apr 29, 2022 · 7 comments
Open

Unable to Switch to Nvidia graphics on Ubuntu 22.04 #148

FourFifthsCode opened this issue Apr 29, 2022 · 7 comments

Comments

@FourFifthsCode
Copy link

FourFifthsCode commented Apr 29, 2022

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
Copy link

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
Copy link
Member

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
Copy link

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
Copy link
Member

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
Copy link

sudo apt purge ~nnvidia

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

@leviport
Copy link
Member

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

@farfromrefug
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants