I added logic based on Avarets experience with P106-100 (I don't have any of these so I am going on your report Avarets; let me know if these changes work)
Please let me know if there are any issues with these updates.
The script doesn't seem to start automatically.
If I run it manually there are some errors but mining process starts:
Invalid MIT-MAGIC-COOKIE-1 keyFailed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
ERROR: The control display is undefined; please run `nvidia-settings --help` for usage information.
My guess is X isn't running; or isn't running properly.