lowered refresh rate to 5s + updated README
This commit is contained in:
parent
e26851ed92
commit
810186123b
22
README.md
22
README.md
|
@ -2,17 +2,18 @@
|
|||
|
||||
Automatic CPU speed & power optimizer for Linux based on active monitoring of laptop's battery state, CPU usage and system load. Ultimately allowing you to improve battery life without making any compromises.
|
||||
|
||||
## Why do I need auto-cpufreq?
|
||||
|
||||
[Youtube: auto-cpufreq - tool demo](https://www.youtube.com/watch?v=QkYRpVEEIlg)
|
||||
For tl;dr folks there's a: [Youtube: auto-cpufreq - tool demo](https://www.youtube.com/watch?v=QkYRpVEEIlg)
|
||||
|
||||
[![](http://img.youtube.com/vi/QkYRpVEEIlg/0.jpg)](http://www.youtube.com/watch?v=QkYRpVEEIlg"")
|
||||
|
||||
|
||||
## Why do I need auto-cpufreq?
|
||||
|
||||
One of the problems with Linux today on laptops is that CPU will run in unoptimized manner which will negatively reflect on battery life. For example, CPU will run using "performance" governor with turbo boost enabled regardless if it's plugged in to power or not.
|
||||
|
||||
Issue can be mitigated by using tools like [indicator-cpufreq](https://itsfoss.com/cpufreq-ubuntu/) or [cpufreq](https://github.com/konkor/cpufreq), but these still require maual action from your side which can be daunting and cumbersome.
|
||||
|
||||
Using tools like [TLP](https://github.com/linrunner/TLP) will help in this situation with extending battery life (which is something I did for numerous years now), but it also might come with its own set of problems, like loosing turbo boost.
|
||||
Using tools like [TLP](https://github.com/linrunner/TLP) will help in this situation with extending battery life (which is something I did for numerous years now), but it also might come with its own set of problems, like losing turbo boost.
|
||||
|
||||
With that said, I needed a simple tool which would automatically make "cpufreq" related changes, save bettery like TLP, but let Linux kernel do most of the heavy lifting. That's how auto-cpufreq was born.
|
||||
|
||||
|
@ -70,14 +71,20 @@ No changes are made to the system, and is solely made for demonstration purposes
|
|||
|
||||
`sudo python3 auto-cpufreq.py --live`
|
||||
|
||||
Necessary changes are temporarily made to the system, this mode is made to evaluate what the system would behave with auto-cpufreq permanently running on the system.
|
||||
Necessary changes are temporarily made to the system which are lost with system reboot. This mode is made to evaluate what the system would behave with auto-cpufreq permanently running on the system.
|
||||
|
||||
#### Install - auto-cpufreq daemon
|
||||
|
||||
Necessary changes are made to the system for auto-cpufreq CPU optimizaton to persist across reboots. Daemon is deployed and then started by a systemd service. Changes are made automatically and live log is made for monitoring purposes.
|
||||
Necessary changes are made to the system for auto-cpufreq CPU optimizaton to persist across reboots. Daemon is deployed and then started as a systemd service. Changes are made automatically and live log is made for monitoring purposes.
|
||||
|
||||
`sudo python3 auto-cpufreq.py --install`
|
||||
|
||||
After daemon is installed, `auto-cpufreq` is available as a binary and is running in the background. Its logs can be viewed by running: `auto-cpufreq --log`
|
||||
|
||||
Since daemon is running as a systemd service, its status can be seen by running:
|
||||
|
||||
`systemctl status auto-cpufreq`
|
||||
|
||||
#### Remove - auto-cpufreq daemon
|
||||
|
||||
auto-cpufreq daemon and its systemd service, along with all its persistent changes can be removed by running:
|
||||
|
@ -88,7 +95,7 @@ or
|
|||
|
||||
#### Log
|
||||
|
||||
If daemon has been setup live log of CPU/system load monitoring and optimizaiton can be seen by running:
|
||||
If daemon has been instaled, live log of CPU/system load monitoring and optimizaiton can be seen by running:
|
||||
|
||||
`auto-cpufreq --log`
|
||||
or `sudo python3 auto-cpufreq.py --log`
|
||||
|
@ -96,3 +103,4 @@ or `sudo python3 auto-cpufreq.py --log`
|
|||
## Discussion:
|
||||
|
||||
* Blogpost: [auto-cpufreq - Automatic CPU speed & power optimizer for Linux](http://foolcontrol.org/?p=3124)
|
||||
|
||||
|
|
|
@ -393,7 +393,7 @@ def cli(monitor, live, daemon, install, log):
|
|||
cpufreqctl()
|
||||
sysinfo()
|
||||
set_autofreq()
|
||||
countdown(10)
|
||||
countdown(5)
|
||||
subprocess.call("clear")
|
||||
elif monitor:
|
||||
while True:
|
||||
|
@ -403,7 +403,7 @@ def cli(monitor, live, daemon, install, log):
|
|||
cpufreqctl()
|
||||
sysinfo()
|
||||
mon_autofreq()
|
||||
countdown(10)
|
||||
countdown(5)
|
||||
subprocess.call("clear")
|
||||
elif live:
|
||||
while True:
|
||||
|
@ -413,7 +413,7 @@ def cli(monitor, live, daemon, install, log):
|
|||
cpufreqctl()
|
||||
sysinfo()
|
||||
set_autofreq()
|
||||
countdown(10)
|
||||
countdown(5)
|
||||
subprocess.call("clear")
|
||||
elif log:
|
||||
read_log()
|
||||
|
|
Loading…
Reference in New Issue