Home | About me | Miniblog | Playground
Español | Italiano

SACF

NAME

sacf - Simple Auto CPU Frequencer

SYNOPSIS

sacf [ -blrtTv ] [ -g governor ]

DESCRIPTION

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.

OPTIONS

Without any arguments, sacf will run every interval seconds forever.

NOTES

Some general tips about battery:

CONFIGURATION

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.

SEE ALSO

tpl(1)

BUGS

https://github.com/explosion-mental/sacf https://codeberg.org/explosion-mental/sacf

This work is licensed under CC-BY-SA 2.0, unless specified otherwise. Year: 2022