sacf - Simple Auto CPU Frequencer
sacf [ -blrtTv ] [ -g governor ]
sacf is a simple program that only changes two things: the governor and turbo boost state; depending on the cpu load, system load and the temperature. Machines that have a battery and most of the time depend on it are the target, but since it reduces the power consumption in general it can be beneficial, in theory.
sacf will run only if /var/run/sacf.lock
doesn’t exist, created
when run. This is to avoid multiple instances of sacf run at the same time.
The lock is ignored if any cli option is used but -b
or --daemon
is
used.
Currently, supported platform is linux (no BSD’s).
It requires root access in order to write to the pseudofilesystem /sys
to
change the turbo boost and the kernel governor.
Without any arguments, sacf will run every interval seconds forever.
Some general tips about battery:
sacf
, you could avoid this by setting the acturbo to Never, and setting the acgovernor to powersave or the similar.sacf is customized by creating a custom config.h and (re)compiling the source code. This keeps it simple, since reading a config file isn’t that hard (but adds unneeded complexity), and in many aspects more customizable. I try my best to comment about the variables in config.h, since they don’t do anything crazy, so it should be very straight foward what does what.
tpl(1)
https://github.com/explosion-mental/sacf https://codeberg.org/explosion-mental/sacf