Skip to main content

/oldroot nvidia fix

If you are an nvidia user you might have seen an error when shuting down your linux system, here is the fix.

Create and edit /usr/lib/systemd/system-shutdown/nvidia.shutdown with next content and make it executable.

#!/bin/sh
# remove nvidia modules
/usr/bin/modprobe -r nvidia_drm nvidia_modeset nvidia_uvm && /usr/bin/modprobe -r nvidia