Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add option to specify CPU freq to use. #54

Open
Heisenborgar opened this issue Sep 18, 2024 · 2 comments
Open

[Feature Request] Add option to specify CPU freq to use. #54

Heisenborgar opened this issue Sep 18, 2024 · 2 comments

Comments

@Heisenborgar
Copy link

I'd like to specify a specific freq like 1800MHz, rather than the default one.

@Sepero
Copy link
Owner

Sepero commented Sep 22, 2024

A specific frequency? Maximum frequency or minimum frequency?

I'm curious about the reason for such request.

@Sepero
Copy link
Owner

Sepero commented Sep 22, 2024

It's possible you could edit the script and reach your goal. First copy the frequencies file.

sudo cp /sys/devices/system/cpu/cpu$CORE/cpufreq/scaling_available_frequencies /etc/custom_cpu_frequencies

Then edit the new file /etc/custom_cpu_frequencies and remove any frequencies you don't want.

Finally, change 1 line in the temp-throttle script to be your custom frequencies file. From this:

FREQ_FILE="/sys/devices/system/cpu/cpu$CORE/cpufreq/scaling_available_frequencies"

To this:

FREQ_FILE="/etc/custom_cpu_frequencies"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants