Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swift-earth-science/nvidia-fan-ctl
NVIDIA Fan Control Tool that uses NVIDIA's NVML library for direct hardware access without requiring X11 or nvidia-settings. It will work in background sessions and as a service.
https://github.com/swift-earth-science/nvidia-fan-ctl
Last synced: 15 days ago
JSON representation
NVIDIA Fan Control Tool that uses NVIDIA's NVML library for direct hardware access without requiring X11 or nvidia-settings. It will work in background sessions and as a service.
- Host: GitHub
- URL: https://github.com/swift-earth-science/nvidia-fan-ctl
- Owner: swift-earth-science
- License: apache-2.0
- Created: 2024-11-27T16:41:13.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-27T22:15:08.000Z (2 months ago)
- Last Synced: 2024-11-27T22:29:29.036Z (2 months ago)
- Language: C
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nvidia-fan-ctl
NVIDIA Fan Control Tool that uses NVIDIA's NVML library for direct hardware access without requiring X11 or nvidia-settings. It will work in background sessions and as a service.
# Build
```bash
# create symlink to libnvidia-ml.so.1
sudo ln -s /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1 /usr/lib/x86_64-linux-gnu/libnvidia-ml.so# build
./build.sh
```# Install
Copy to `/usr/local/bin`:
```bash
sudo cp -f ./gpu-fan-control /usr/local/bin/gpu-fan-control
```Create service file:
```bash
sudo nano /etc/systemd/system/gpu-fan-control.service
```Copy this config in it:
```bash
[Unit]
Description=GPU Fan Control Service
After=nvidia-persistenced.service
Wants=nvidia-persistenced.service[Service]
Type=simple
ExecStart=/usr/local/bin/gpu-fan-control
Restart=always
RestartSec=3
User=root[Install]
WantedBy=multi-user.target
```Enable and start the service:
```bash
sudo systemctl daemon-reload
sudo systemctl enable gpu-fan-control
sudo systemctl start gpu-fan-control
```Check status:
```bash
sudo systemctl status gpu-fan-control
sudo journalctl -u gpu-fan-control -f
```Update:
```bash
sudo systemctl stop gpu-fan-control
sudo cp -f ./gpu-fan-control /usr/local/bin/gpu-fan-control
sudo systemctl start gpu-fan-control
```