Changes

Jump to navigation Jump to search

X729-script

275 bytes added, 15 June
sudo apt install -y git
===Configuring Different GPIO Chip for <span class=""tb_red">Raspberry Pi 5 hardware</span>===
If you are not using Raspberry 5 hardware, skip this step,or run the following command to set differnt chip and pwm number.
sed -i 's/xPWR.sh 0 5 12/xPWR.sh 4 5 12/g' x729-pwr.service
sed -i 's/xSoft.sh 0 26/xSoft.sh 4 26/g' install-sss.sh
sed -i 's/pwmchip0/pwmchip2/g' x729-fan.sh
sudo ./install-ssh.sh
Then create a '''x729off ''' alias command to execture safe shutdownwhen using '''Raspberry pi 4 hardware''': echo "alias x729off='sudo /usr/local/bin/xSoft.sh '''0''' 26'" >> ~/.bashrcRun the following command to create a alias 'x729off' command when using '''Raspberry pi 5 hardware''' echo "alias x729off='sudo /usr/local/bin/xSoft.sh 0 '''4''' 26'" >> ~/.bashrcRun the following command to make the alias '''x729off''' effective
source ~/.bashrc
Then you can run <code>x729off</code> to execute software shutdown as follows

Navigation menu