This is mainly a note to myself. Sometimes when the X server is restart it complains that
nvidia driver couldn’t be initialized and that no screens were found. This may be a result of a version mismatch between X11’s and the kernel’s
nvidia module. The solution is to
modprobe -r nvidia
before restarting the X server.