Making scaling governor changes permanent

Forum Forums New users New Users and General Questions Making scaling governor changes permanent

  • 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)
  • Author
    Posts
  • #95916
    Member
    BottledSound

      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

      #95949
      Member
      sybok
        Helpful
        Up
        0
        ::

        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

        #95952
        Member
        Xunzi_23
          Helpful
          Up
          0
          ::

          Hi, please check your BIOS settings.

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.