GithubHelp home page GithubHelp logo

Comments (5)

Haptein avatar Haptein commented on July 17, 2024 1

Yes, just like that 👍. You can override any of the keys in the DEFAULT profile, and you can add any number of profiles.

from powerplan.

Haptein avatar Haptein commented on July 17, 2024

These policies (Energy Performance Preference Policies) are distinct frequency scaling behaviours that come built in the CPU scaling driver (intel_pstate in your and my case). They basically control how aggressively your CPU tries to scale down in frequency , for example in power it tries to go to it's minimum allowed frequency as soon as it has nothing to do, while in the performance biased ones it tries to keep it's frequency higher to be more responsive.

The policies available that powerplan shows are all the EPP policies that your CPU (with intel_pstate) supports. But not that by default powerplan's config set's a computed (60% along the frequency range supported) bat_maxfreq which limits how high your CPU's frequency can go. I'm thinking perhaps that's the reason it feels a bit sluggish. Do you think this freq limit should be higher on battery?

from powerplan.

KarkanAlzwayed avatar KarkanAlzwayed commented on July 17, 2024

Ok, makes sense. It is something you can't control, however, you can control the percentage of frequency that the CPU can go on battery. The 60% sounds reasonable, but not in my case. I have a 4k screen, and I think 60% isn't enough for it to push all those pixels. I'd say 80% would be ok, or if there is a way to make it dynamic. Meaning, it increases as much as it wants depending on the use case, and which cpu intensive applications are running. Keep in mind, that my device is running on the iGPU (Intel UHD 620), as I don't ever install the Nvidia drivers, even though I have an Nvidia dGPU, because they always cause issues.
On a side note, I've set it to the balance_performence (default) policy and things are much better now. I guess, I'll stick with default.

from powerplan.

Haptein avatar Haptein commented on July 17, 2024

I'd say 80% would be ok, or if there is a way to make it dynamic.

I actually have been designing a system to dynamically change policies and limit frequencies. In my tests it increases my battery life by about 45% when completing the same task (that's the best case scenario in terms of energy savings, but savings are still substantial) compared to standard "just setting powersave/power governor/policy". It sounds nice in principle, but there's still some work left to do since I'd like this to work with the different scaling drivers available. I'll probably document this nicely when finished.

Meaning, it increases as much as it wants depending on the use case, and which cpu intensive applications are running.

You can already do this. For example if you wanted to increase the frequency limit when running browsers you could add a profile to /etc/powerplan.conf like so:

[MyBrowserProfileOrWhatever]
priority = 1
ac_maxfreq = 4000
bat_maxfreq = 4000
triggerapps = chromium, GeckoMain

Making a profile overrides the DEFAULT profile values with the ones specified when one of the triggerapps are running. Note that you have to match the process name (which you can find in any system monitor), so the example contains GeckoMain with is the process name of Firefox.

from powerplan.

KarkanAlzwayed avatar KarkanAlzwayed commented on July 17, 2024

I actually have been designing a system to dynamically change policies and limit frequencies. In my tests it increases my battery life by about 45% when completing the same task (that's the best case scenario in terms of energy savings, but savings are still substantial) compared to standard "just setting powersave/power governor/policy". It sounds nice in principle, but there's still some work left to do since I'd like this to work with the different scaling drivers available. I'll probably document this nicely when finished.

I'd like to test that

[MyBrowserProfileOrWhatever]
priority = 1
ac_maxfreq = 4000
bat_maxfreq = 4000
triggerapps = chromium, GeckoMain

Do I add this under the whole profile like so?

[DEFAULT]
priority = 99
ac_pollingperiod = 4000
bat_pollingperiod = 4000
ac_cores_online = 4
bat_cores_online = 4
ac_templimit = 95
bat_templimit = 95
ac_minfreq = 400
ac_maxfreq = 4000
bat_minfreq = 400
bat_maxfreq = 3000
ac_minperf = 1
ac_maxperf = 100
bat_minperf = 1
bat_maxperf = 96
ac_tdp_sustained = 0
ac_tdp_burst = 0
bat_tdp_sustained = 0
bat_tdp_burst = 0
ac_turbo = True
bat_turbo = False
ac_governor = powersave
bat_governor = powersave
ac_policy = balance_performance
bat_policy = default
triggerapps = 

[MyBrowserProfileOrWhatever]
priority = 1
ac_maxfreq = 4000
bat_maxfreq = 4000
triggerapps = chromium, GeckoMain

Or how do I go about adding it?

from powerplan.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.