For sale | "Goodbyes are only for those who love with their eyes. Because for those who love with heart and soul there is no such thing as separation" Rumi
Vraag
Alle reacties
Waar wil je het van weten? Achter power1 staat zo te zien het verbruik van de processor in Watts...
Saved by the buoyancy of citrus
https://askubuntu.com/que...a-sensors-output-in-conky
gebruik grep om de goede regel te selecteren, en cut om het gedeelte van de goede regel dat je wil hebben te bewaren en de rest weg te gooien.
gebruik grep om de goede regel te selecteren, en cut om het gedeelte van de goede regel dat je wil hebben te bewaren en de rest weg te gooien.
hout-nerd - www.hetmooistehout.nl of www.houtenschalen.nl
Of sed of awk. Bijvoorbeeld
Bash:
1
| sensors | awk '$1 == "power1:" {print $2, $3}' |
Lijkt me de Watts van de GPU, daar gaan die andere waardes ook over.Cyphax schreef op donderdag 5 augustus 2021 @ 11:55:
Waar wil je het van weten? Achter power1 staat zo te zien het verbruik van de processor in Watts...
For sale | "Goodbyes are only for those who love with their eyes. Because for those who love with heart and soul there is no such thing as separation" Rumi
'T is me eindelijk gelukt:
${exec "sensors -u amdgpu-pci-2d00 | grep -o 'power1_average: [0-9]\{1,3\}\.[0-9]' | cut -c 17-"} Watt
${exec "sensors -u amdgpu-pci-2d00 | grep -o 'power1_average: [0-9]\{1,3\}\.[0-9]' | cut -c 17-"} Watt
:no_upscale():strip_icc():fill(white):strip_exif()/f/image/cllTqGDUgUddypWqMPq5FPHX.jpg?f=user_large)
For sale | "Goodbyes are only for those who love with their eyes. Because for those who love with heart and soul there is no such thing as separation" Rumi
Je kunt het nog verder opleuken met de actuele GPU speed, zoiets als :
code:
1
| ${exec cat /sys/class/drm/card0/device/pp_dpm_sclk|grep -i \*|awk '{print $2}'| sed 's/Mhz//'} Mhz |
Dank je,AlterEgo schreef op donderdag 5 januari 2023 @ 10:21:
Je kunt het nog verder opleuken met de actuele GPU speed, zoiets als :
code:
1 ${exec cat /sys/class/drm/card0/device/pp_dpm_sclk|grep -i \*|awk '{print $2}'| sed 's/Mhz//'} Mhz
Maar die had ik al
code:
1
| ${exec grep -Po '\d+:\s\K(\d+)(?=.*\*$)' /sys/class/drm/card0/device/pp_dpm_sclk} Mhz |
For sale | "Goodbyes are only for those who love with their eyes. Because for those who love with heart and soul there is no such thing as separation" Rumi
Pagina: 1