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
430 stars 31 forks source link

Cannot apply profile at boot, and CPU boost is locked #65

Open thdtt opened 2 years ago

thdtt commented 2 years ago

Problem I've create a profile and apply it to my machine. Everything is OK till I restart or shutdown my laptop then turn on back. After reboot, In Profile tab, it returns "No profile" as image 1 though I've set my profile at boot as image 2

To Reproduce Steps to reproduce the behaviour:

  1. Create a new profile, then apply settings
  2. Select it as default profile at boot
  3. Restart machine
  4. Profile return "No profile" and configuration is diffirent to my profile

Expected behaviour Boot to machine with default profile as I've set.

Setup (please complete the following information):

Additional context

supdrewin commented 2 years ago

The cpupower-gui.service is a system service seems only apply the root profile at boot due to the config file saved location, to apply your user profile at login, try this command to enable the user service:

systemctl --user enable cpupower-gui-user

Package version: AUR package at this link

It's recommended to install the git version, which fix some known issues.

supdrewin commented 2 years ago

Image 1: "No profile" at startup

By the way, this isn't a bug, No profile is used to disable the Apply btn.

supdrewin commented 2 years ago

Image 2: Set default profile at boot and CPU maximum frequency is locked at 1600MHz

Some Vendor may lock the CPU maximum frequency on BIOS. This is designed for protecting the computer from high temperature. But sometime it's bad. The intel_pstate actually always know the maximum frequency of the CPU, but it may respect the BIOS settings and may disable the Hardware Dynamic Boost default (during the kernel config). If it's possible, check this following:

cat /sys/devices/system/cpu/intel_pstate/hwp_dynamic_boost
echo 1 > /sys/devices/system/cpu/intel_pstate/hwp_dynamic_boost