Portál AbcLinuxu, 30. července 2025 02:32
Řešení dotazu:
martin@martin:~$ glxgears Running synchronized to the vertical refresh. The framerate should be approximately the same as the monitor refresh rate. 10337 frames in 5.0 seconds = 2067.346 FPS 14151 frames in 5.0 seconds = 2829.818 FPS 14587 frames in 5.0 seconds = 2917.330 FPS 17498 frames in 5.0 seconds = 3499.249 FPS 11733 frames in 5.0 seconds = 2346.370 FPS 11587 frames in 5.0 seconds = 2317.267 FPS 17043 frames in 5.0 seconds = 3408.463 FPS 17928 frames in 5.0 seconds = 3585.572 FPS 13636 frames in 5.0 seconds = 2727.149 FPS 15602 frames in 5.0 seconds = 3120.000 FPS 16090 frames in 5.0 seconds = 3217.999 FPS 13437 frames in 5.0 seconds = 2686.941 FPS
# instalace balicku (pro jistotu vcetne toho lm-sensor vcetne jeho config dale) sudo apt install lm-sensors glances python-pip hddtemp # doinstalovani podpory detekce sensoru pro python, pozadovane pro glances parametr -e sudo pip install pysensors # nastavit opravneni k hddtemp aby to mohl poustet uzivatel, pozadovane pro glances parametr -y sudo chmod u+s /usr/sbin/hddtemp # detekce dostupnych sensoru # na otazku "Do you want to add these lines automatically to /etc/modules?" YES sudo sensors-detect # pusteni glances -e je zobrazuj teplotu cpu/gpu, -y je zobrazuj teplotu HDD, -t 1 je obnovuj kazdou 1 vterinu glances -e -y -t 1
watch -n 5 nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader
parametr -n je interval pro obnovení v sec
Pokud nemáš možnost z jiného PC nebo monitoru sledovat, můžeš využít bash, třeba jednoduchý skript (vytvoř textový soubor, vlož do něj následující kód, ulož jej → chmod +x název souboru)
#!/bin/bash
while true; do nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader >> ~/nvlog.txt; sleep .5; done
Pokud jej spustíš, bude ti ukládat opět po 5 sec teplotu grafiky do nvlog.txt. Nezapomeň jej pak zabít :)
Stejným způsobem můžeš použít další nástroje, které ti kluci radili.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.