Changes

Jump to navigation Jump to search

X735-script

31 bytes added, 19:38, 22 July 2023
no edit summary
{{GD Template Impl}}
__NOTOC__==Overview==
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.
* Twister
==Install=====Preconfigured <code>config.txt</code>===
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>:
sudo nano /boot/config.txt
sudo reboot
===Clone the script===
<pre>
git clone https://github.com/geekworm-com/x735-script
</pre>
===Create the x735-fan service===
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.
==Support==

Navigation menu