-
-
Notifications
You must be signed in to change notification settings - Fork 481
feat: added CPU power profile switcher module for waybar #891
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
base: dev
Are you sure you want to change the base?
Conversation
|
Hi @XBEAST1 I'll be maintaining a This stores extra stuff like this and I'll be moving some from this repo to that. I'll be thinking of a way to do it though. Can this wait for a bit? as PPD daemon is currently ok for now |
yes i can wait bcz i've another repo of mine where i've added these scripts whenever i install or update HyDE |
| #!/bin/bash | ||
|
|
||
| GOVERNOR_PATH="/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" | ||
| NO_TURBO_PATH="/sys/devices/system/cpu/intel_pstate/no_turbo" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For amd cpu it is /sys/devices/system/cpu/amd_pstate/status, looks like you need cpu vendor to be detected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For amd cpu it is
/sys/devices/system/cpu/amd_pstate/status, looks like you need cpu vendor to be detected
yeah i wanted to add that but sadly i don't have amd cpu in my any device so i couldn't add support for it but I'd appreciate if anyone can help who has amd cpu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible values for pstate status for AMD are:
- active
- passive
- guided
In active mode, the processor selects the operating frequencies autonomously within the limits imposed by the hardware, including turbo boost. The powersave governor can also lead to max frequency.
With guided mode, you may configure the min and max frequency, and the processor will choose the operating frequency itself in the specified range. Guided is basically active mode with frequency range enforced.
In passive mode, in contrast to guided, the governor dictates the frequencies as configured.
Example:
❯ cat /sys/devices/system/cpu/amd_pstate/status
activeThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible values for pstate status for AMD are:
- active
- passive
- guided
In active mode, the processor selects the operating frequencies autonomously within the limits imposed by the hardware, including turbo boost. The powersave governor can also lead to max frequency.
With guided mode, you may configure the min and max frequency, and the processor will choose the operating frequency itself in the specified range. Guided is basically active mode with frequency range enforced.
In passive mode, in contrast to guided, the governor dictates the frequencies as configured.Example:
❯ cat /sys/devices/system/cpu/amd_pstate/status active
for intel cpus if i limit the cpu frequency on 800mhz it becomes so slow so for powersave mode what my script do is it just disables the intel turboboost and on balanced it enables the turbo boost and the governor remains same and on performance mode it sets the governor on performance
| "format-icons": { | ||
| "performance": "", | ||
| "balanced": " ", | ||
| "powersave": "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add icon for "unknown" profile also?
|
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
|
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
Powersave
Balanced
Performance