set_override method is now called only if force flag is invoked.
Here are the specific code changes made:
In auto_cpufreq/core.py:
- Line 96: Removed the root_check call from the set_override function.
This was intended to be done to comply with code template,
i.e., to use root_check in the main file.
In bin/auto-cpufreq:
- Line 45: Added a root_check call before calling set_override in main program.
Also, set_override is only called if force option is invoked, saving
us from precious extra overheads.
Fixes#530
* add the --force option and governor overrides
* update README to reflect --force option
* add --state option
* update README with --state option
* update README to expand on --force functionality
* change name of remove() func and remove pickle upon --remove
* check if daemon is not running when using --force and change --state
* add links to README
* change force section wording
* add quotes to --force help
* add override warning to stats file
* hide --get-state flag
* consolidate error messages and add daemon checks to --get-state and --stats
* add quotes
* Add min/max allowed frequencies option (#309)
Setting the minimum/maximum allowed CPU frequencies is now possible
via 'scaling_min_freq' and 'scaling_max_freq' options in config
for both modes (charger and battery).
Values should be given in kHZ.
Example:
scaling_min_freq = 1800000
scaling_max_freq = 2000000
I also did autoformatting via 'black', using --line-length 100.
Code is now a bit tidier than before.
* Fixes for min/max allowed frequencies option
* Further modify min/max frequency option
* Fix temporary modification in min/max allowed frequency option
Co-authored-by: Akos Varady <akos.varady@ericsson.com>
* daemon running msg was wrong (it was printing the install message). Fixed to a daemon running specific message.
* move footer after the daemon check func
* Add config file for setting preferred governor and turbo boost settings.
* Add an example config file.
* Display notice when using settings from config file when starting
* Add section about configuring to README.md
* Add --config parameter to set path for configuration file to use
* Ignore Pycharm descriptors from VCS.
* Rename all occurances of `log` to `stats`.
* Rename log file to stats and move to /var/run
* Bring back --log switch with deprecation message.
* implemented --debug option
- Added --debug option that shows sys info
- Added inxi as dependency
- Implemented get_sys_info() that returns inxi output
with injected governnor information
- Fixed bug: delete_file was called but this was deleted in prev PR
- Updated issue template
* refactored and fixed amd coretemp
- added get_avail_powersave() (and performance).
This function returns the most energy efficient governor.
This should fix AMD issue when powersave is not available
but "ondemand" or "schedutil" are present
- Cleaned up and refactoring.
Added more convinient util fuctions.
Also made it more pythonic, reduced subprocess calls.
- fixed get_curr_gov()
* fixed gov_check()