Open main menu
Geekworm Wiki
Search
Changes
← Older edit
X885-software
292 bytes added
,
16:31, 24 July 2023
no edit summary
{{GD Template Impl}}
<big>Although this tutorial is still available, but we strongly recommend that you use [[XScript]] new tutorial, and we no longer maintain this page</big>
<hr>
First, you need to log into your Raspberry Pi 4 host via ssh
1. Update software & Install dependencies
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install i2c-tools python3-smbus python3-rpi.gpio
2. Setting up the power management script
cd ~
git clone https://github.com/geekworm-com/X885
cd
x729
X885
chmod +x *.sh
sudo bash pwr.sh
#Setting up the command to turn off xoff from software
printf "%s\n" "alias
x729off
xoff
='sudo xsoftsd.sh'" >> ~/.bashrc
#Reboot the Raspberry Pi or '''long press on-board button switch to turn off'''
cd X885
</pre>
python fan.py
or
python3 fan.py
4.2 Add a line at the end of the file that reads like this:
@reboot
python
python3
/home/pi/X885/fan.py
[[File:X885-1.png|800px]]
You can refer to [[How to add crontab job]]
5. How to uninstall installation script?
sudo ./uninstall.sh
Return to [[X885]]
<!--Add review function! -->
Harry
Bureaucrats
,
Comment administrators
,
Interface administrators
,
Administrators
5,154
edits