aboutsummaryrefslogtreecommitdiff
path: root/pages/linux/clock.md
diff options
context:
space:
mode:
Diffstat (limited to 'pages/linux/clock.md')
-rw-r--r--pages/linux/clock.md12
1 files changed, 8 insertions, 4 deletions
diff --git a/pages/linux/clock.md b/pages/linux/clock.md
index 9fbda3d..10f7027 100644
--- a/pages/linux/clock.md
+++ b/pages/linux/clock.md
@@ -2,6 +2,10 @@
> Change clock of various components
+- Print dedicated CPU clocks:
+
+`cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor`
+
- Set CPU governor to performance:
`sudo cpupower frequency-set -g performance`
@@ -10,10 +14,10 @@
`sudo cpupower frequency-set -g powersave`
-- Print dedicated GPU clocks
+- Print dedicated GPU clocks (first card):
-`sudo cpupower frequency-set -g performance`
+`sudo cat /sys/kernel/debug/dri/0/pstate`
-- Reclock the dedicated GPU
+- Reclock the dedicated GPU:
-`echo {{pstate}} | sudo tee /sys/kernel/debug/dri/1/pstate`
+`echo {{pstate}} | sudo tee /sys/kernel/debug/dri/0/pstate`