Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    [How-to] Changing default CPU governor.

    Support
    battery cpu governor howto
    7
    13
    3563
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mymike
      mymike last edited by

      @hendrixxx said in [How-to] Changing default CPU governor.:

      It would be cool if we could change these settings straight from setting menu.

      Yeah, it would be very cool. I think reporting an issue on github will help developer as may they forgot by only reading here... if you want I can report the issue for you, if you prefer...

      HendriXXX 1 Reply Last reply Reply Quote 1
      • arubislander
        arubislander last edited by

        I was very happy to find this post. I have been looking for ways to reduce battery usage on my Meizu Pro 5. So I was eager to try the things mentioned here.
        Sadly:

        $ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors
        interactive
        

        So only interactive is available on my kernel.

        But nonetheless, thank you very much for the post. It serves to remind us that there is a real Linux kernel underneath the lovely UTouch interface.

        HendriXXX Lakotaubp 2 Replies Last reply Reply Quote 0
        • HendriXXX
          HendriXXX @mymike last edited by

          @mymike feel free to report github issue if you want. Thanks!

          1 Reply Last reply Reply Quote 0
          • HendriXXX
            HendriXXX @arubislander last edited by

            @arubislander said in [How-to] Changing default CPU governor.:

            I was very happy to find this post. I have been looking for ways to reduce battery usage on my Meizu Pro 5. So I was eager to try the things mentioned here.
            Sadly:

            $ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors
            interactive
            

            So only interactive is available on my kernel.

            But nonetheless, thank you very much for the post. It serves to remind us that there is a real Linux kernel underneath the lovely UTouch interface.

            Thanks! I am not developer but I like to tweak Linux everywhere possible. Just trying different things all to time.. 🙂
            I think it should be possible to add conservative governor in M5pro kernel just by enabling it and compile. I will check today what gov options my N4 has.

            1 Reply Last reply Reply Quote 0
            • mihael
              mihael last edited by

              When I try echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor it says "bash: echo: write error: Invalid argument".

              I'm on turbo, vivid. Could anyone help me with this?

              HendriXXX 1 Reply Last reply Reply Quote 0
              • HendriXXX
                HendriXXX @mihael last edited by

                @mihael what does "$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors" says?

                Do you have conservative option listed?

                1 Reply Last reply Reply Quote 0
                • Lakotaubp
                  Lakotaubp @arubislander last edited by Lakotaubp

                  @arubislander Same on the mx4 interactive only if thats of any help to anyone.

                  1 Reply Last reply Reply Quote 0
                  • Vehi_MV
                    Vehi_MV last edited by Vehi_MV

                    Just for info.
                    On BQ E4.5 available governors are:
                    -userspace
                    -powersave
                    -hotplug (default)
                    -performance

                    I allso found a thread explaining governors on xda-developers:
                    https://forum.xda-developers.com/showthread.php?t=1736168

                    1 Reply Last reply Reply Quote 0
                    • mihael
                      mihael last edited by

                      @HendriXXX I have interactive:

                      phablet@ubuntu-phablet:~$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors
                      interactive 
                      interactive 
                      interactive 
                      interactive 
                      

                      I tried with powersave and I get the same result:

                      root@ubuntu-phablet:/home/phablet# echo powersave > /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
                      bash: echo: write error: Invalid argument
                      
                      HendriXXX 1 Reply Last reply Reply Quote 0
                      • HendriXXX
                        HendriXXX @mihael last edited by

                        @mihael Ok. For some reason other governors aren't compiled in to the kernel then.
                        I just checked my N4 and it has all governor options in kernel.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post