Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

framework 16 - CPU stuck below 1ghz under 100% load after sleep resume #1174

Open
Eddio0141 opened this issue Oct 10, 2024 · 4 comments
Open

Comments

@Eddio0141
Copy link

After sleeping and resuming, the performance of the laptop drops by a significant amount
The CPU clock cannot go over 1ghz when at 100% or near 100% CPU load
Power profile hasn't changed, switching to other profiles and back to performance doesn't change anything

@Mic92
Copy link
Member

Mic92 commented Oct 23, 2024

On other Intel hardware I have seen 600mhz as the minimal frequency. But this was often linked with some period of overheating. In any case this was only resolved by a reboot, which resets the power management.

@Eddio0141
Copy link
Author

The CPU temperature doesn't go above 50c while this is happening
If this is an option in power-profiles-daemon or something, I'd love to disable it

@Mic92
Copy link
Member

Mic92 commented Oct 24, 2024

Might be something else than.

@Sigmanificient
Copy link
Member

Sigmanificient commented Dec 17, 2024

I am currently running into a similar issue with a different laptop model. Running on a i7-1370P which has 14 cores, 20 thread and a a frequency range from 400Mhz to 5.2Ghz.

I am facing issues with the CPU frequency when trying to do heavy work (for instance, compiling a lib with cmake). In such scenario the frequency throttle down to 800Mhz:

$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq
700000
699992
699978
700006
699998
700003
700003
700005
699997
700009
699993
699992
700014
700000
700000
699992
700013
700000
700007
700000

(other method report similar frequencies)

And the CPU is showing not sign of overheating (throttling even at 50ish degrees).

I have set the latest available kernel from nixpkgs, using boot.kernelPackages = pkgs.linuxPackages_latest;, as I heard it had better support with newer CPU.

$ uname -a
Linux Sigmachine 6.12.3 #1-NixOS SMP PREEMPT_DYNAMIC Fri Dec  6 06:20:46 UTC 2024 x86_64 GNU/Linux

Then I started tweaking governor settings:

I made sure to use the following setting for powerManagement:

  powerManagement = {
    enable = true;
    cpuFreqGovernor = "performance";
  };

and also tried the following variant for this kernel parameters which i found on other similar discourse posts:

boot.kernelParams = [ "intel_pstate=active" ];
boot.kernelParams = [ "intel_pstate=disable" ];
boot.kernelParams = [ "intel_pstate=passive" ];

Disable this options, as a post suggested it could be part of the problem:

services.power-profiles-daemon.enable = false;

I also tried settings cpufreq.min setting to 5.0Ghz, and tried auto-cpufreq:

  services.auto-cpufreq.enable = true;
  services.auto-cpufreq.settings = {
    battery = {
      governor = "powersave";
      turbo = "never";
    };
    charger = {
      governor = "performance";
      turbo = "auto";
      scaling_min_freq = 520000000;
    };
  };

So far I have not been able to fix my issue, although you may find your luck in the options i tried

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants