Changes

Jump to navigation Jump to search

X708-Software

135 bytes added, 10:29, 31 May 2023
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 Advanced use of speed regulation for non-pwm fans The X708 hardware supports two fan speeds: low speed (default) and high speed; if you want the fan to run at high speed, you need to run the cooling fan .py script.
cd ~/x708v2/raspberry-pi-os/
python3 fan.py
The X708 hardware supports two fan speeds: low speed (default) and high speed; if you want the fan to run at high speed, you need to run the fan.py script.
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 code to understand more logic.
 
python3 fan.py
'''[PS]''' You need to create a crontab job, and then put this run command into the job, so that the command will run automatically when the device restarts. refer to [X708-Software#FAQ]
 
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)
Run a shell script to get the core temp and parse the output.
</syntaxhighlight>
 
'''[PS]''' You need to create a crontab job, 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

Navigation menu