Created
August 24, 2023 12:37
-
-
Save drabb/9d59493095b6988e90b6d12e9a0b7f62 to your computer and use it in GitHub Desktop.
echo Linux AMD p-state settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
green="\033[32m" | |
reset="\033[0m" | |
SCALING=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver) | |
EPP_SETTING=$(cat /sys/devices/system/cpu/cpu0/cpufreq/energy_performance_preference) | |
GOVERNOR_SETTING=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor) | |
echo | |
echo -e "${green}scaling:${reset} ${SCALING}" | |
echo -e "${green}epp setting:${reset} ${EPP_SETTING}" | |
echo -e "${green}governor:${reset} ${GOVERNOR_SETTING}" | |
echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment