Open main menu

Changes

X728-script

504 bytes removed, Wednesday at 15:06
'''PS''': For some OS such as 'Raspberry Pi OS Lite', the '''git''' tool is not installed by default, if you get an error like '''error: -bash: git: command not found''', please run the following command to install the git tool.
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 number.
 
PS: Since 2024-09-02, Raspberry Pi has finally unified the gpipchip to 0 on all Raspberry Pis(Pi, 0, 1, 2, 3, 4, 5). Previously, the gpiochip on the Raspberry Pi 5 was 4.
 
So we comment out the following command line.
#sed -i 's/xPWR.sh 0 5 12/xPWR.sh '''4''' 5 12/g' x728-pwr.service
===Create the x728-pwr service===