Reload nvidia GPU driver
How to reload nvidia GPU driver to fix “NVML: Driver/library version mismatch” error after installing new nvidia driver. No rebooting required. 1
The following command will switch the system into text (CLI) mode, reload the graphical driver, and then switch back to GUI mode.
sudo apt purge $DRIVER_TO_DELETE
sudo apt reinstall $DRIVER_OF_CHOICE
sudo systemctl isolate multi-user.target
lsmod | grep nvidia # - to identify the modules needing to be reloaded.
sudo modprobe --remove $ALL_MODULES_IDENTIFIED_ABOVE
sudo modprobe $ALL_MODULES_IDENTIFIED_ABOVE
sudo systemctl isolate graphical.targetLast updated on