README: tweaks
This commit is contained in:
parent
0d3c032afb
commit
ee35b241ad
27
README.md
27
README.md
|
@ -4,12 +4,11 @@ Userland CPU frequency scheduling for OpenBSD >= 7.1
|
||||||
|
|
||||||
# TLDR
|
# TLDR
|
||||||
|
|
||||||
- clone this repository
|
- `pkg_add obsdfreqd`
|
||||||
- as root `make install`
|
|
||||||
- as root `rcctl enable obsdfreqd` and `rcctl stop apmd ; rcctl disable apmd`
|
- as root `rcctl enable obsdfreqd` and `rcctl stop apmd ; rcctl disable apmd`
|
||||||
- as root `rcctl start obsdfreqd`
|
- as root `rcctl start obsdfreqd`
|
||||||
- apmd can be kept but not with flag `-A`
|
- apmd can be kept but not with flag `-A`
|
||||||
- most interesting flag for end users is `-T`
|
- if any tuning is needed, it may be `-T` for temperature limit
|
||||||
|
|
||||||
# Compilation
|
# Compilation
|
||||||
|
|
||||||
|
@ -19,10 +18,25 @@ As easy as `make`
|
||||||
|
|
||||||
Run `obsdfreqd` as root, quit with `Ctrl+C`.
|
Run `obsdfreqd` as root, quit with `Ctrl+C`.
|
||||||
|
|
||||||
# Installation
|
# Source installation
|
||||||
|
|
||||||
`make install` as root, enable the service using `rcctl enable
|
`make install` as root, enable the service using `rcctl enable obsdfreqd`.
|
||||||
obsdfreqd`.
|
|
||||||
|
Create `/etc/rc.d/obsdfreqd` with this content and make it executable:
|
||||||
|
|
||||||
|
```
|
||||||
|
#!/bin/ksh
|
||||||
|
|
||||||
|
daemon="/usr/local/sbin/obsdfreqd"
|
||||||
|
|
||||||
|
. /etc/rc.d/rc.subr
|
||||||
|
|
||||||
|
pexp="${daemon}.*"
|
||||||
|
rc_reload=NO
|
||||||
|
rc_bg=YES
|
||||||
|
|
||||||
|
rc_cmd $1
|
||||||
|
```
|
||||||
|
|
||||||
Start the service with `rcctl start obsdfreqd`.
|
Start the service with `rcctl start obsdfreqd`.
|
||||||
|
|
||||||
|
@ -42,6 +56,7 @@ Parameters are applied when both plugged on the wall or on battery, parameters c
|
||||||
- `-s stepfrequency` sets the percent of frequency added every cycle when increasing, 10% is default
|
- `-s stepfrequency` sets the percent of frequency added every cycle when increasing, 10% is default
|
||||||
- `-t timefreq` sets the milliseconds between each poll, 300 is the default
|
- `-t timefreq` sets the milliseconds between each poll, 300 is the default
|
||||||
- `-T maxtemperature` sets the temperature threshold under which the maximum frequency will be temporary lowered until the CPU cools down
|
- `-T maxtemperature` sets the temperature threshold under which the maximum frequency will be temporary lowered until the CPU cools down
|
||||||
|
- `-S sensor` specify a sensor (using its sysctl path) to use with `-T`
|
||||||
|
|
||||||
**Example**:
|
**Example**:
|
||||||
|
|
||||||
|
|
Reference in New Issue