mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-27 06:32:23 +00:00
10 lines
307 B
Bash
Executable file
10 lines
307 B
Bash
Executable file
#!/bin/dash
|
|
#sudo cat /sys/kernel/debug/dri/0/amdgpu_pm_info
|
|
|
|
|
|
if [ "$1" = "--watch" ]; then
|
|
sudo watch --no-title -n 0.5 "cat /sys/kernel/debug/dri/0/amdgpu_pm_info | grep -A 10 'GFX Clocks and Power'"
|
|
else
|
|
sudo cat /sys/kernel/debug/dri/0/amdgpu_pm_info \
|
|
| sed -n 's/^GPU Load: \(.*\)$/\1/gp'
|
|
fi
|