How to query AMD P-state from Fedora via terminal?

To query the P-state (performance state) of an AMD processor on a Fedora system using the terminal, you can use the cpupower command. The cpupower command is a tool that can be used to set and query various settings related to CPU power management, including P-states.

To query the current P-state of your processor, you can use the following command:

cpupower frequency-info

This command will display information about the current P-state, including the current frequency, the available frequencies, and the governor (the algorithm used to control the P-state).

You can also use the command

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq

This will give you the current frequency of your CPU

Alternatively you can use

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

To install the cpupower tool on a Fedora system, you can use the dnf package manager.

First, open a terminal window.

Then, run the following command as root or with sudo:

dnf install cpupower

This command will install the cpupower package and its dependencies on your system.

Once the installation is complete, you can use the cpupower command as described above to query and set various settings related to CPU power management.

Alternatively, you can use the command

yum install cpupower

if you are using an older version of Fedora that uses yum package manager instead of dnf.