Created
November 26, 2026 15:15
-
-
Save avoidwork/f523de6636450032f6dcb781265e0d75 to your computer and use it in GitHub Desktop.
DGX Spark limiter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo rm -f /etc/udev/rules.d/99-nvidia-*.rules | |
| sudo tee /etc/udev/rules.d/99-nvidia-clock-limit.rules > /dev/null << 'EOF' | |
| ACTION=="add|bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", DRIVER=="nvidia", TAG+="systemd", ENV{SYSTEMD_WANTS}="nvidia-clock-limit.service" | |
| EOF | |
| # systemd file | |
| sudo tee /etc/systemd/system/nvidia-clock-limit.service > /dev/null << 'EOF' | |
| [Unit] | |
| Description=Cap NVIDIA GPU clocks on ASUS Ascent GX10 | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/usr/bin/nvidia-smi -pm 1 | |
| ExecStart=/usr/bin/nvidia-smi -lgc 300,2200 | |
| [Install] | |
| WantedBy=multi-user.target | |
| EOF | |
| # Shell commands to reload | |
| sudo udevadm control --reload-rules | |
| sudo systemctl daemon-reload | |
| sudo systemctl start nvidia-clock-limit.service | |
| sudo systemctl status nvidia-clock-limit.service | |
| # Verify | |
| nvidia-smi -q -d CLOCK | grep -E "Max Clocks|Graphics" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment