Tutti Nuovi

user:thomas utente che ha creato il gist

title:mygist titolo del gist

filename:myfile.txt nome di file nel gist

extension:yml estensione del file nel gist

language:go linguaggio del file nel gist

topic:homelab gists with given topic

Entra


Tutti Nuovi Entra

All gists matching topic gaming

Più recente creazione
Meno recente creazione
Più recente aggiornamento
Meno recente aggiornamento
santiago's Avatar

santiago / are_games_running.sh

0 mi piace
0 forks
1 files
Ultima volta attivo 1767277683
Check wattage of NVIDIA GPU returns 0 if above threshold of 30W
Linux NVIDIA gaming
1 #!/usr/bin/env bash
2 set -euo pipefail
3
4 POWER_LIMIT=30
5
6 power="$(nvidia-smi --query-gpu=power.draw --format=csv,noheader,nounits 2>/dev/null | head -n1)"
7
8 if [[ -z "$power" ]]; then
9 echo "OOPS: cannot read GPU power - check nvidia GPU driver"
10 exit 1
Più nuovi Più vecchi

Creato da Opengist ⋅ Load: 33ms⋅

Italiano
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文