A minimal Nvidia GPU fan speed controller written in C.
$ git clone https://aur.archlinux.org/packages/nvspeed-git
$ cd nvspeed-git
$ makepkg --nobuild
$ cd src/nvspeed/src/
$ make config
# Configure config.h, and the Makefile
$ cd ../../..
$ makepkg -si
CUDA: for getting GPU temperature and setting fan speed with NVML
# Install dependencies
$ your-package-manager-install cuda
$ make config
# Configure config.h, and the Makefile
$ make
$ sudo make install
Sudo is required to set fan speed for NVML.
$ sudo nvspeed
Temperature and fan speed are configured in config.h.