This is script installation tutorial for [[X735]] v2.5 & v3.0, it will replace [[X735 Software | X735 Software installation tutorial]], although [[X735 Software | X735 Software installation tutorial]] is still available, but we strongly recommend that you use this script tutorial, which simplifies the installation process and reduces dependencies on third-party python libraries.
To install pwm fan, first add <code>dtoverlay=pwm-2chan,pin2=13,func2=4</code> to <code>/boot/config.txt</code> under [all] or the end of file and <code>reboot</code>:
x735-fan service is for pwm fan, the pwm fan will automatically adjust the runing speed according to the temperature of the cpu after the service is started.
<pre>
Then the pwm fan starts running.
===Create the x735-pwr service===
x735-pwr service will be responsible for power management and hardware safe shutdown.
<pre>
</pre>
===Prepair software shutdown script===
sudo cp -f ./x735-softsd.sh /usr/local/bin/
Create a alias <code>x735off</code> command to execute the software shutdown
Then you can run <code>x735off</code> to execute software shutdown.
===Test safe shutdown===
'''Software safe shutdown command''':
x735off
* press <code>7-8</code> seconds to force shutdown.
===Read fan speed===
<code>read_fan_speed.py</code> is a sample python file on how to read the speed of the pwm fan. Run the following command to get the speed of the fan:
cd ~x735-script
Or you can refer to [[How to Install RPi.GPIO Python Library]]
===Other===
<code>pwm_fan_control.py</code> is no longer used, and are reserved here for research and use by python lovers only.