Changes

Jump to navigation Jump to search

X735 Software

2,221 bytes added, 3 April
no edit summary
{{GD Template Impl}}
 <span class="tb_red"><big>This tutorial is deprecated, see [[X735-script]]</big></span>  ==Overview==This guide also applies to [[X735 ]] V3.0;0 / V2.5 shield; ==For Raspbian / Raspbian Lite / RetroPie / Twister OS v2.0.2==This guide is only for X735 V2.5 shield based on [https://www.raspberrypi.com/software/operatingTest '2022-04-04-raspios-systems/ Raspberry Pi OS bullseye] -armhf-lite. (Not tested img' on openmediavault, retropie or other third party OS like Manjaro,RoninDojo.)May 6th 2022;
'''install'''
Assuming your system is updated, add these packages: sudo apt-get update sudo apt-get upgrade  sudo apt-get install -y python-smbus pythongit sudo apt-get install -y pigpio pythonpython3-pigpio sudo apt-get install -y python3-pigpio gitsmbus python3-rpi.gpio
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 /usr/local/bin/x735softsd.sh'" >> ~/.bashrc
sudo reboot
 
If reboot fails, please force shutdown or power off and restart
'''Test safe shutdown'''
'''read-fan-speed.py'''
sudo python3 read_fan_speed.py
or
sudo python read_fan_speed.py
or
sudo python3 read_fan_speed.py
After a reboot, we can run ```sudo python read_fan_speed.py``` to get an update on the fan's current speed.
'''How to make the fan script run automatically after booting?'''
There are two ways to achieve it;it: 1. Put the following command line at in the end of /etc/rc.bashrc local file: (Default('''Default''') cd ~vi /etc/rc.local <source lang='shell' line highlight="21">#!/bin/sh -e# nano # rc.local## This script is executed at the end of each multiuser runlevel.bashrccopy # Make sure that the following line script will "exit 0" on success or any other# value on error.## In order to enable or disable this script just change the execution# bits.bashrc file## By default this script does nothing# Print the IP address_IP=$(hostname -I) || trueif [ "$_IP" ]; then printf "My IP address is %s\n" "$_IP"fi
/etc/x735pwr.sh &python /home/pi/x735-v2.5/pwm_fan_control.py &exit 0</source>
NOTE: Maybe * The install.sh script will make sure this command line is put into the rc.local file, you don't need to modify do anything.* Please change 'python' to 'python3' if you are using python3.* Please make sure the file path if you use other OSof pwm_fan_control.py is correct.
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 pythonpython3-rpi.gpio
sudo apt-get install -y pigpio python-pigpio python3-pigpio git
git clone https://github.com/geekworm-com/x735-v2.5
echo "alias x735off='sudo /usr/local/bin/x735softsd'" >> ~/.bashrc
sudo reboot
 
PS: according to the customer feedback, the above shell script is also work with Citadel, please test yourself, thanks!
==For Volumio 3==
sudo apt-get update
sudo apt-get install python-smbus
sudo apt-get -y install python-rpi.gpio python3-rpi.gpio
# download the install script
sudo git clone https://github.com/geekworm-com/x735-v2.5
cd x735-v2.5
sudo chmod +x *.sh
sudo bash install-volumio3.sh
#add x735off alias
echo "alias x735off='sudo /usr/local/bin/x735softsd'" >> ~/.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 python3 read_fan_speed.py
==For Ubuntu Server==
'''read-fan-speed.py'''
sudo python3 read_fan_speed.py
== For myNode OS and Umbrel ==
About myNode, please refer to http://www.mynodebtc.com/
About Umbrel, please refetrto https://getumbrel.com/, we test it base on 'umbrel-os-v0.4.4.img' We tested umbrel v0.4.16 on Apr. 18th, 2022 base on 'umbrel-os-v0.4.16.img'
'''Install'''
Q: What are the credentials to SSH into my Umbrel?
A: ssh umbrel@host is '''umbrel.local ''' (or ssh umbrel@<'''local IP address ''' of your Umbrel>). The password default user name is the same as your Umbrel's password. If you haven't set a password yet'umbrel''', and 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 python3-rpi.gpio rpi.gpio
git clone https://github.com/geekworm-com/x735-v2.5
cd x735-v2.5
echo "alias x735off='sudo /usr/local/bin/x735softsd.sh'" >> ~/.bashrc
sudo reboot
If you fail to reboot, please unplug the power directly and restart;
</pre>
'''uninstall'''
./uninstall-mynode.sh
 
==For Version 2.1 or more low version==
 
Please refer to '''[http://www.suptronics.com/miniPCkits/x735-hardware.html Hardware]''' and '''[http://www.suptronics.com/miniPCkits/x730-software.html Software]''' and read them and follow the instructions before ask any questions, thank you!
 
The safe shutdown script is same with X730.
 
* [https://github.com/geekworm-com/x730-script Github]
We test this shell script base official Raspbian '2018-11-13-raspbian-stretch.img' version;other operating systems not be tested!
<pre>
#Download run script
 
git clone https://github.com/geekworm-com/x730-script
 
cd x730-script
 
#Setting file attributes
sudo chmod +x x730.sh
 
#Install the script
sudo bash x730.sh
 
#Setting up the command to turn off X730 from software
printf "%s\\n" "alias x730off='sudo x730shutdown.sh'" >> ~/.bashrc
 
#Reboot the Raspberry Pi
sudo reboot
 
#Powering off the Raspberry Pi from software
x730off
</pre>
Return to [[X735]]

Navigation menu