This is a slightly improved version of a pre-existing script that only worked on i386 systems. It uses a patch developed by others as well. Hopefully it'll help the NVIDIA folks release something that works out of the box. The source (and some anonymous comments from me) was:
The script is attached.