Difference between revisions of "X735 Software"
(16 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{GD Template Impl}} | {{GD Template Impl}} | ||
− | This guide is only for X735 V2.5 shield based on RASPBIAN. (Not tested on Ubuntu, openmediavault, retropie or other OS.) | + | ==For Raspbian / RetroPie / Twister OS v2.0.2== |
+ | This guide is only for X735 V2.5 shield based on RASPBIAN. (Not tested on Ubuntu, openmediavault, retropie or other third party OS like Manjaro,RoninDojo.) | ||
'''install''' | '''install''' | ||
Assuming your system is updated, add these packages: | Assuming your system is updated, add these packages: | ||
− | sudo apt-get install python-smbus | + | sudo apt-get install -y python-smbus python |
− | sudo apt-get install pigpio python-pigpio python3-pigpio | + | sudo apt-get install -y pigpio python-pigpio python3-pigpio git |
git clone https://github.com/geekworm-com/x735-v2.5 | git clone https://github.com/geekworm-com/x735-v2.5 | ||
cd x735-v2.5 | cd x735-v2.5 | ||
sudo chmod +x *.sh | sudo chmod +x *.sh | ||
sudo bash install.sh | sudo bash install.sh | ||
+ | echo "alias x735off='sudo x735softsd.sh'" >> ~/.bashrc | ||
sudo reboot | sudo reboot | ||
+ | |||
+ | '''Test safe shutdown''' | ||
+ | x735off | ||
+ | * x735off is safe shutdown command, you can run this command to safe shutdown. | ||
+ | * press button 1-2 seconds to reboot | ||
+ | * press button 3 seconds to safe shutdown, | ||
+ | * press 7-8 seconds to force shutdown. | ||
'''uninstall''' | '''uninstall''' | ||
Line 20: | Line 29: | ||
After a reboot, we can run ```sudo read_fan_speed.py``` to get an update on the fan's current speed. Nice! | After a reboot, we can run ```sudo read_fan_speed.py``` to get an update on the fan's current speed. Nice! | ||
+ | |||
+ | '''How to make the fan script run automatically after booting?''' | ||
+ | |||
+ | There are two ways to achieve it; | ||
+ | 1. Put the following line at the end of .bashrc file: (Default) | ||
+ | cd ~ | ||
+ | nano .bashrc | ||
+ | copy the following line to .bashrc file. | ||
+ | |||
+ | python /home/pi/x735-v2.5/pwm_fan_control.py & | ||
+ | |||
+ | NOTE: Maybe you need to modify the file path if you use other OS. | ||
+ | |||
+ | In this way, this line of command will be executed automatically when the user logs in; | ||
+ | |||
+ | 2. Use crontab to add a timed task. For details, please refer to [[How to add crontab job]]. | ||
+ | |||
+ | ==For DietPi== | ||
+ | '''install''' | ||
+ | sudo apt-get install -y python-smbus python | ||
+ | sudo apt-get install -y pigpio python-pigpio python3-pigpio git | ||
+ | git clone https://github.com/geekworm-com/x735-v2.5 | ||
+ | cd x735-v2.5 | ||
+ | sudo chmod +x *.sh | ||
+ | sudo bash install-dietpi.sh | ||
+ | |||
+ | echo "alias x735off='sudo /usr/local/bin/x735softsd'" >> ~/.bashrc | ||
+ | sudo reboot | ||
+ | |||
+ | == For myNode OS and Umbrel == | ||
+ | About myNode, please refer to http://www.mynodebtc.com/ | ||
+ | |||
+ | About Umbrel, please refetrto https://getumbrel.com/ | ||
+ | |||
+ | '''Install''' | ||
+ | |||
+ | login to mynode teminal via Putty or Xsheel tool, the default user name is `admin`, password is `bolt`, then run the following command: | ||
+ | |||
+ | Login to mynode teminal via Putty or Xsheel tool, the default user name is `umbrel`, default password is `moneyprintergobrrr`, then run the following command: | ||
+ | |||
+ | '''FAQ''' | ||
+ | |||
+ | Q: What are the credentials to SSH into my Umbrel? | ||
+ | |||
+ | A: ssh umbrel@umbrel.local (or ssh umbrel@<IP address of your Umbrel>). The password is the same as your Umbrel's password. If you haven't set a password yet, the default password is: moneyprintergobrrr. | ||
+ | |||
+ | <pre> | ||
+ | |||
+ | sudo apt-get update | ||
+ | sudo apt-get install -y python-smbus python pigpio python-pigpio python3-pigpio git wiringpi | ||
+ | sudo apt-get install -y python-rpi.gpio rpi.gpio | ||
+ | git clone https://github.com/geekworm-com/x735-v2.5 | ||
+ | cd x735-v2.5 | ||
+ | chmod +x *.sh | ||
+ | sudo bash install-mynode.sh | ||
+ | echo "alias x735off='sudo /usr/local/bin/x735softsd.sh'" >> ~/.bashrc | ||
+ | sudo reboot | ||
+ | </pre> | ||
+ | |||
+ | ''' PWM fan control''' | ||
+ | The script is installed successfully and the fan starts to run | ||
+ | |||
+ | '''Test safe shutdown''' | ||
+ | x735off | ||
+ | * Please run 'x735off' to shut down or press the on-board button switch to shut down. <span style="color:red;">DON'T run the 'shutdown' linux command to shut down, otherwise the power of x735 will not be shut down.</span> | ||
+ | * press button switch 1-2 seconds to reboot | ||
+ | * press button switch 3 seconds to safe shutdown, | ||
+ | * press 7-8 seconds to force shutdown. | ||
+ | |||
+ | '''uninstall''' | ||
+ | ./uninstall-mynode.sh | ||
Return to [[X735]] | Return to [[X735]] |
Revision as of 16:21, 30 November 2021
For Raspbian / RetroPie / Twister OS v2.0.2
This guide is only for X735 V2.5 shield based on RASPBIAN. (Not tested on Ubuntu, openmediavault, retropie or other third party OS like Manjaro,RoninDojo.)
install
Assuming your system is updated, add these packages:
sudo apt-get install -y python-smbus python sudo apt-get install -y pigpio python-pigpio python3-pigpio git git clone https://github.com/geekworm-com/x735-v2.5 cd x735-v2.5 sudo chmod +x *.sh sudo bash install.sh echo "alias x735off='sudo x735softsd.sh'" >> ~/.bashrc sudo reboot
Test safe shutdown
x735off
- x735off is safe shutdown command, you can run this command to safe shutdown.
- press button 1-2 seconds to reboot
- press button 3 seconds to safe shutdown,
- press 7-8 seconds to force shutdown.
uninstall
sudo ./uninstall.sh
read-fan-speed.py
sudo ./read_fan_speed
After a reboot, we can run ```sudo read_fan_speed.py``` to get an update on the fan's current speed. Nice!
How to make the fan script run automatically after booting?
There are two ways to achieve it; 1. Put the following line at the end of .bashrc file: (Default)
cd ~ nano .bashrc
copy the following line to .bashrc file.
python /home/pi/x735-v2.5/pwm_fan_control.py &
NOTE: Maybe you need to modify the file path if you use other OS.
In this way, this line of command will be executed automatically when the user logs in;
2. Use crontab to add a timed task. For details, please refer to How to add crontab job.
For DietPi
install
sudo apt-get install -y python-smbus python sudo apt-get install -y pigpio python-pigpio python3-pigpio git git clone https://github.com/geekworm-com/x735-v2.5 cd x735-v2.5 sudo chmod +x *.sh sudo bash install-dietpi.sh echo "alias x735off='sudo /usr/local/bin/x735softsd'" >> ~/.bashrc sudo reboot
For myNode OS and Umbrel
About myNode, please refer to http://www.mynodebtc.com/
About Umbrel, please refetrto https://getumbrel.com/
Install
login to mynode teminal via Putty or Xsheel tool, the default user name is `admin`, password is `bolt`, then run the following command:
Login to mynode teminal via Putty or Xsheel tool, the default user name is `umbrel`, default password is `moneyprintergobrrr`, then run the following command:
FAQ
Q: What are the credentials to SSH into my Umbrel?
A: ssh umbrel@umbrel.local (or ssh umbrel@<IP address of your Umbrel>). The password is the same as your Umbrel's password. If you haven't set a password yet, the default password is: moneyprintergobrrr.
sudo apt-get update sudo apt-get install -y python-smbus python pigpio python-pigpio python3-pigpio git wiringpi sudo apt-get install -y python-rpi.gpio rpi.gpio git clone https://github.com/geekworm-com/x735-v2.5 cd x735-v2.5 chmod +x *.sh sudo bash install-mynode.sh echo "alias x735off='sudo /usr/local/bin/x735softsd.sh'" >> ~/.bashrc sudo reboot
PWM fan control
The script is installed successfully and the fan starts to run
Test safe shutdown
x735off
- Please run 'x735off' to shut down or press the on-board button switch to shut down. DON'T run the 'shutdown' linux command to shut down, otherwise the power of x735 will not be shut down.
- press button switch 1-2 seconds to reboot
- press button switch 3 seconds to safe shutdown,
- press 7-8 seconds to force shutdown.
uninstall
./uninstall-mynode.sh
Return to X735
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