Commit Graph

58 Commits

Author SHA1 Message Date
Adnan Hodzic c8f9095067 Real time auto-cpufreq refresh 2022-06-05 17:44:33 +02: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
bobslept 7b7e82b2b1
Deploy cpufreqctl on --debug and remove via installer (#351) 2022-01-08 19:05:15 +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
Á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 c1b898906a
Add a warning when using TLP (#305)
* Add function to check if binary is present

* Rename gnome_power_stats to gnome_power_status

* Added warning when using TLP
2021-12-11 11:59:41 +01:00
Adnan Hodzic fc5ac16fd6 Final auto-cpufreq & power_helper improvements 2021-12-04 18:32:50 +01:00
Adnan Hodzic 0aef161528 Rename gnome_power to power_helper & reference update 2021-12-04 15:40:03 +01:00
Adnan Hodzic 1d4f88d78d Revamp of gnome_detect & disable default enable functionality 2021-12-04 13:25:41 +01:00
Adnan Hodzic d6bfdfc680 Revamp of bluetooth & gnome power profile control on Snap 2021-12-02 21:34:52 +01:00
Adnan Hodzic 2daa37cf0e Snap interface for configuring Bluetooth 2021-11-29 07:56:09 +01:00
Adnan Hodzic 677646abbd Add mechanism for power-profiles-daemon detection 2021-11-28 14:09:33 +01:00
Adnan Hodzic ec4556c835 Automatically enable/disable GNOME power savings profiles 2021-11-28 07:46:11 +01:00
aroundthfur 37ae7b199a
daemon running msg was wrong (#262)
* 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
2021-10-17 17:52:15 +02:00
Adnan Hodzic 9363f6eb6e Re-ordered menu items 2021-10-16 19:57:52 +02:00
Adnan Hodzic d9cbb288f0 Show info config file is used only when relevant 2021-10-16 19:45:38 +02:00
Adnan Hodzic 9ff2fa439e Add donate option to auto-cpufreq menu 2021-10-16 19:38:30 +02:00
Martin Andersson 6cb2c00786
Add config file for preferred governor and turbo boost behaviour. (#250)
* 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
2021-10-10 08:11:45 +02:00
Marco Vermeulen ae86bbb86a
Add --version flag to CLI (#177)
* Add --version flag to determine current app version.
* Alphabetise cli flags.
2021-02-14 10:49:07 +01:00
Adnan Hodzic 9fcc99d5cd Add note/instruction on how quit live/monitor/stats 2021-02-06 20:35:40 +01:00
Adnan Hodzic 6bffee4535 Output auto-cpufreq version for snap/aur/auto-cpufreq-installer 2021-02-05 07:43:34 +01:00
Adnan Hodzic 3985d3ef5a Hot-fix for laptops reporting wrong charing status (Close: #164) 2021-02-04 08:56:22 +01:00
Marco Vermeulen 02d58f9f20
Improve domain language around logging and stats (#160)
* 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.
2021-02-02 21:40:55 +01:00
Adnan Hodzic 5e38ada748 Fix "Unable to remove via --remove option for Snap package" (Close #161) 2021-02-02 20:56:56 +01:00
Technical27 f3f652d69e
Improve logging (#148)
Now auto-cpufreq will write directly to the log file or stdout.
The file will automatically be cleared when on each refresh and on
startup.
2021-01-24 13:14:11 +01:00
Mark Wagie a91d4ba36e
Improved Python file structure (rename source > auto_cpufreq) #153 2021-01-21 07:55:23 +01:00
Adnan Hodzic eb9ccfe32f Snap v1.5 release & module import fix (PYTHONPATH); updated README 2020-12-05 22:27:52 +01:00
Adnan Hodzic ec4716f721 Extended mechanism to set turbo based temperature & CPU utilization/load
to mon_performance/powersave functions & other output improvements
2020-12-05 21:17:29 +01:00
Adnan Hodzic 70c646f9cb re-enable app_version func + add missing footer to daemon log 2020-09-16 21:06:14 +02:00
Adnan Hodzic b44110cacd temporarily disabled execution of app_verison func (#111) 2020-09-13 11:52:22 +02:00
Adnan Hodzic 6f729ed6d4 updated about dialog 2020-09-11 22:04:02 +02:00
Adnan Hodzic fb88158235 refactor + additon of new functionality i,e (app_res_use) 2020-09-11 21:15:59 +02:00
Adnan Hodzic 04a9c00b12 refactor of get_current_gov func and its use 2020-09-11 09:02:19 +02:00
Adnan Hodzic 878733a20f refactoring (addedd display_load + get_turbo func) 2020-09-11 08:32:16 +02:00
Adnan Hodzic d3a767626a added app_version to non snap env 2020-09-11 00:19:04 +02:00
Adnan Hodzic 7f0ad729c9 revamped info is shown by splitting sysinfo func 2020-09-10 23:01:30 +02:00
Adnan Hodzic 39a9c04f33 removed get_sys_info func + implemented env + python info to debug 2020-09-10 17:44:19 +02:00
Adnan Hodzic dde9cd2133 func refactor/add distro info, kernel, driver, snap to debug 2020-09-09 21:00:58 +02:00
Vadym Stupakov 6b8be7afe7 fixed imports (#80)
* fixed imports
2020-08-06 21:58:01 +02:00
Vadym Stupakov e02f7a6881 implemented --debug option (#70)
* 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
2020-08-05 23:49:23 +02:00
Vadym Stupakov c66721c0b5 Refactroring and amd support (#67)
* 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()
2020-08-05 21:12:59 +02:00
Vadym Stupakov d0243806e9 Refactoring and fix for #14 (AMD issue) (#62)
* refactored and fixed amd coretemp
2020-08-04 18:22:38 +02:00
Adnan Hodzic 29b85b8095 code refactor 2020-02-08 21:18:47 +01:00
Adnan Hodzic 16bc315da2 extended disable running multiple instances functionality to snap 2020-02-08 20:35:39 +01:00
Adnan Hodzic 33837c97a3 disable running multiple instances (needs improvements on snap) 2020-02-08 17:08:04 +01:00
Adnan Hodzic 71a8b92e04 daemon disabled on snap install, working install/remove 2020-02-08 14:32:58 +01:00
Adnan Hodzic 6b5fba3ac3 working remove/install of snap service 2020-02-06 22:48:34 +01:00
Adnan Hodzic a8068ab0bf enable snap service by default + name change 2020-02-06 19:58:03 +01:00
Adnan Hodzic ea687deb20 start snap systemd service if DAEMON env var set to ENABLED 2020-02-05 21:03:29 +01:00