Tweaks for fan service to keep it offline more frequently and scale up faster ; wil adjust polling interval after further testing and verification
This commit is contained in:
parent
6c6bbe02fe
commit
80828aa021
|
@ -18,12 +18,11 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
POLL_INTERVAL = "1m"
|
POLL_INTERVAL = "10s"
|
||||||
SPEED_OFF_TEMP = 40.0
|
SPEED_TWENTY_FIVE_PERCENT_TEMP = 45.00
|
||||||
SPEED_TWENTY_FIVE_PERCENT_TEMP = 45.0
|
SPEED_FIFTY_PERCENT_TEMP = 50.00
|
||||||
SPEED_FIFTY_PERCENT_TEMP = 50.0
|
SPEED_SEVENTY_FIVE_PERCENT_TEMP = 52.00
|
||||||
SPEED_SEVENTY_FIVE_PERCENT_TEMP = 55.0
|
SPEED_FULL_TEMP = 55.00
|
||||||
SPEED_FULL_TEMP = 57.0
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -82,7 +81,7 @@ func main() {
|
||||||
log.Print("Setting fan speed to 25%")
|
log.Print("Setting fan speed to 25%")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if cpuTemp <= SPEED_OFF_TEMP || gpuTemp <= SPEED_OFF_TEMP {
|
if cpuTemp < SPEED_TWENTY_FIVE_PERCENT_TEMP || gpuTemp < SPEED_TWENTY_FIVE_PERCENT_TEMP {
|
||||||
fan.SetSpeed(0)
|
fan.SetSpeed(0)
|
||||||
log.Print("Setting fan speed to 0%")
|
log.Print("Setting fan speed to 0%")
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue