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

powertop enables CPU power management persistently via hotkey but will not reverse or disable CPU power management #1422

Open
AeonJJohnson opened this issue Jan 31, 2024 · 0 comments

Comments

@AeonJJohnson
Copy link

Running powertop on a system with CPU power management disabled will cause a hotkey option in powertop to appear, offering a P option hotkey to disable CPU power management.

There is no hotkey or reversal option to this function. On a system running at top p-state (2.3GHz), hitting the P hotkey in powertop immediately drops the system to the lowest p-state at 800MHz and modifies /etc/power.conf to enable power management on subsequent reboots.

Instead of modifying the setting in /etc/power.conf it just adds conflicting statements to the config file.

/etc/power.conf before hitting P hotkey in powertop:

cpupm                   disable
cpu-threshold           10s

/etc/power.conf after hitting P hotkey in powertop:

cpupm                   disable
cpu-threshold           10s
cpupm enable
cpu-threshold 1s
  1. There is no way to reverse this action within powertop
  2. The function in powertop just adds "cpupm enable" and "cpu-threshold 1s" to /etc/power.conf without reading to see if there is an existing cpupm setting, thus creating double statements.
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

1 participant