Changes

Jump to navigation Jump to search

X708-Software

323 bytes added, 15:03, 27 April 2022
sudo apt-get install i2c-tools
3. Check if the i2c of the X708 is connected correctly
<span style="color:#23AC38">pi@raspberrypi</span>: <span style="color:#50BEDB">~/x708v2 $</span> sudo i2cdetect -y 1
36 - the address of the battery fuel gauging chip, and 36 is a hexadecimal number
 
If you can't find i2c address 36, it means the X708 is not connected properly, or your raspberry pi board is broken.
3. Download x708 setup scripts:
git clone https://github.com/geekworm-com/x708.git
cd x708 chmod +x install.shThis command will download the script installation file for X708
4. Install the script&reboot:for power management # cd x708v2/raspberry-pi-os sudo bash installpwr.sh # This command will generate 2 power management script files as follows: # /etc/x708pwr.sh # /usr/local/bin/x708softsd.sh
printf "%s\n" "alias x708off='sudo x708softsd.sh'" >> ~/.bashrc
sudo reboot

Navigation menu