Commit Graph

95 Commits

Author SHA1 Message Date
parmjotsinghrobot 14e1d2785d
Change username for contributor (#694)
I forgot to update it here.
2024-05-10 08:05:40 +02:00
Angel eb0ba8aa7e
Improve compatible for Arch based distributions (#691)
* Add dinit

* Add dinit

* Change arch based informations

* More compatible for Arch based distributions

* More compatible for Arch based distributions

* Clean code

* Clean code
2024-05-09 23:34:07 +02:00
Julia b8f864e87e
Use Repology badge for automatic AUR version updating (#692)
https://repology.org/project/auto-cpufreq/badges
2024-05-09 21:54:50 +02:00
shadeyg56 0815e7eb96
Rework config and reload config on file change/creation/deletion (#663)
* add config.py and config_event_handler.py
also introduces the utils folder

* update config imports and variables

* add 'pyinotify' dependency

* config: check for changes using threading

* config: handle errors and new eventsx

* config: set_path even if file doesn't exist and make new ConfigParser on every update

* fix get_config call

* config: check for changes on moved file

* call notifier.start() manually to prevent hanging

* config: update comments

* battery: fix config imports

* config: fix config deletion detection

* Add load from user config in XDG_CONFIG_HOME if available (#672)

* Add load from user config from in XDG_CONFIG_HOME if available

This update introduces the flexibility to load the configuration file from
multiple locations, prioritizing user preferences and system standards.
Previously, the configuration was strictly read from a hardcoded
system path (`/etc/auto-cpufreq.conf`). Now, the application first checks if the
user has specified a configuration file path via command line arguments. If not,
it looks for a configuration file in the user's config
directory (`$XDG_CONFIG_HOME/auto-cpufreq/auto-cpufreq.conf`). If neither is
found, it defaults to the original system-wide configuration file.

This allows users to add their auto-cpufreq configuration to their dotfiles.

* If --config is set but invalid, exit with error

* Remove redundant empty string check on config file path

* Remove duplicate isfile check for config path

See also: https://github.com/AdnanHodzic/auto-cpufreq/pull/672#discussion_r1548003119

* Update configuration options in README

See also: #672

* config: move find_config_file function and fix finding home directory

* auto_cpufreq: fix hanging on --daemon, --live, and --monitor

* swap pyinotify for patched version

---------

Co-authored-by: Steven Braun <steven.braun.mz@gmail.com>
2024-04-30 08:35:53 +02:00
PurpleWazard 971f40f0ca
Add conservation mode to lenovo laptops (#652)
* adding support for lenovo ideapad_laptop devices

* testing lenovo_laptop

* renamed functions

* fix code bugs

* updated readme with lenovo laptop conservation mode.
2024-03-11 07:09:26 +01:00
Parmjot de12f9f708
README: update maintainer list for AUR package (#662)
Added myself and liljaylj, alongside MusicalArtist12, who was already there.

Also bumped the package version listed here.
2024-03-10 11:21:35 +01:00
shadeyg56 0354775b72
README: update badge links 2024-03-03 16:18:00 -06:00
shadeyg56 ab32952737
README: update badges to correct repo 2024-03-03 16:17:15 -06:00
shadeyg56 166cd065a2
Create workflows for Linux builds and Nix flake builds (#659)
* Create build-linux.yml

* Update build-linux.yml

* build-linux: run as sudo

* Create nix-build.yaml

* Rename nix-build.yaml to build-nix.yaml

* build-nix: rename workflow to 'Nix Flake'

* README: add workflow status badges
2024-03-03 12:25:43 +01:00
Adnan Hodzic 6ff1b89e22
Update README.md with battery thresholds config 2024-02-17 16:07:33 +01:00
shadeyg56 9b8e873145
Update README with new battery thresholds feature (#644)
* README: add battery threshold sections

* README: link to version
2024-02-14 17:43:52 +01:00
Lab Rat 27ca776029
Update README: add instruction for failing buildings in case of missing .git directory (#630) 2024-01-21 15:22:46 +01:00
Murray Gervais fe29620646
Add support for configuring/overriding "Energy Performance Preference (EPP)" (#619)
* Added support for configuring/overriding energy performance preference (EPP)

* Corrected path to print available energy performance preferences in docs

* Added "EPP" wording to config examples

* Added message when EPP is not supported
2023-12-29 08:11:27 +01:00
Hugh O'Brien 8938cc92d7
Update nix flake instructions (#617) 2023-12-17 15:44:48 -06:00
avatar1024 c523f51fd1
Update README.md (#611)
Add another point in troubleshooting regarding turbo not available on some CPUs. This relates to https://github.com/AdnanHodzic/auto-cpufreq/issues/602 (workaround consisting in switching driver tested on AMD Zen 3+ and Zen 4 CPUs).
2023-12-10 07:57:14 +01:00
Julia 8b4ff4b443
Update README to match changes to the AUR package (#606) 2023-11-22 06:22:13 +01:00
blackpill0w 4ddff1f702
Add Syntax Highlighting to the Configuration File Example (#591) 2023-11-03 07:42:54 +01:00
David C. Drake 929fdf6020
Fix img link and adjust text (#584)
One of the image links to a YouTube video wasn't properly formatted, so I fixed that and also went through the entire README making recommended adjustments to the text.
2023-10-28 08:22:02 +02:00
shadeyg56 98cd5dd31f
README: update expired discord link 2023-10-19 14:06:51 -05:00
Lab Rat 5bf295d86a
Add support for shell completion (#580)
* feat: added supported for shell completions

* docs: completions flag instructions
2023-10-14 17:46:00 +02:00
Lab Rat 5d4ba17d69
auto-cpufreq-installer: removed dependence on record files for removal (#581)
* docs: updated instructions for pyproject config

* chore: post pyproject integration cleanup

Changes include
Removed setup.py and requirements.txt file
and removed dependence in record files.txt generated by setup.py
2023-10-14 08:38:45 +02:00
Adnan Hodzic 64b11ab089
Update README with auto-cpufreq Discord server 2023-10-04 12:00:24 +02:00
Adnan Hodzic 0c03b004bb
Update Snap package GUI deprecation notice 2023-10-01 08:30:05 +02:00
Adnan Hodzic 1b229891bc
Update README.md with v2.0 Youtube video 2023-09-30 17:45:58 +02:00
Adnan Hodzic fdb20f5ea2
Update README for v2.0 2023-09-23 13:15:29 +02:00
Adnan Hodzic 4defdacb2c Remove auto-cpufreq-installer update reference from README 2023-09-18 21:00:10 +02:00
Adnan Hodzic fecec333e8 Remove "update" feature from auto-cpufreq-installer 2023-09-18 20:54:32 +02:00
Devesh Sharma 7e02a0769d
added optional path in --update (#538)
* add --dir

* add to path option to --update

* optional add to path in --update

* update

* update README.md

* resolve bugs
2023-09-18 19:59:46 +02:00
Adnan Hodzic 5b01ce4d97 Add Snap package deprecation notice 2023-09-16 12:29:53 +02:00
shadeyg56 3e2b779406
add Nix flake and documentation (#553) 2023-09-16 11:36:01 +02:00
Aikufurr 71ebc3e80e
Add systemd-boot instructions (#543) 2023-08-26 12:27:02 +02:00
Adnan Hodzic 8fbb9480f0
Update --update section of README.md 2023-07-15 22:30:53 +02:00
Kian-Meng Ang d47453c050
Fix README typos (#536)
Found via `codespell -L nstall`
2023-07-15 21:42:45 +02:00
Devesh Sharma 3dffa23e00
Add auto-cpufreq --update feature (#535)
* update feature

* update feature added

* '--update'

* update feature
2023-07-15 21:32:23 +02:00
blackpill0w faf7134cb6
Make Self Referencing Links in the README.md Relative (#534) 2023-07-11 19:34:32 +02:00
blackpill0w d593e3e839
Fix Links in the README (#519) 2023-06-24 07:21:17 +02:00
Albert Solomon fe7eab8576
Update README for fedora (noob friendly) grub instructions (#505) 2023-05-06 09:53:27 +02:00
Siddharth Kumar Jha 9912f9d809
Update Readme for issue of auto-cpufreq not autostarting on AUR (#485)
* Updated Readme for issue auto-cpufreq not autostarting

Added solution to issue https://github.com/AdnanHodzic/auto-cpufreq/issues/463

* Fixed minor errors

* Fixed auto-cpufreq.serivce Typo

* Reprashed text as per suggestion
2023-02-12 08:25:14 +01:00
Adnan Hodzic c65eac3472
Update readme, install psutil lib for power_helper 2023-02-05 09:29:19 +01:00
Adnan Hodzic dadfae087f Update README with new config options 2023-02-03 20:02:03 +01:00
shadeyg56 2bfe71e8d8
[Feature] Force use of powersave or performance governors (#476)
* 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
2023-02-01 16:39:14 +01:00
Adnan Hodzic f66df2a8e8 Explicitly state AUR is not maintained 2023-01-28 07:30:13 +01:00
Max 1c9ff32a33
Update Readme Troubleshooting with How to Disable AMD-Pstate (#466) 2022-12-17 20:25:48 +01:00
abvee 70c58fba3a
Documentation update/revamp (#458)
* Fixed some grammar and punctuation

* Made more Grammar changes

* Added Post installation section

* Removed warning to not use `auto-cpufreq --install` as the issues
mentioned are already resolved, and auto-cpufreq --install works as
expected

* Added documentation for starting and enabling the daemon using just
systemd, and fixed some grammar.

* Added documentation for disabling with systemd

* Modified "How to run auto-cpufreq section" to include help options

* Fixed some formatting issues.
corrected location of power_helper.py script

* Made recommended changes

* Added index
Fixed a link

* Removed systemctl command, and added warning to use inbuilt commands

* Added instruction to clone the repo
2022-11-27 16:56:55 +01:00
xd003 ac0a4b5e72
Adding both Binary & Git AUR package along with Note for unmaintained git package (#433) 2022-09-10 18:36:46 +02:00
Ishaan Bhimwal 29d5d87ded
fix multiple typos as reported by typos (#410) 2022-07-31 08:14:27 +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 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