
When the script dies, it returns control of the fans to the drivers and cleans up the X servers. Then, it loops over the GPUs every few seconds and sets the fan speed according to their temperature. When you run coolgpus, it sets up a temporary X server for each GPU with a fake display attached. This is a pain to set up, as is checking the GPU temp every few seconds and adjusting the fan speed. If you're on Linux though you need to use nvidia-settings, which - as of Sept 2019 - requires a display attached to each GPU you want to set the fan for. Now if you're on Windows nvidia happily lets you override that limit by setting a custom fan curve. At 50% duty and a heavy workload, blower-style GPUs will hot up to 85C or so and throttle themselves. Blower-style GPUs can get very loud, so to avoid annoying customers nvidia artifically limits their fans to ~50% duty. If you want to install multiple GPUs in a single machine, you have to use blower-style GPUs else the hot exhaust builds up in your case.
Open coolgpus in a text editor, add a import pdb pdb.set_trace() somewhere, and explore till you hit the error. Check that XOrg, nvidia-settings and nvidia-smi can all be called from your terminal. See if sudo /path/to/coolgpus actually works. Don't double-interrupt things you barbarian. Double interrupts stop it from handing control back to the driver. You hit Ctrl+C twice and now your fans are stuck at a certain speed: run the script again and interrupt it once, then let it shut down gracefully. On Ubuntu with the apt-get-installed pip, look in ~/.local/bin. coolgpus: command not found: the pip script folder probably isn't on your PATH. Sometimes the OS might automatically recreate its X servers, and that's tricky enough to handle that it's up to you to sort out. You've got an X server hanging around for some reason: assuming you don't actually need it, run the script with -kill, which'll murder any existing X servers and let the script set up its own. You've got a display attached: it won't work, but see this issue for progress.