Open main menu

Changes

X729-script

127 bytes added, 19:01, 22 July 2023
no edit summary
* RetroPie
* Twister
==Install==Please follow the steps below:===Enable I2C===
Reter to [[How to enable I2C]]
</PRE>
===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/x729-script
</pre>
===Create the x729-fan service===
x729-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 x729-pwr service===
x729-pwr service will be responsible for power management and hardware safe shutdown.
<pre>
</pre>
===Prepair software shutdown script===
sudo cp -f ./x729-softsd.sh /usr/local/bin/
Create a alias <code>x729off</code> command to execute the software shutdown
Then you can run <code>x729off</code> to execute software shutdown.
===Test safe shutdown===
'''Software safe shutdown command''':
x729off
* press <code>7-8</code> seconds to force shutdown.
===Sample File===
The example programs are only suitable for advanced players, and you can construct your own usage scenarios according to the example programs.
Or you can refer to [[How to Install RPi.GPIO Python Library]]
===Enable OLED display===
Refer to [[How to enable OLED display]]
===Other===
<code>pwm_fan_control.py</code> is no longer used, and are reserved here for research and use by python lovers only.
==Support==