- Download original driver package.
- Run it with
--extract-only(i.e.,./NVIDIA-Linux-x86_64-580.159.04.run --extract-only) to unpack it. - Replace the original file with the patched one.
- Run the
nvidia-installertool from the folder where the driver is unpacked.
See readme for details.