to permanent the limit of CPU Scaling settings

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












I'm using intel core i3 with 2.2 GHz clock. I want to limit my CPU usage to 2GHz with command:



cpupower frequency-set -u 2GHz


and when I check with `cpufreq-info' state of CPU change into 2GHz.



but when I reboot, the state is reset again.







share|improve this question
























    up vote
    1
    down vote

    favorite












    I'm using intel core i3 with 2.2 GHz clock. I want to limit my CPU usage to 2GHz with command:



    cpupower frequency-set -u 2GHz


    and when I check with `cpufreq-info' state of CPU change into 2GHz.



    but when I reboot, the state is reset again.







    share|improve this question






















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I'm using intel core i3 with 2.2 GHz clock. I want to limit my CPU usage to 2GHz with command:



      cpupower frequency-set -u 2GHz


      and when I check with `cpufreq-info' state of CPU change into 2GHz.



      but when I reboot, the state is reset again.







      share|improve this question












      I'm using intel core i3 with 2.2 GHz clock. I want to limit my CPU usage to 2GHz with command:



      cpupower frequency-set -u 2GHz


      and when I check with `cpufreq-info' state of CPU change into 2GHz.



      but when I reboot, the state is reset again.









      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 23 at 22:36









      Mac Revelino Siahaan

      61




      61




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          There are many ways of accomplishing this. One way is to edit the file /etc/rc.local using sudo powers. Add your command just before the last line:





          #
          # This script is executed at the end of each multiuser runlevel.
          # Make sure that the script will "exit 0" on success or any other
          # value on error.
          #
          # In order to enable or disable this script just change the execution
          # bits.
          #
          # By default this script does nothing.

          cpupower frequency-set -u 2GHz

          exit 0


          If this doesn't work at first ensure the /etc/rc.local file is an executable using:



          $ ll /etc/rc.local
          -rwxr-xr-x 1 root root 944 Jan 5 11:57 /etc/rc.local*


          Note the 3 x's appearing near the beginning of the line. This means the script can be executed by the owner, the group and anyone else.






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1027613%2fto-permanent-the-limit-of-cpu-scaling-settings%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            There are many ways of accomplishing this. One way is to edit the file /etc/rc.local using sudo powers. Add your command just before the last line:





            #
            # This script is executed at the end of each multiuser runlevel.
            # Make sure that the script will "exit 0" on success or any other
            # value on error.
            #
            # In order to enable or disable this script just change the execution
            # bits.
            #
            # By default this script does nothing.

            cpupower frequency-set -u 2GHz

            exit 0


            If this doesn't work at first ensure the /etc/rc.local file is an executable using:



            $ ll /etc/rc.local
            -rwxr-xr-x 1 root root 944 Jan 5 11:57 /etc/rc.local*


            Note the 3 x's appearing near the beginning of the line. This means the script can be executed by the owner, the group and anyone else.






            share|improve this answer
























              up vote
              0
              down vote













              There are many ways of accomplishing this. One way is to edit the file /etc/rc.local using sudo powers. Add your command just before the last line:





              #
              # This script is executed at the end of each multiuser runlevel.
              # Make sure that the script will "exit 0" on success or any other
              # value on error.
              #
              # In order to enable or disable this script just change the execution
              # bits.
              #
              # By default this script does nothing.

              cpupower frequency-set -u 2GHz

              exit 0


              If this doesn't work at first ensure the /etc/rc.local file is an executable using:



              $ ll /etc/rc.local
              -rwxr-xr-x 1 root root 944 Jan 5 11:57 /etc/rc.local*


              Note the 3 x's appearing near the beginning of the line. This means the script can be executed by the owner, the group and anyone else.






              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                There are many ways of accomplishing this. One way is to edit the file /etc/rc.local using sudo powers. Add your command just before the last line:





                #
                # This script is executed at the end of each multiuser runlevel.
                # Make sure that the script will "exit 0" on success or any other
                # value on error.
                #
                # In order to enable or disable this script just change the execution
                # bits.
                #
                # By default this script does nothing.

                cpupower frequency-set -u 2GHz

                exit 0


                If this doesn't work at first ensure the /etc/rc.local file is an executable using:



                $ ll /etc/rc.local
                -rwxr-xr-x 1 root root 944 Jan 5 11:57 /etc/rc.local*


                Note the 3 x's appearing near the beginning of the line. This means the script can be executed by the owner, the group and anyone else.






                share|improve this answer












                There are many ways of accomplishing this. One way is to edit the file /etc/rc.local using sudo powers. Add your command just before the last line:





                #
                # This script is executed at the end of each multiuser runlevel.
                # Make sure that the script will "exit 0" on success or any other
                # value on error.
                #
                # In order to enable or disable this script just change the execution
                # bits.
                #
                # By default this script does nothing.

                cpupower frequency-set -u 2GHz

                exit 0


                If this doesn't work at first ensure the /etc/rc.local file is an executable using:



                $ ll /etc/rc.local
                -rwxr-xr-x 1 root root 944 Jan 5 11:57 /etc/rc.local*


                Note the 3 x's appearing near the beginning of the line. This means the script can be executed by the owner, the group and anyone else.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 24 at 0:35









                WinEunuuchs2Unix

                35.6k759133




                35.6k759133



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1027613%2fto-permanent-the-limit-of-cpu-scaling-settings%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    pylint3 and pip3 broken

                    Missing snmpget and snmpwalk

                    How to enroll fingerprints to Ubuntu 17.10 with VFS491