Commit Graph

293 Commits

Author SHA1 Message Date
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
Adnan Hodzic 8a73514b4b Snap version bump 2021-12-16 13:03:42 +01:00
bobslept 3994d4a7af
Change the way of checking the charging state (#308) 2021-12-16 08:04:24 +01:00
Adnan Hodzic 36155de8dc Set auto-cpufreq.conf snap plug to write 2021-12-16 07:39:01 +01:00
Adnan Hodzic 5e3c7c8cfe v1.8.1 snap release 2021-12-11 12:32:22 +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 c719646e41
Update README.md
Be more explicit that TLP should be removed after auto-cpufreq is installed.
2021-12-09 08:21:09 +01:00
bobslept b999f49dba
Remove package options (#304) 2021-12-08 21:07:50 +01:00
bobslept 342e5fab86
Verify the use of supported init systems. (#303) 2021-12-08 07:50:40 +01:00
Adnan Hodzic 1909cc87c1 Merge branch 'non-systemd-gnome-power' 2021-12-08 07:46:59 +01:00
bobslept 4d30f771e2
Check if lsb_release exists before using it (#302) 2021-12-07 17:43:29 +01:00
Adnan Hodzic ef8b61c6c8 Improve GNOME power profiles detection for non systemd inits 2021-12-07 08:28:58 +01:00
Adnan Hodzic 4c5681b2d8 Improve defensive detection in case of other init systems 2021-12-05 10:51:04 +01:00
Adnan Hodzic db68390ec3 Automatically disable GNOME power profiles on install 2021-12-04 21:12:20 +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 167b761888 Complete power-profiles operations helper for non Snap install 2021-11-28 14:49:14 +01:00
Adnan Hodzic 677646abbd Add mechanism for power-profiles-daemon detection 2021-11-28 14:09:33 +01:00
Adnan Hodzic 1aed0f7477 Add option to un/mask power-profiles-daemon 2021-11-28 07:46:11 +01:00
Adnan Hodzic ec4556c835 Automatically enable/disable GNOME power savings profiles 2021-11-28 07:46:11 +01:00
Jason Honea 01b7c0fe2e
Correcting charge status in multi-battery setup (#294) 2021-11-28 06:33:40 +01:00
Adnan Hodzic 71db47157a
Update README.md
That is recommended to have `thermald` running alongside auto-cpufreq.
2021-11-22 20:12:23 +01:00
Marc Althoff b5bfa52ea4
typo (#287)
nitpickery: CPU plural: CPU or CPUs, not genitive 's
2021-11-22 19:10:13 +01:00
AmitGolden 897664aa3d
Fix instances where charging is not recognized (#281) (#285)
* check if charging in laptop with battery

* using both battery and ac adapter to check if charging
also battery status unknown is now recognized as charging
2021-11-19 08:08:32 +01:00
Adnan Hodzic 59996baeba 1.7.2 (snap) release 2021-11-14 09:46:18 +01:00
AmitGolden f2fb6aafb7
On laptops/notebooks, check if charging via BAT* status (#274) 2021-11-14 09:40:29 +01:00
Adnan Hodzic 95e30e3975
Add sponsors button 2021-11-13 13:08:27 +01:00
4JX ded62c61e4
Fix auto-cpufreq-installer steps order (#273)
* Execute update_service_file only after copying files

Fixes #270

* Fix indentation, rename finished_text  function to old name

* Update auto-cpufreq-installer
2021-11-04 21:23:41 +01:00
Animesh Sahu 4fee7b680b
Turning Bluetooth off/on & Void Linux improvements (#269) 2021-11-04 08:32:50 +01:00
Pablo Castellano a48e9193fa
Remove quotes from youtube link (#264) 2021-10-24 07:21:58 +02:00
Adnan Hodzic 893ed43bdf v1.7.1 snap package release 2021-10-17 18:02:38 +02:00