Changes

Jump to navigation Jump to search

X708-script

53 bytes added, 25 March
'''[NOTE]:'''
1. 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: OPen ternimal window, do then run the following to support bookwormcommand:
<pre>
1. First go back to the directory where you originally installed mv x708-scrip, you can see the script x708-script folder-old2git clone https://github. Then run the following command:com/geekworm-com/x708-script
cd x708-script
rm x708-softsd.sh x708-pwr.sh -f
git pull origin
chmod +x *.sh
sudo cp -f . /x-c1-softsduninstall.sh /usr/local/bin/sudo cp -f . /x-c1-pwr.sh /usr/local/bin/sudo reboot
</pre>
Then just follow the installation process below.
==OS that has been tested==
#36 - the address of the battery fuel gauging chip
</PRE>
 
===Install gpiod package===
sudo apt install -y gpiod
===Clone the script===
x708-pwr service will be responsible for power management and hardware safe shutdown.
<pre>
sudo cp -f ./x708-pwrxPWR.sh /usr/local/bin/sudo cp -f x708-pwr.service /lib/systemd/system
sudo systemctl daemon-reload
sudo systemctl enable x708-pwr
===Prepair software shutdown script===
sudo cp -f ./x708-softsdxSoft.sh /usr/local/bin/Create Then create a alias <code>x708off</code> command to execute the software shutdown
<pre>
echo "alias x708off='sudo /usr/local/bin/x708-softsdxSoft.sh0 13'" >> ~/.bashrc
source ~/.bashrc
</pre>
'''PS:'''
 
Then you can run <code>x708off</code> to execute software shutdown as follows
x708off
==Other resource==
* Chip-Specifications:[[File:MAX17040-MAX17041.pdf]]
* References: [https://www.instructables.com/Raspberry-Pi-Tutorial-How-to-Use-a-Buzzer/ Raspberry Pi Tutorial: How to Use a Buzzer]* [[X728-Software]]
Return to [[X708]] or [[X708-Hardware]]

Navigation menu