-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run as a service? #1
Comments
Thanks, I think it is possible, you can choose to launch fan.sh or nvidia_fan_control.py when system start, here is an example, I think it should work.(Which means I haven't tested it yet.) Create and edit a systemd service file: sudo nano /etc/systemd/system/nvidia_fan.service [Unit]
Description=NVIDIA Fan Control
After=multi-user.target
[Service]
Type=simple
ExecStart=/path/to/nvidia_fan_control_linux/fan.sh
User=root
Group=root
Restart=always
[Install]
WantedBy=multi-user.target Enable and start the service: sudo systemctl enable nvidia_fan.service
sudo systemctl start nvidia_fan.service
sudo systemctl status nvidia_fan.service This should ensure the script runs with root privileges at start. |
I'll give it a try, thanks! |
This worked for me on ubuntu 24.04 with my fan flickering evga 3060ti, thank you so much! |
if you have SELinux active (e.g., in Fedora) it can block the execution of the shell in the service from your home dir. Alternatively, you can just set |
what we are looking for amazing |
Thanks for this. If I want to load my custom fan curve at system start and have it maintained while the system is active can I run the fan.sh script as a service? If so, could you provide an example of what that could look like?
The text was updated successfully, but these errors were encountered: