Changes

Jump to navigation Jump to search

X708-script

65 bytes added, 25 March
#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