Giter Site home page Giter Site logo

Comments (9)

shadeyg56 avatar shadeyg56 commented on May 27, 2024 3

Ok i've submitted a PR on the psutil repo that should fix this.
giampaolo/psutil#2376

I imagine it will take some time for this to merge and make it into a release so we just have to wait.

from auto-cpufreq.

AdnanHodzic avatar AdnanHodzic commented on May 27, 2024 1

Congrats on getting it merged!

from auto-cpufreq.

shadeyg56 avatar shadeyg56 commented on May 27, 2024 1

Although we don't know when a new release for psutil will happen, it should be possible to swap the PyPi release directly with the Github source (from the commit of the patch I made) in the meantime

Went ahead and did this. 5e17ee3

from auto-cpufreq.

shadeyg56 avatar shadeyg56 commented on May 27, 2024

Unfortunately, this looks like an upstream bug in psutil
giampaolo/psutil#2254

So this isn't something we can fix. The issue on the psutil repo has had little activity as well. If I have some time, I might delve into the psutil source code and see if I can open a PR over there

from auto-cpufreq.

astonish-g avatar astonish-g commented on May 27, 2024

Thank you so much beeing nice enough to fix this issue! Now I changed my laptop, and have one with AMD Ryzen 8845HS. I will try this, but for now I am getting higher watt useage compared to my old one. I am still trying to find the issue, before I will try this fix. Thank you again!

from auto-cpufreq.

Svenum avatar Svenum commented on May 27, 2024

Hi,
I do not know if this is the right place, but I do not want to open an new issue only for this question.
Is there a way to set CPU-Core-Count via the config file? I want to set my core count to 4 if on battery and to 16 if on AC.

from auto-cpufreq.

shadeyg56 avatar shadeyg56 commented on May 27, 2024

Its not currently possible.

  1. because it hasn't been implemented
  2. this bug is still in upstream as the merged PR has not made its way into a release yet so disabling a cpu core will crash auto-cpufreq

from auto-cpufreq.

Nolicx avatar Nolicx commented on May 27, 2024

Hey there, i've been using this tool for about the past week and i think it's great.
While searching for a way to disable cores i've found this issue and seen a few other issues and discussions regariding this feature.
I would love to implement it, as soon as the upstream issue has been fixed.
Is there anything i should do besides the implementation and the creation of a pull request?

from auto-cpufreq.

shadeyg56 avatar shadeyg56 commented on May 27, 2024

@Nolicx
I'm glad auto-cpufreq has been useful for you.

If you're interested in adding it, I think its a good idea and shouldn't be too difficult.
Although we don't know when a new release for psutil will happen, it should be possible to swap the PyPi release directly with the Github source (from the commit of the patch I made) in the meantime
Consider joining our Discord server if you want to discuss anything.

from auto-cpufreq.

Related Issues (20)

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.