mirror of
https://github.com/elkowar/dots-of-war.git
synced 2025-04-05 14:23:31 +00:00
7 lines
300 B
Bash
Executable file
7 lines
300 B
Bash
Executable file
#! /bin/sh
|
|
#sudo cat /sys/kernel/debug/dri/0/amdgpu_pm_info
|
|
|
|
[ "$1" = "--watch" ] && \
|
|
sudo watch --no-title -n "0.5" "cat /sys/kernel/debug/dri/0/amdgpu_pm_info | grep -A 10 'GFX Clocks and Power'" || \
|
|
sudo cat "/sys/kernel/debug/dri/0/amdgpu_pm_info" \
|
|
| sed -n 's/^GPU Load: \(.*\)$/\1/gp'
|