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

Add more granular control for frequency in config #544

Open
JakeRoggenbuck opened this issue Jun 30, 2023 · 5 comments
Open

Add more granular control for frequency in config #544

JakeRoggenbuck opened this issue Jun 30, 2023 · 5 comments
Projects

Comments

@JakeRoggenbuck
Copy link
Owner

Allow custom frequency options set in config.

Add to config:
max when on battery
min when on battery
max when on charging
min when on charging

max when on powersave
min when on powersave
max when on performance
min when on performance

@Camerooooon
Copy link
Collaborator

Currently running the following command results in a permission denied error

~ » sudo echo "2000000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
bash: /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: Permission denied

Is there another way to set the max frequency? Or maybe my computer specifically does not let me change the max frequency?

@JakeRoggenbuck
Copy link
Owner Author

I checked and it doesn't work with sudo but does with with root. There is a small intersection of hardware things that don't accept sudo but do accept root.

@JakeRoggenbuck
Copy link
Owner Author

However, when I set the value for scaling_max_freq it instantly reset to it's default

@JakeRoggenbuck
Copy link
Owner Author

Found it: /sys/devices/system/cpu/cpuX/cpufreq/scaling_setspeed

@JakeRoggenbuck
Copy link
Owner Author

It says here that you can set the speed https://wiki.archlinux.org/title/CPU_frequency_scaling

@JakeRoggenbuck JakeRoggenbuck added this to Backlog in Task List Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Task List
Backlog
Development

No branches or pull requests

2 participants