Skip to content

Fix auto-cpufreq --monitor reporting the "CPU frequency scaling" section wrong. #855

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

Merged
merged 1 commit into from
Jun 29, 2025

Conversation

PhoenixCausesOof
Copy link
Contributor

It used to always read the config file's "battery" section and report that, even if connected to a charger. I used a hacky solution (simply check the state of the battery, i.e., charging or not charging) and read the correct part of the config file based on that.

…ction wrong.

It used to always read the config file's "battery" section and report that, even if connected to a charger. I used a hacky solution (simply check the state of the battery, i.e., charging or not charging) and read the correct part of the config file based on that.
@AdnanHodzic
Copy link
Owner

Hi,

Could you please be more elaborate in what exactly does this PR fix? As I couldn't replicate what changes with --monitor with or without config file with what's currently on master branch.

@PhoenixCausesOof
Copy link
Contributor Author

PhoenixCausesOof commented Jun 23, 2025

Charger is plugged (wrong):
Screenshot From 2025-06-23 13-38-31

Charger is unplugged (correct):
Screenshot From 2025-06-23 13-39-52

The state of EPP and EPB aren't accurate (nor matches with the GUI's data) when the device is connected to AC / being charged. This fixes that. (I apologize for explaining confusingly).

@AdnanHodzic AdnanHodzic merged commit fabeee6 into AdnanHodzic:master Jun 29, 2025
2 checks passed
@AdnanHodzic
Copy link
Owner

Thank you for clarification, LGTM.

Thank you for your contribution, you will be credited for your work as part of future release

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

Successfully merging this pull request may close these issues.

2 participants