Commit Graph

371 Commits

Author SHA1 Message Date
Michael Livshin c67e290cc0
cpufreqctl: don't try writing to non-existent files (#533)
When you give "nosmt" to your kernel, you still get directories under
/sys that correspond to inactive hyperthreads, but there's nothing
writable inside those directories, which causes auto-cpufreq to
generate lots of logspam.
2023-07-01 09:36:25 +02:00
Lab Rat c34e3e7fbd
Fix bug related to repeated sudo prompt due to set_override calls (#531)
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
2023-06-30 08:37:19 +02:00
Lab Rat 486a9a6dc2
Adding root_check before set_override method execution (#524)
This will ensure that set_override calls are always in su mode.
So, in effect all override using 'force' can clearly access
the governer_override_state path file, and write changes to it,
without externally tinkering the environment.
2023-06-24 07:42:56 +02:00
blackpill0w d593e3e839
Fix Links in the README (#519) 2023-06-24 07:21:17 +02:00
Adnan Hodzic 3dcf2fd837 Ensure all core indices are handled, RPI 4 support 2023-05-21 14:03:29 +02:00
Adnan Hodzic 9a935ebd5b Re-align how usage, temp, and freq are displayed 2023-05-21 13:10:44 +02:00
Adnan Hodzic de37962dc7 v1.9.8 release tag 2023-05-21 12:42:34 +02:00
marchwicki b1758ba74b
check for CPU lable if no coretemp (#513)
Attempt to use "CPU" label before falling back to the first sensor.
2023-05-21 12:31:39 +02:00
Animesh Sahu 717ab2d462
fixup(runit): allow daemon to search for the executable in /usr/local/bin (fixes #474) (#508) 2023-05-07 14:20:18 +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
shadeyg56 8f343df8b8
Merge pull request #481 from shadeyg56/master
Fix uncaught error in checking for snap
2023-02-03 14:54:11 -06:00
shadeyg56 b38919f56b fix uncaught error in checking for snap 2023-02-03 14:48:01 -06:00
Adnan Hodzic dadfae087f Update README with new config options 2023-02-03 20:02:03 +01:00
Adnan Hodzic 471611de7d Remove GNOME Power Profiles Daemon performance install 2023-02-03 19:47:06 +01:00
Adnan Hodzic f574257dc4 Remove install_performance flag 2023-02-03 18:32:04 +01:00
Adnan Hodzic 04b878360c Snap tag 2.0-beta + governor_override improvements 2023-02-03 18:05:27 +01:00
Adnan Hodzic fe21ddf245 Working governor override on Snap package 2023-02-03 17:28:12 +01:00
Adnan Hodzic 69ef913c1b Change override.pickle location + add to snap 2023-02-02 17:18:58 +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
Adnan Hodzic d04438ee81 auto-cpufreq 1.9.7 release 2022-12-05 06:42:23 +01:00
abvee 9a1c0ad44a
Improve auto-cpufreq installer (#459)
* Fixed seperator so that it prints to the lenght of the terminal and uses box lines instead of hyphens

* Replaced multiple echo calls with either a single echo call or a here
doc.
Here docs are more efficient as they only call once, and formatting
doesn't need to be done with escape characters, thus making code more
readable

* Moved header to the center

* Fixed _EOF_ error

* Fixed Indentation problem.
Moved $COLOUMN into seperator function, so if the terminal is resized
while the script is running, a new seperator should be resized as well.

* Added a header function as the "auto-cpufreq installer" heading comes up
multiple times.

Made local variables to allow for neat drawing when resizing the
terminal.

* Fixed spacing issue

* Replaced "=" with seperators and added blank lines

* Added a check for wrapper script. This allows uninstallation without the daemon needing to be installed
2022-12-05 06:32:51 +01:00
abvee 13edca0a61
Fix for auto-cpufreq-installer regression in #460 (#462)
* Added an error message when the file isn't found

* $srv_install and $srv_remove are now at new locations
Created _old variables to keep track of old locations

* Added exit statement and specified daemon not removed

* Fixed some errors
2022-11-30 07:28:49 +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
Gimbles 122dd0f96c
Use usr/local/bin instead of usr/bin for Silverblue and other immutable OSs (#460)
* usr/local/bin instead of usr/bin/

* fix shebang
2022-11-24 17:44:57 +01:00
Adnan Hodzic d77c1de6d6 Removed battery percentage 2022-11-18 06:29:15 +01:00
Adnan Hodzic d26ec98837 Add missing display system load average info 2022-11-13 19:17:35 +01:00
Ben d60642720a
Fixed bug where turbo boost will always be on in performance mode (#455)
* Fixed bug where Turbo Boost is always on in performance mode

* Removed debugging prints

* Added new line at EOF
2022-11-12 06:23:45 +01:00
Adnan Hodzic 2ae8ed4be2 Round battery cha/discharging percentage display 2022-11-12 06:20:52 +01:00
Adnan Hodzic 6e74a95f10 Add functionality to display system load average 2022-11-12 06:02:26 +01:00
John Seekins 3e28e79e28
add wheel to dependencies (speed up install) (#447)
Signed-off-by: John Seekins <john@civiceagle.com>

Signed-off-by: John Seekins <john@civiceagle.com>
2022-11-11 06:12:59 +01:00
Tobias ff72e1e0f3
fixed battery_percentage (#442) 2022-10-11 06:29:05 +02:00
Adnan Hodzic e813301aa8 Fix typo in issue template 2022-10-03 20:40:54 +02:00
BowDown097 43b33be51c
battery_percentage fix (#437) 2022-09-25 18:50:53 +02:00
Adnan Hodzic 00a6ab2d27 1.9.6 version bump (release) 2022-09-11 15:03:00 +02: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
Tobias 98569ad71a
SunkenHero Code optimization & addition of battery percentage (#432)
* Added fan speed display

* optimizations in temperatures

* Simplified charging function and added percentage display

* change print battery status

* Fixed charging not returning boolean

* battery_percentage returns now rounded value insead of 10 decimals

* changed charging function back

* changed charging back and some display changes

* little fix at display battery percentage

* battery percentage not showing %
2022-09-10 14:02:17 +02:00
hingen 620433d78d
Replaced obsolete "egrep" calls with "grep -E" (#435) 2022-09-10 08:37:19 +02:00
SunkenHero 1a35c3ca01
Added fan speed display (#431) 2022-09-08 07:46:34 +02:00
Martin Andersson 7573df7bb2
Omit the --all flag from calling nproc to get actual number of cores instead of threads. (#423) 2022-08-22 16:42:09 +02:00
Anas 8fbb5ea624
add s6 script for auto-cpufreq install (#421)
* add s6 script.

* fixing s6 init system with reload and call s6-svscan

* Fix my typo.

forgot to add slash to this dir.

* repalce reload init in bottom

* replace the samethings like install section

Co-authored-by: Anas <AnasR7@protonmail>
2022-08-15 12:40:39 +02:00
Martin Andersson dad1c819fd
Don't overwrite /usr/bin/cpufreqctl.auto-cpufreq excessively. (#420)
Looks like the behavior of constantly overwriting it was not intended,
but introduced inadvertently in a91d4ba36e
2022-08-15 12:32:54 +02:00
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