# Fan Control

The [NAS case for the Pine64 Rock Pro](https://pine64.com/product/rockpro64-metal-desktop-nas-casing) comes with a fan to cool the closed box. It is to be plugged in the FAN port of the board, as indicated on the [Wiki Page](https://wiki.pine64.org/wiki/ROCKPro64).

By default, it will turn at full speed, but can be PWM-controlled, in particular with the software found on [Github - ATS](https://github.com/tuxd3v/ats).

## Install
The installation instructions are dead-simple:
```bash
git clone https://github.com/tuxd3v/ats
make
sudo make install
```

As explained on the repository, the fan has the following control:
  * Below 40°: normal operation, no fan
  * Between 40 and 60°, progressively increase the RPM
  * Above 60°: abnormal heat, full blow

## Configuration
The default configuration is annoying (periodically loud) so the following variables were changed in the `/etc/ats.conf` file:

| Variable                    | Value |
|-----------------------------|-------|
| MIN_CONTINUOUS_THERMAL_TEMP | 45    |
| ALWAYS_ON                   | true  |
| MIN_PWM                     | 20    |
| PROFILE_NR                  | 2     |