make README more readable
automatic threshold was only working in battery mode
the threshold was correctly set according to the CPU
number, but the wall_threshold still had an hardcoded
30%
threshold default value is now relative to the CPU number
obsdfreqd uses hw.ncpuonline to calculate a threshold
matching 80% of a single core usage. This helps the
default value to work fine with computer from 1 to many cores.
use of fprintf() is not async-signal safe; call write() instead
code improvement
1) in get_temp, check temperature_sensor_found to avoid a bogus sysctl
if a temperature sensor was not found
2) fix checks for min_freq and max_freq (were improperly checked, resulting
in a failed sysctl if passing e.g. -m 1600)
3) preserve contents of argv[] because kvm_getargv grabs whatever is in the
program's argv[], making ps report a different command line compared to
how the program was started when parsing `,'
improve temperature throttling
- enhance CPU temperature sensor detection
- add a new parameter to give a sensor identifier
patch from Vlad Meşco, thanks!
Leave rc.d(8) script handling to the OpenBSD port
sysutils/obsdfreqd now has a local copy of the script as is common with
daemons in port. Apply the ports patch so the new release can build
without any.
Sync usage with manual
Make spacing, wrapping as well as argument names match.
Much nicer to read on default 80-char wide xterm.
manual: Use default .Ex in EXIT STATUS
No need to spell out manuall as obsdfreqd follows standard semantics.
manual: Fix "mandoc -T lint" errors and warnings
manual: Fix flags markup
SYNOPSIS already tells which flags are optional, so no need to markup each
flag with .Op individually.
Removing that marco also makes tags work, i.e. ":tv<Enter>" in the pager
will no jump to -v.