X728-script: Difference between revisions

 
Replace <comments/> with <comment-streams />
 
(10 intermediate revisions by 2 users not shown)
Line 14: Line 14:
1. Use '''gpiod''' instead of obsolete interface
1. Use '''gpiod''' instead of obsolete interface


2. The script now supports the Raspberry Pi OS '''BOOKWORM''' version. You just need to '''uninstall''' the original script and '''reinstall''' it. Please refer to the following:
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:
OPen ternimal window, then run the following command:
Line 68: Line 68:


===Clone the script===
===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>
<pre>
git clone https://github.com/geekworm-com/x728-script
pi@geekworm:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 13 (trixie)
Release: 13
Codename: trixie
</pre>
The above last line "Codename" indicates that the current system is '''Trixie''' OS.


cd x728-script
Set executable permissions for script files:
chmod +x *.sh
cd x728-script
</pre>
chmod +x *.sh
'''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.
'''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
  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===
===Create the x728-pwr service===
Line 245: Line 249:


<!--Add review function! -->
<!--Add review function! -->
<comments />
<comment-streams id="main" />


<!--Please choose the  -->
<!--Please choose the  -->