Step 1: Download the python script to your FreeNAS
- Log in to FreeNAS and open a shell
Hit “paste” and copy below:
curl https://raw.githubusercontent.com/AndrewX192/lenovo-sa120-fanspeed-utility/master/fancontrol.py > ./fancontrol.py
To verify that this downloaded, run the command and look for the file.
Good! It is there.
Step 2: Testing!
On the next line, go ahead and execute the following command:
python fancontrol.py 1
This will bring any attached Lenovo SA120 DAS down to the lowest fan speed (not recommended for production).
Great, there is an output for fan speed 1.
Step 3: Automate
If you want your speeds to fluctuate throughout the day, you can schedule these commands to run as cron jobs and alternate the speed for each cron job.
Otherwise, have fun setting the speed of your Lenovo SA120 DAS from FreeNAS!