Commit Graph

326 Commits

Author SHA1 Message Date
Martin Andersson f67e909b59
Catch exception in call to psutil .cmdline() (#413)
There's a race condition where processes might disappear while filtering. The uncaught exception causes a crash.
2022-08-10 14:23:58 +02:00
Adnan Hodzic 7b81b4aa30 Merge branch '1.9.5' 2022-08-09 20:26:19 +02:00
Adnan Hodzic 559350f3ef Add --install_performance option to help menu 2022-08-02 09:27:57 +02:00
Ishaan Bhimwal 29d5d87ded
fix multiple typos as reported by typos (#410) 2022-07-31 08:14:27 +02:00
tacheometry 812e97d8d9
Fix daemon typo (#409) 2022-07-28 09:35:52 +02:00
Musa Ahmed a1c93a4d4d
Running "auto-cpufreq" itself returns an error (#408)
Running "auto-cpufreq" itself returns an error so I added the "--help" flag so the user know how to see the available options.
2022-07-19 16:53:38 +02:00
Adnan Hodzic e1637fa85e Update to core22 & v1.9.5 bump 2022-06-17 07:04:17 +02:00
Adnan Hodzic cde4cbeb45
Updated Readme how to use `performance` mode 2022-06-11 18:45:25 +02:00
Adnan Hodzic fa5d86669f Updated issue template & README 2022-06-10 07:45:32 +02:00
Adnan Hodzic d9295f4cf2 Revamped how log file is emptied 2022-06-05 20:10:33 +02:00
Adnan Hodzic c8f9095067 Real time auto-cpufreq refresh 2022-06-05 17:44:33 +02:00
Adnan Hodzic 06b188438b version 1.9.4 2022-05-23 14:59:18 +02:00
Jeroenvb fbd4863213
Fixed where average all core temp is displayed with too many decimals. (#392)
* Fixed where average all core temp is displayed with too many decimals.

* Made both total system load, and avg temp 2 decimals in cleaner .format form.
2022-05-23 05:37:49 +02:00
Adnan Hodzic ae1f53c737 Update Git issue template 2022-03-11 07:46:53 +01:00
Adnan Hodzic 58167e8cd8 1.9.3 release 2022-03-10 07:04:42 +01:00
Adnan Hodzic a84b7a2900 Improve detection if Snap is installed 2022-03-10 07:04:42 +01:00
Adnan Hodzic b7fba8e444
Add looking for co-maintainers/developers 2022-03-08 07:14:16 +01:00
Adnan Hodzic f65dba3625 Improved power_helper snap package detection 2022-02-20 07:59:59 +01:00
Adnan Hodzic a15e594fba Add check for performance governor in available governors 2022-02-19 15:22:43 +01:00
Adnan Hodzic 8ff85e9371 Revamped performance mode install on non Snap env 2022-02-19 14:49:34 +01:00
Adnan Hodzic c92d907d6e auto-cpufreq v1.9.2 release 2022-02-09 17:15:53 +01:00
Adnan Hodzic ad7f350c89 Update README with Configuring auto-cpufreq section 2022-02-07 21:31:14 +01:00
Adnan Hodzic c892ac0cf0 Refactorng in case power profile daemon already disabled 2022-02-07 20:30:35 +01:00
Adnan Hodzic f909f11361 Add default gnome_power_svc_disable func 2022-02-07 18:40:14 +01:00
Adnan Hodzic 9875178435 Improvements regarding GNOME power profiles 2022-02-06 22:46:22 +01:00
Adnan Hodzic 0558c7cf37 Extend gnome_power_profiles to use profiles 2022-02-06 16:54:56 +01:00
Adnan Hodzic 8fb5469ace v1.9.1 release & Github issue template update 2022-01-09 14:03:35 +01:00
Ismael Arias 5e503f89c2
Fixed the --version command when installed from source (#347)
* Fixed the --version command when installed from source (#344)

The command only worked when running it inside the git repository.

Now, it works from everywhere, and the version is constructed using
the latest git tag and the SHA of the latest commit, which may help
with further debugging in future issues.

* Improving version output.

Renaming version_config to setuptools_git_versioning to be compliant with new plugin version.

Formatted the version when a git hash is present for a better readability.

The version is set in the setup.py file. This will be used for the tar.gz releases.
Snap version is also retrieved from setup.py too, so we avoid code repetition.
2022-01-09 13:49:41 +01:00
bobslept 7b7e82b2b1
Deploy cpufreqctl on --debug and remove via installer (#351) 2022-01-08 19:05:15 +01:00
Adnan Hodzic 3a4beb34c5 Revert "Fixed the --version command when installed from source (#344)"
This reverts commit d2dba2fc31.
2022-01-08 18:58:12 +01:00
Adnan Hodzic 000ccf04fb Remove workaround to get distro package version 2022-01-08 15:55:56 +01:00
Adnan Hodzic 5b1f2a227f Snap v1.9.1 and minor snap output improvement 2022-01-08 15:43:43 +01:00
Ismael Arias d2dba2fc31 Fixed the --version command when installed from source (#344)
The command only worked when running it inside the git repository.

Now, it works from everywhere, and the version is constructed using
the latest git tag and the SHA of the latest commit, which may help
with further debugging in future issues.
2022-01-08 15:23:58 +01:00
bobslept 1673583304
Stop power-profiles-daemon in live mode (#350)
* Stop power-profiles-daemon on live mode

* switch to gnome_power_detect_install
2022-01-08 13:05:50 +01:00
bobslept 73d3c26882
Set Balanced mode on power-profiles-daemon (#349) 2022-01-07 21:26:39 +01:00
Ákos Várady fc2d8e3645
Ability to reset scaling frequencies to default (#338)
* Ability to reset scaling frequencies to default

If one of the scaling frequencies option is missing, either because
it's commented out or auto-cpufreq.conf is not being used, the default
frequency limits will be set.
TODO: perform setting only once per battery state change

* Ability to reset scaling frequencies to default 2.

Additional changes to optimize auto-cpufreq speed, by conditionally
performing frequency scaling settings.
2021-12-30 13:29:14 +01:00
Adnan Hodzic a4fff5fb92 Removed Snap plugs requested in #323 2021-12-26 11:15:39 +01:00
Ákos Várady 1aa1983ccf
Add min/max allowed frequencies option (#309) (#324)
* 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>
2021-12-26 11:01:32 +01:00
bobslept 64e33827b8
Improve charging detection (#332) 2021-12-24 20:21:40 +01:00
tyleraharrison 78ddf145e7
Started the solution to Snap and PopOS not working (#329)
* Started the solution to Snap and PopOS not working

Needs Snap detection on line 102/103

This code does NOT function properly unless that detection added

Added ability for the program to resume if the PopOS fix works

* Implemented changes as suggested by bobslept
2021-12-23 19:22:46 +01:00
bobslept 5332dffdb7
Add missing package Debian based venv (#330) 2021-12-22 16:49:29 +01:00
Ákos Várady 3121e2f454
Reformatted codebase (#325)
All python scripts are now reformatted with 'black' using line length
of 100.

Co-authored-by: Akos Varady <akos.varady@ericsson.com>
2021-12-22 08:28:08 +01:00
Adnan Hodzic 42491b88c8 1.9.0 beta & necessary Pop OS Snap interfaces #323 2021-12-21 20:36:57 +01:00
bobslept 6e3f45182b
Implement python virtual environment (#326)
* Implement python virtual environment

  * added venv instead of using system env pip
  * adjusted the unit file to startup the app from the venv
  * created a wrapper script to call the app from the venv
  * extended cleanup for venv and additional scripts
  * refactored the is_running() function to find the process now that it
    is called from a venv

* remove update_service_file since we changed the binary path to the venv location

* fix bug in argument handling; upgrade pip before installing python packages

* fix bug in syntax

* Renamed auto-cpufreq wrapper

* Change permissions to use --stats as user

* Changed init scripts to use wrapper

Co-authored-by: aroundthfur <velimir@foolcontrol.org>
2021-12-21 20:14:02 +01:00
bobslept dd5d871769
Fix #321, skip hid devices with battery (#322) 2021-12-21 18:25:46 +01:00
bobslept 40d0671b1a
Fix removal of shared_dir on remove (#319) 2021-12-20 19:14:55 +01:00
bobslept d0df29e33e
Renamed various init scripts (#317) 2021-12-20 19:13:39 +01:00
tyleraharrison 7236e674f4
Fix for PopOS os_release problem (#311)
* Fix for PopOS os_release problem

Fixes issue #276

* Added Pop!_OS detection

* Removed redundant abort code in Pop!_OS detection

* Added exit case for pressing 'N' or not pressing anything

Also fixed weird whitespace issue with backslash

* Changed to "Operation aborted by user" for 'N'

* Update auto_cpufreq/core.py

Co-authored-by: bobslept <38557801+bobslept@users.noreply.github.com>

Co-authored-by: bobslept <38557801+bobslept@users.noreply.github.com>
2021-12-19 09:20:09 +01:00
AdwaitAdk 00eca65c82
Support for openrc (#314)
* Added support for openrc.

* Added main script from upstream.

* Added thankyou note.
2021-12-18 20:00:02 +01:00
Adnan Hodzic aab79ca845
Update README.md 2021-12-17 12:01:06 +01:00