vagnum08 / cpupower-gui

cpupower-gui is a graphical program that is used to change the scaling frequency limits of the cpu, similar to cpupower.
GNU General Public License v3.0
465 stars 32 forks source link

Frequency automatically gets reset after being applied #74

Closed rdong8 closed 2 years ago

rdong8 commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

On my AMD Ryzen 7 5700U, any change I make to the frequency with the sliders is immediately reset after applying.

To Reproduce Steps to reproduce the behaviour:

  1. Change frequency using sliders
  2. Apply
  3. Notice that it gets reset

Expected behaviour A clear and concise description of what you expected to happen.

Allow frequency to be changed, or display the change properly if it is being applied

Setup (please complete the following information):

Additional context Add any other context about the problem here.

The frequency shown by the Current freq. column as well as cat \proc\cpuinfo | grep MHz is higher than the max frequency shown by the slider, although the two do not match each other for some reason.

https://user-images.githubusercontent.com/66289396/147895178-27a4da8e-d373-4f4c-850e-18780ec11542.mp4

vagnum08 commented 2 years ago

Hey,

I took another look at it and I noticed something.

On the video above, if you pause after you applied the setting you can notice that the frequencies of some CPU cores m are above 1800MHz, some are around 4000.

I noticed the U on 5700, so this is a laptop CPU. I have a Ryzen 5 desktop CPU and doesn't show this behaviour.

This made me think, probably the maximum base frequency is 1.8GHz and 4.3GHz might be a boosted one.

Based on Wikipedia[1] my assumption is correct. It seems you can only set a maximum of 1.8GHz and let the CPU boost on its own. There is no way (probably) to set it to 4.3GHz for all cores.

[1] https://en.wikipedia.org/wiki/List_of_AMD_Ryzen_processors#Lucienne_(5000_series)