From the results of apt show nvidia-driver-510-server
:
Description: NVIDIA Server Driver metapackage
This metapackage depends on the NVIDIA binary driver and on all of its libraries,
to provide hardware acceleration for OpenGL/GLX/EGL/GLES/Vulkan
applications on either X11 or on Wayland.
This package provides the basic functionality needed to provide hardware acceleration for OpenGL/GLX/EGL/GLES/Vulkan applications on either X11 or on Wayland, however it may not be the optimal package for compatibility with your NVIDIA graphics card. In order to install the most compatible proprietary graphics drivers let the built-in ubuntu-drivers program decide automatically which proprietary graphics drivers to install.
Remove the currently installed NVIDIA proprietary graphics drivers.
sudo apt update
sudo apt-get remove '^nvidia'
sudo apt autoremove
sudo reboot
Let the ubuntu-drivers program decide automatically which proprietary graphics drivers to install.
sudo ubuntu-drivers install
sudo reboot
The install option of ubuntu-drivers installs drivers that are appropriate for automatic installation including their dependencies. The graphics driver packages that are installed by these commands will receive software updates in the same way as other apt packages are updated.
nvidia-drive-470
has been pretty stable for me. I'm using Lenovo Legion 5 Pro 16ACH6. – Rodo Nov 30 '22 at 00:41