Skip to content

Configurable Bourne shell (sh) script to control NVIDIA GPU fans. It works on both Xorg and Wayland.

License

Notifications You must be signed in to change notification settings

Tutez64/Wayvifan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wayvifan

It was originally made so I could, on Wayland, control my NVIDIA GPU fans.
It is a lightweight and easy to use script. It works on Xorg, too.

What does it do?

It automatically changes the speed of your NVIDIA GPU fan(s), depending on the GPU temperature.
It is configurable and should be adapted to your environment.
There are two systems to limit useless and repeated changes, enabled per default.
Logs are outputted to stdout, per default in color according to their importance.
For now, that is all!

What does it need?

It uses the nvidia-settings command.
On Debian, this command comes from the nvidia-settings package. This may differ depending on your distribution.
To launch it, you will also need root permission and a shell.
And... that's all. In fact, you don't even need Bash! If you prefer to use Dash, or any other POSIX-compliant shell, it should work on it!

How to use it?

  1. Go here and click on Wayvifan.sh to download it.
  2. Open the file with your favorite text editor and configure it to your liking. Explanations and present, and you only really need to modify a single line.
  3. Open a terminal and go to where the file is located. Alternatively, use your file browser to go where the file is and open a terminal from there
  4. Make the file executable with chmod +x Wayvifan.sh
  5. Execute with ./Wayvifan.sh. You may need to enter your password so the script gains the right to control your GPU fan(s).

Alternatively, you can download the source code and either build (cough) Wayvifan.sh by running build.sh, or directly run main.sh.

Should I use it?

I am, you can too.
As it is still in a quite early stage, a lot could be added to make it more feature-rich and even easier to use.
Still, it works and could be good enough for you already.

I want to know more!

An FAQ is available.

About

Configurable Bourne shell (sh) script to control NVIDIA GPU fans. It works on both Xorg and Wayland.

Topics

Resources

License

Stars

Watchers

Forks

Languages