<big>Although this installation tutorial is still available, but we strongly recommend that you use [[X708-script]] new tutorial, and we no longer maintain this page.</big>
==For Raspberry Pi OS==
3. Check if the i2c of the X708 is connected correctly
Testing Started---AC Power Loss OR Power Adapter Failure---
Shutdown in 5 seconds
In fact, you can refer to this example code to implement your own shutdown logic. . . This requires you to have some python programming foundation.
8. Automatically control the cooling Fan <span style="color:#23AC38">pi@raspberrypi</span>:<span style="color:#50BEDB">~ $</span> cd ~/x708v2/raspberryAdvanced use of speed regulation for non-pi-os/pwm fans
You can control The X708 hardware supports two fan speeds: low speed (default) and high speed; if you want the fan running to run at high speed or low speed via modify , you need to run the CPU temperature threshold in fan.py script file. cd ~/x708v2/raspberry-pi-os/ python3 fan.py
fan.py provides a method that can switch the fan speed. It should be noted that the x708 does not use a PWM fan, it only supports two speed modes (low speed and high speed). In the fan.py file, the speed mode of the fan is controlled by reading the temperature of the CPU in real time. You need to read the fan.py code to understand more logic. You can control the fan running at high speed or low speed via modify the CPU temperature threshold in fan.py script file (yellow highlight line)<syntaxhighlight lang="python" line highlight="9-11">#!/usr/bin/env python3 import subprocessimport time from gpiozero import OutputDevice ON_THRESHOLD = 55 # (degrees Celsius) Fan running at high speed at this temperature.OFF_THRESHOLD = 50 # (degress Celsius) Fan running at low speed at this temperature.SLEEP_INTERVAL = 5 # (seconds) How often we check the core temperature.GPIO_PIN = 16 # Which GPIO pin you're using to control the fan. DON'T change it! def get_temp(): """Get the core temperature. Run a shell script to get the core temp and parse the output.</syntaxhighlight> '''[[File:PS]''' * If you can't understand, please ignore this step. Because the X708fan will run at low speed by default, this cooling capacity is sufficient.* If you have full control over the runing of the fan, you need to run 'python3 /home/pi/x708v2/raspberry-v2pi-os/fan.pngpy', and you need to create a crontab job also, and then put this run command ('@reboot python3 /home/XX/x708v2/raspberry-pi-os/fan.py 'XX' is your username, you need replace it with your username.') into the job, so that the command will run automatically when the device restarts. refer to [[X708-Software#FAQ]]
9. Uninstall
<span style="color:#23AC38">pi@raspberrypi</span>:<span style="color:#50BEDB">~ $</span> cd ~/x708v2/raspberry-pi-os/ <span style="color:#23AC38">pi@raspberrypi</span>:<span style="color:#50BEDB">~/x708v2/raspberry-pi-os $ </span>sudo bash uninstall.sh 10. About '''AUTO ON''' After shutting down, you need to wait about 60 seconds until the battery capacity indicator of X708 goes out, otherwise the AUTO ON function may be invalid. Because the charge remaining in the power adapter may affect the AUTO ON function.