BS86
June 10, 2023, 4:17pm
47
take a look here:
with Kernel 6.3, we can now set amd-pstate=active via Kernel boot parameter, passive still works.
the default EPP mode is performance:
cat /sys/devices/system/cpu/cpufreq/policy0/energy_performance_preference
performance
and the available ones can be checked with
cat /sys/devices/system/cpu/cpufreq/policy0/energy_performance_available_preferences
default performance balance_performance balance_power power
those sysfs parameters can then be changed like every other sysfs interface (be aware…
here:
depends on what you want to achieve - but most options it offers are non-relevant now.
It can’t change the energy_performance_preference which is the only value that makes sense to modify now. I use a self-written systemd-service with a self-written bash script for that:
cat /etc/systemd/system/set_pstate_epp_preference.service
[Unit]
Description=Set AMD P-State-EPP preference
[Service]
ExecStart=/usr/bin/set_balance_power.sh
[Install]
WantedBy=multi-user.target
cat /usr/bin/se…
and here:
well … I gave the task of writing the script to ChatGPT free model (chatGPT 3):
User
Write a Shell script that applies a configurable value, for example 'balance_power' to all threads of a system. The path is /sys/devices/system/cpu/cpufreq/policy6/energy_performance_preference
ChatGPT
Certainly! Here's a Shell script that applies a configurable value, such as 'balance_power', to all threads of a system by modifying the energy_performance_preference file for each CPU thread:
bash
#!/bin/b…
basically, power is what you might want on a notebook
basically, you need a way to apply the value to ALL threads. For me, the easiest way was to set up a systemd-service and use a script in said systemd-service to set the value I want.