Skip to content

Instantly share code, notes, and snippets.

@drabb
Created August 24, 2023 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drabb/9d59493095b6988e90b6d12e9a0b7f62 to your computer and use it in GitHub Desktop.
Save drabb/9d59493095b6988e90b6d12e9a0b7f62 to your computer and use it in GitHub Desktop.
echo Linux AMD p-state settings
#!/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