- This topic has 2 replies, 3 voices, and was last updated Dec 20-9:15 am by Xunzi_23.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Forum for users of antiX Linux. Mean and Lean and Proudly anti-fascist.
Forum › Forums › New users › New Users and General Questions › Making scaling governor changes permanent
Tagged: CPU, cpufreq, frequency, governor, kernel, ondemand, performance, powersave, scaling, schedutil
Hello!
I’ve been having to keep changing my CPU governor in /sys/devices/system/cpu/cpuX directories individually back to ondemand after every restart, as it keeps reverting to performance. How do I make this change permanent? It’s still a fuss on my 2 core laptop, but I also use an 8 core desktop occasionally too, and it gets quite tedious to keep doing it all over again.
In general, though, I like this distro very much and I’m glad that with it my PCs will never become obsolete for the rest of my life 🙂
Cheers
Hi, please provide more information about your system (‘inxi -Fxz’ is a good start).
My tips:
1) Check what processes do change these files and explore why it occurs and options how to disable/prevent it from happening.
2) Write a script that automates the changes you make (simple copy or sequence of sed substitutions) and call it at an appropriate time automatically (e.g. via ‘cron’ at reboot)
3) Make these files read-only even for root. [This is potentially dangerous and it might break your system!]
Suggested reading to (hopefully) get one started:
https://phoenixnap.com/kb/crontab-reboot
https://unix.stackexchange.com/questions/99074/find-which-process-is-modifying-a-file
| Cookie | Duration | Description |
|---|---|---|
| cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
| cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
| cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
| cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
| cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
| viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |