1. Use '''gpiod''' instead of obsolete interface
2. The script now supports the Raspberry Pi OS '''Trixie''' and '''BOOKWORM''' version. You just need to '''uninstall''' the original script and '''reinstall''' it. Please refer to the following:
OPen ternimal window, then run the following command:
===Clone the script===
Clone pruduct software script if use the last '''Trixie''' OS, please adhere to capitalization.
git clone -b Trixie https://github.com/geekworm-com/x728-script
Please use the following command to get the software script if you are using '''BOOKWORM''' OS
git clone https://github.com/geekworm-com/x728-script
'''PS''': Run the following command to view system information:
<pre>
git clone httpspi@geekworm:~ $ lsb_release -aNo LSB modules are available.Distributor ID:RaspbianDescription: Raspbian GNU/Linux 13 (trixie)Release: 13Codename: trixie</githubpre>The above last line "Codename" indicates that the current system is '''Trixie''' OS.com/geekworm-com/x728-script
Set executable permissions for script files: cd x728-script chmod +x *.sh</pre>
'''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===