Open main menu

Changes

X735-script

4,021 bytes added, 23 April
If you are using it on a '''Raspberry Pi 5''', make the following changes:
* Be sure to update the kernel to version '''6.6.22'''or more high version.
sudo apt update
sudo apt full-upgrade
===Install gpiod package===
sudo apt install -y gpiod
 
If you need to use '''pwm_fan_control.py''' in some OS, need to install the following python dependencies
sudo apt-get install -y python3-rpi.gpio
===Clone the script===
===Configuring Different GPIO Chip for Raspberry Pi 5 hardware===
If you are not using Raspberry 5 hardware(such as you are using pi 4 hardware), directly skip this step,or run the following command to set differnt chip and pwm number.
sed -i 's/xSoft.sh 0 20/xSoft.sh 4 20/g' install-sss.sh
sed -i 's/xPWR.sh 0 5 12/xPWR.sh 4 5 12/g' x735-pwr.service
sed -i 's/pwmchip0/pwmchip2/g' x735-fan.sh
PS: Raspberry Pi 5 use different gpio chip name.
===Create the x735-fan service===
===Create the x735-pwr service===
sudo ./install-pwr-service.sh
===Prepair software shutdown script===
Run the following command to install software shutdown script (sss)
sudo ./install-sss.sh
After the installation is complete, an <code>x735xoffx735off</code> command will be created to safe shut down the software.Then you can run <code>x735xoff</code> to execute software shutdown.
==Uninstall==
Run the following command to uninstall all.
sudo ./uninstall.sh
==Test==
===Other===
<code>pwm_fan_control.py</code> is no longer used, and are reserved here for research and use by python lovers only.
==How to make the fan run after upgrading umbrel to 1.0==
 
Above X735-script mainly implements three functions of [[X735]] hardware:
 
1. '''Fan service''': Use shell scripts or other high-level languages such as python to control the pwm fan; (corresponding to [[#Create_the_x735-fan_service]])
 
2. '''Power management service''': Use the shell to detect the user's keystrokes in real time to perform a safe shutdown or restart; (corresponding to [[#Create_the_x735-pwr_service]])
 
3. '''Software shutdown service''': Provides a shell script to implement command line shutdown (corresponding to [[#Prepair_software_shutdown_script]])
 
Among them, the purpose of editing '''config.txt''' is to support the x735 fan service. Since the '''/boot''' directory of '''umbrel''' is read-only, we cannot edit the config.txt file, so we cannot use the method provided on our wiki page to install the x735 fan service. , that is, after you install the fan service, the fan of the X735 will still not run; but the other two functions can be used. You only need to follow the above steps on the current page to achieve '''pressing button to shutdown''' and '''software command line shutdown'''; (PS: After the installation is completed, you can '''press the key for 3 seconds''' to test whether the safe shutdown of the X735 is working properly).
 
Now let us solve the problem of pwm fan not running in umbrel 1.0:
 
We can use python code to make the pwm fan run. There is a '''pwm_fan_control.py''' file in the x735-script directory. You can run '''python3 pwm_fan_control.py''' to make the fan run, it's that simple.
 
After the fan runs successfully, we need to let the '''python3 pwm_fan_control.py''' command run automatically after booting, so we need to change the '''x735-fan.service''' file as follows:
cd
cd x735-script
nano x735-fan.service
[[File:X735-fan-service-umbrel.png]]
 
Press '''Ctrl + O''' to save this file.
 
Press '''Ctrl + X''' to exit nano editor.
 
Then execute '''sudo ./install-fan-service.sh''' to install fan service script.
 
It should be noted that since the '''pwm_fan_control.py''' file uses the '''RPi.GPIO''' python library, you need to install this python dependencies package in advance:
sudo apt-get install -y python3-rpi.gpio
 
Finally, as a reminder, please remove the local x735-script folder and then re-execute the above installation process.
 
==Support==
If you have some questions or suggestions, please contact to <span class="tb_red">support@geekworm.com</span>
==FAQ==
<html>
<details>
<summary>Q: How to login <b>volumio</b> via SSH?</summary>
<p>1. Enable SSH:</p>
<p>Visit http://volumio.local/dev/, then click <b>ENABLE SSH</b> button</p>
<p>2. URL connection is IP address, and the default user name is <b>volumio</b>, default password is <b>volumio</b></p>
</details>
<detailsdiv class="toccolours mw-collapsible mw-collapsed"><summarydiv style="font-weight:bold;line-height:1.0;">Q: How to login to <b>Umbrelcan I help you solve your issues?</bdiv> via SSH?</summarydiv class="mw-collapsible-content">A: ssh umbrel@umbrel.local (or ssh umbrel@<IP address First of your Umbrel>)all you really need to read our wiki tutorial carefully and then carefully step by step, try not to type in the commands, you should copy our commands from the wiki page. If you can read linux shell scripts, reading them directly is the default user name best way to go. One thing to note is that it requires you to git the new script again after remove the old x735-script fold first because we updated this page tutorial and github project in '''April 2024'''If you still can't get the board to work, please provide the results of the following commands via email for us to troubleshoot: cat ~/.bashrc sudo systemctl status x735-pwr sudo systemctl status x735-fan history<b/div>umbrel</bdiv> <div class="toccolours mw-collapsible mw-collapsed">, default password is <bdiv style="font-weight:bold;line-height:1.0;">moneyprintergobrrrQ: How to login '''volumio''' via SSH?</bdiv></detailsdiv class="mw-collapsible-content">1. Enable SSH:
<details><summary>QVisit http: How to login to <b>myNode</b> via /volumio.local/dev/, then click '''ENABLE SSH?</summary>''' button
A: 2. URL connection is IP address, and the default user name is <b>admin</b>'''volumio''', default password is <b>bolt'''volumio'''</bdiv></detailsdiv>
<detailsdiv class="toccolours mw-collapsible mw-collapsed"><summarydiv style="font-weight:bold;line-height:1.0;">Q: How to login to <b>DietPimyNode</b> via SSH?</div><div class="mw-collapsible-content">A: URL connection is IP address, and the default user name is '''admin''', default password is '''bolt'''</div></summarydiv>
<div class="toccolours mw-collapsible mw-collapsed"><div style="font-weight:bold;line-height:1.0;">Q: How to login to Umbrel via SSH?</div><div class="mw-collapsible-content">A: URL connection is IP address, and ssh umbrel@umbrel.local (or ssh umbrel@). the default user name is <b>root</b>'''umbrel''', default password is <b>dietpi'''moneyprintergobrrr'''</bdiv></detailsdiv>
<detailsdiv class="toccolours mw-collapsible mw-collapsed"><summarydiv style="font-weight:bold;line-height:1.0;">Q: Is How to login to DietPi via SSH?</div><bdiv class="mw-collapsible-content">LibreELECA: URL connection is IP address, and the default user name is '''root''', default password is '''dietpi'''</bdiv> supported?</summarydiv>
<div class="toccolours mw-collapsible mw-collapsed"><div style="font-weight:bold;line-height:1.0;">Q: Is LibreELEC supported?</div><div class="mw-collapsible-content">A: TODO</detailsdiv></div>
</html>
Return to [[X735]]