Coder Social home page Coder Social logo

Comments (4)

bill88t avatar bill88t commented on May 24, 2024

When cpu1 is disabled:

cat /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq 
cat: /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq: Device or resource busy
cat /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq 
cat: /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq: Device or resource busy

However sudo sh -c 'echo "1" > /sys/devices/system/cpu/cpu1/online' works just fine.
Maybe it is wise to check if the core is enabled first.

I can probably fix this myself.

from cpupower-gui.

vagnum08 avatar vagnum08 commented on May 24, 2024

I am aware of this. I found out a couple of weeks ago that this happens when I was trying to troubleshoot another bug.

I did some changes in helper.py if I recall correctly.

Feel free to have a go at fixing this and I will be happy to merge a pull request.

from cpupower-gui.

bill88t avatar bill88t commented on May 24, 2024

All yours chief.
Tested it against my system.

from cpupower-gui.

Reginald-Gillespie avatar Reginald-Gillespie commented on May 24, 2024

The classic "it works on my system" lol. I had this issue just now when messing with disabling cores. 6 of my cores are hyperthreaded to each handle 2 threads (so I have 14 hardware cores but the computer sees 20), not sure if that might be related or not.

Here's the output:

wkoa {~} $ cpupower-gui off 1
Setting CPU1 offline...
OK
wkoa {~} $ cpupower-gui co
WARNING! Unknown CPU frequency, cause: [Errno 16] Device or resource busy
WARNING! Unknown CPU frequency, cause: [Errno 16] Device or resource busy
WARNING! Unknown CPU frequency, cause: [Errno 16] Device or resource busy
WARNING! Unknown CPU frequency, cause: [Errno 16] Device or resource busy
Applying configuration... 
Setting CPU: 0
    Minimum Frequency: 400.0 MHz, Maximum Frequency: 4700.0 MHz
    Governor: Powersave, Online: True

Traceback (most recent call last):
  File "/usr/bin/cpupower-gui", line 351, in <module>
    args.func(args)
  File "/usr/bin/cpupower-gui", line 72, in set_config
    ret = apply_configuration(conf)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/cpupower-gui/cpupower_gui/helper.py", line 67, in apply_configuration
    apply_cpu_profile(config.get_profile(profile))
  File "/usr/share/cpupower-gui/cpupower_gui/helper.py", line 52, in apply_cpu_profile
    print(MSG.format(cpu, fmin / 1e3, fmax / 1e3, gov.capitalize(), online))

Same thing with sudo, whether that helps or not idk.

from cpupower-gui.

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.