X735 Software
How to setup safe shutdown script??
1. Once you have logged into your Raspberry Pi from the command line, run the following commands
sudo apt-get update sudo apt-get install python-smbus sudo apt-get install i2c-tools sudo apt-get install pigpio python-pigpio python3-pigpio
2. Download script and some sample code.
git clone https://github.com/geekworm-com/X735-V2.5.git
3. Setup script.
cd X735-V2.5 sudo bash x735-v25.sh printf "%s\n" "alias x735off='sudo x735softsd.sh'" >> ~/.bashrc
4. Reboot
sudo reboot
5. Test safe shutdown
x735off
Other python sample code
read_fan_speed.py This is only show how to get the fan speed every second. sudo python read_fan_speed.py
pwm_fan_control.py This is the phthon sample file to control fan speed by CPU temperature. you can refer to this sample or modify it by your request. please contact us if you found some error for this file. You can use the 'crontab' system command to execute this python file to get the function of speed adjustment according to temperature changes.
How to use crontab command
sudo crontab -e
Choose "1" then press Enter
Add a line at the end of the file that reads like this:
@reboot python3 /home/pi/X735-V2.5/pwm_fan_control.py
Please note the path of this file.
Save and exit. In nano editor, you do that by hitting CTRL + X, answering Y and hitting Enter when prompted.
Enable comment auto-refresher
Anonymous user #69
Permalink |
Harry
Anonymous user #68
Permalink |
Harry
Anonymous user #68
Permalink |
Harry
Anonymous user #67
Permalink |
Walker
Anonymous user #66
Permalink |
Lisa
Anonymous user #65
Permalink |
Lisa
Anonymous user #63
Permalink |
Lisa
Anonymous user #62
Permalink |
Anonymous user #61
Permalink |
Anonymous user #61
Anonymous user #60
Permalink |
Anonymous user #60
Lisa
Anonymous user #60
Lisa
Anonymous user #59
Permalink |
Lisa
Anonymous user #58
Permalink |
Lisa
Anonymous user #57
Permalink |
Lisa
Anonymous user #56
Permalink |
Harry
Anonymous user #55
Permalink |
Harry
Anonymous user #54
Permalink |
Lisa
Anonymous user #53
Permalink |
Anonymous user #53
Permalink |
Anonymous user #52
Permalink |
Harry
Anonymous user #51
Permalink |
Lisa
Anonymous user #49
Permalink |
Lisa
Lisa
Anonymous user #51
Permalink |
Lisa
Anonymous user #64
Anonymous user #50
Permalink |
Anonymous user #49
Permalink |
Lisa
Anonymous user #48
Permalink |
Lisa
Anonymous user #47
Permalink |
Lisa
Anonymous user #46
Permalink |
Lisa
Anonymous user #44
Permalink |
Lisa
Anonymous user #42
Permalink |
Anonymous user #43
Anonymous user #45
Anonymous user #40
Permalink |
Harry
Lisa
Anonymous user #41
Anonymous user #39
Permalink |
Lisa
Anonymous user #64
Anonymous user #38
Permalink |
Harry
Anonymous user #37
Permalink |
Anonymous user #36
Permalink |
Anonymous user #35
Lisa
Anonymous user #37
Anonymous user #35
Permalink |
Lisa
Anonymous user #35
Permalink |
Lisa
Anonymous user #34
Permalink |
Anonymous user #33
Permalink |
Lisa
Anonymous user #32
Permalink |
Anonymous user #31
Permalink |
Lisa
Anonymous user #29
Permalink |
Anonymous user #28
Permalink |
Anonymous user #28
Permalink |
Anonymous user #28
Permalink |
Anonymous user #27
Permalink |
Anonymous user #27
Permalink |
Anonymous user #26
Permalink |
Anonymous user #26
Harry
Harry
Harry
Anonymous user #25
Permalink |
Lisa
Anonymous user #22
Permalink |
Lisa
Anonymous user #30
Anonymous user #21
Permalink |
Lisa
Harry