<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki42.maceys.net/index.php?action=history&amp;feed=atom&amp;title=X735_Script</id>
	<title>X735 Script - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki42.maceys.net/index.php?action=history&amp;feed=atom&amp;title=X735_Script"/>
	<link rel="alternate" type="text/html" href="https://wiki42.maceys.net/index.php?title=X735_Script&amp;action=history"/>
	<updated>2026-04-14T05:51:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.3</generator>
	<entry>
		<id>https://wiki42.maceys.net/index.php?title=X735_Script&amp;diff=291&amp;oldid=prev</id>
		<title>Lynn: Created page with &quot;=Overview= This is script installation tutorial for X735 v2.5 &amp; v3.0, it will replace X735 Software installation tutorial, although X735 Software installation tutorial is still available, but we strongly recommend that you use this script tutorial, which simplifies the installation process and reduces dependencies on third-party python libraries.  The core shell script of X735-script comes from from [https://github.com/pimlie/geekworm-x-c1 pimlie/geekworm-x-c1],...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki42.maceys.net/index.php?title=X735_Script&amp;diff=291&amp;oldid=prev"/>
		<updated>2026-01-24T23:59:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=Overview= This is script installation tutorial for X735 v2.5 &amp;amp; v3.0, it will replace &lt;a href=&quot;/index.php?title=X735_Software_installation_tutorial&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;X735 Software installation tutorial (page does not exist)&quot;&gt;X735 Software installation tutorial&lt;/a&gt;, although &lt;a href=&quot;/index.php?title=X735_Software_installation_tutorial&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;X735 Software installation tutorial (page does not exist)&quot;&gt;X735 Software installation tutorial&lt;/a&gt; is still available, but we strongly recommend that you use this script tutorial, which simplifies the installation process and reduces dependencies on third-party python libraries.  The core shell script of X735-script comes from from [https://github.com/pimlie/geekworm-x-c1 pimlie/geekworm-x-c1],...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Overview=&lt;br /&gt;
This is script installation tutorial for X735 v2.5 &amp;amp; v3.0, it will replace [[X735 Software installation tutorial]], although [[X735 Software installation tutorial]] is still available, but we strongly recommend that you use this script tutorial, which simplifies the installation process and reduces dependencies on third-party python libraries.&lt;br /&gt;
&lt;br /&gt;
The core shell script of X735-script comes from from [https://github.com/pimlie/geekworm-x-c1 pimlie/geekworm-x-c1], pimlie implements the pwm fan shell script, which does not depend on third-party python libraries at all. Thanks to pimlie.&lt;br /&gt;
&lt;br /&gt;
The latest version of the script:&lt;br /&gt;
# Uses &amp;#039;&amp;#039;&amp;#039;gpiod&amp;#039;&amp;#039;&amp;#039; instead of obsolete interface, and supports Ubuntu 23.04 also&lt;br /&gt;
# The script now supports the Raspberry Pi OS BOOKWORM version. You just need to uninstall the original script and reinstall it.&lt;br /&gt;
&lt;br /&gt;
{{Note | The x735 V.10 does not support pwm fan control}}&lt;br /&gt;
&lt;br /&gt;
=Updating a Previous Installation=&lt;br /&gt;
Open terminal window, then run the following commands:&lt;br /&gt;
&lt;br /&gt;
 mv x735-script x735-script-old&lt;br /&gt;
 git clone https://github.com/geekworm-com/x735-script&lt;br /&gt;
 cd x735-script&lt;br /&gt;
 chmod +x *.sh&lt;br /&gt;
 ./uninstall.sh&lt;br /&gt;
&lt;br /&gt;
Then just follow the installation process below.&lt;br /&gt;
&lt;br /&gt;
=New Installation=&lt;br /&gt;
&lt;br /&gt;
==Flash OS==&lt;br /&gt;
Flash a supported OS to an SD card, insert it and power on the system. &lt;br /&gt;
&lt;br /&gt;
The script has been tested on the following OS distributions:&lt;br /&gt;
&lt;br /&gt;
*Raspbian&lt;br /&gt;
*DietPi&lt;br /&gt;
*Manjaro&lt;br /&gt;
*Ubuntu&lt;br /&gt;
*myNode&lt;br /&gt;
*Umbrel&lt;br /&gt;
*Volumio&lt;br /&gt;
*RetroPie&lt;br /&gt;
*Twister &lt;br /&gt;
&lt;br /&gt;
SD flashing instructions are here.&lt;br /&gt;
&lt;br /&gt;
==Install Required Applications==&lt;br /&gt;
Install gpiod and git packages:&lt;br /&gt;
&lt;br /&gt;
 sudo apt install -y gpiod git&lt;br /&gt;
&lt;br /&gt;
Depending on the distribution both the gpiod and git applications may already be installed.&lt;br /&gt;
&lt;br /&gt;
If you need to use pwm_fan_control.py in some OS, need to install the following python dependencies&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install -y python3-rpi.gpio&lt;br /&gt;
&lt;br /&gt;
This may report that python3-rpi.lgpio was installed instead. It also may already be installed.&lt;br /&gt;
&lt;br /&gt;
==Update Firmware configuration==&lt;br /&gt;
Preconfigured config.txt&lt;br /&gt;
To install pwm fan edit the /boot/firmware/config.txt file and add the following line after the [all] label, or at the end of the file.:&lt;br /&gt;
 sudo /biun/bash&lt;br /&gt;
 echo dtoverlay=pwm-2chan,pin2=13,func2=4 &amp;gt;&amp;gt; /boot/firmware/config.txt&lt;br /&gt;
Reboot.&lt;br /&gt;
&lt;br /&gt;
==Fetch the X735 Script from the Repository==&lt;br /&gt;
&lt;br /&gt;
 git clone https://github.com/geekworm-com/x735-script&lt;br /&gt;
 cd x735-script&lt;br /&gt;
 chmod +x *.sh&lt;br /&gt;
&lt;br /&gt;
If running on a Pi 5, see below.&lt;br /&gt;
&lt;br /&gt;
==Create the x735-fan service==&lt;br /&gt;
The x735-fan service is for the pwm fan. The pwm fan will automatically adjust the fan speed according based on the temperature of the cpu after the service is started.&lt;br /&gt;
&lt;br /&gt;
Run the following command to install fan service script;&lt;br /&gt;
 sudo ./install-fan-service.sh&lt;br /&gt;
&lt;br /&gt;
Then the pwm fan will start running. The CPU temperature will be monitored and the fan speed adjusted accordingly.&lt;br /&gt;
&lt;br /&gt;
PS: If fan doesn&amp;#039;t start, be sure to update the kernel to version 6.6.22, don&amp;#039;t work on 6.6.20, it&amp;#039;s a kernel issue.&lt;br /&gt;
&lt;br /&gt;
Verify that the OS kernel is at 6.6.22 or later.&lt;br /&gt;
&lt;br /&gt;
 uname -arm&lt;br /&gt;
&lt;br /&gt;
 sudo apt update&lt;br /&gt;
 sudo apt full-upgrade&lt;br /&gt;
 sudo rpi-update&lt;br /&gt;
&lt;br /&gt;
==Create the x735-pwr Service==&lt;br /&gt;
PS: If you use X735 V1.0, you need to modify x735-pwr.service file to adapt to the different GPIO of X735 v1.0, you can refer to line 10 of x735-pwr.service file. It is a tossup between making this part of the normal build or skipping if or all but the Chico feeder system.&lt;br /&gt;
&lt;br /&gt;
{{note | Edit the script and comment out both the enable and start lines. If the power management board is not installed, the system will halt and do so every time that the system is powered on. The only easy fix is bring it up in a system with the board installed.}}&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 &lt;br /&gt;
 echo &amp;quot;Start installing the power management service...&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 sudo cp -f ./xPWR.sh                /usr/local/bin/&lt;br /&gt;
 sudo cp -f ./x735-pwr.service             /lib/systemd/system&lt;br /&gt;
 sudo systemctl daemon-reload&lt;br /&gt;
 # sudo systemctl enable x735-pwr&lt;br /&gt;
 # sudo systemctl start x735-pwr&lt;br /&gt;
 &lt;br /&gt;
 echo &amp;quot;Power management service installed&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo ./install-pwr-service.sh&lt;br /&gt;
&lt;br /&gt;
==Install the Software Shutdown Script==&lt;br /&gt;
Install the xSoft.sh command:&lt;br /&gt;
 sudo cp -f ./xSoft.sh                /usr/local/bin/&lt;br /&gt;
Then run the following command to create a alias &amp;#039;x735off&amp;#039; command&lt;br /&gt;
&lt;br /&gt;
For X735 V3.0 V2.5 V2.1 V2.0&lt;br /&gt;
 echo &amp;#039;alias x735off=&amp;quot;sudo /usr/local/bin/xSoft.sh 0 20&amp;quot;&amp;#039; &amp;gt;&amp;gt; ~/.bashrc&lt;br /&gt;
&lt;br /&gt;
for X735 1.0&lt;br /&gt;
 echo &amp;#039;alias x735off=&amp;quot;sudo /usr/local/bin/xSoft.sh 0 18&amp;quot;&amp;#039; &amp;gt;&amp;gt; ~/.bashrc&lt;br /&gt;
Run the following command to make the alias x735off effective&lt;br /&gt;
&lt;br /&gt;
 source ~/.bashrc&lt;br /&gt;
&lt;br /&gt;
After the installation is complete, an x735off command will be created to safe shut down.Then you can run x735xoff to execute software shutdown.&lt;br /&gt;
&lt;br /&gt;
=Raspberry Pi 5 Instructions=&lt;br /&gt;
&lt;br /&gt;
Raspberry Pi 5 hardware will require additional steps&lt;br /&gt;
&lt;br /&gt;
==Update Kernel==&lt;br /&gt;
Verify that the OS kernel is at 6.6.22 or later.&lt;br /&gt;
&lt;br /&gt;
 uname -arm&lt;br /&gt;
&lt;br /&gt;
Be sure to update the kernel to version 6.6.22 or more high version.&lt;br /&gt;
 sudo apt update&lt;br /&gt;
 sudo apt full-upgrade&lt;br /&gt;
 sudo rpi-update&lt;br /&gt;
&lt;br /&gt;
==After Fetching the x735 Script==&lt;br /&gt;
Edit x735fan.sh and change PWM_CHIP_PATH on line 7 to:&lt;br /&gt;
 /sys/class/pwm/pwmchip2&lt;br /&gt;
Run the following commands:&lt;br /&gt;
 sed -i &amp;#039;s/xSoft.sh 0 20/xSoft.sh 4 20/g&amp;#039; install-sss.sh&lt;br /&gt;
 sed -i &amp;#039;s/xPWR.sh 0 5 12/xPWR.sh 4 5 12/g&amp;#039; x735-pwr.service&lt;br /&gt;
 sed -i &amp;#039;s/pwmchip0/pwmchip2/g&amp;#039; x735-fan.sh&lt;br /&gt;
&lt;br /&gt;
Return to [[Raspberry Pi]]&amp;lt;br&amp;gt;&lt;br /&gt;
Return to [[Technical Guides]]&lt;/div&gt;</summary>
		<author><name>Lynn</name></author>
	</entry>
</feed>