Open main menu

Changes

My Test

1,315 bytes removed, 20 March
no edit summary
After your system boots, then you need to open <code>Terminal</code> prpgram, then type the following command to complete the installation of the script
'''[NOTE]'''
 
If you are a new user, please ignore this '''NOTE'''
 
If you are using the latest Raspberry Pi OS bookworm version or have updated the OS kernel to the latest version 6.6, then you get the following error after running the <code>xoff</code> command:
<pre>
/usr/local/bin/x-c1-softsd.sh: line 5: echo: writing error: Invalid argument
/usr/local/bin/x-c1-softsd.sh: line 6: /sys/class/gpio/gpio27/direction: No such file or directory
/usr/local/bin/x-c1-softsd.sh: line 7: /sys/class/gpio/gpio27/value: No such file or directory
Your device will shutting down in 4 seconds...
/usr/local/bin/x-c1-softsd.sh: line 19: /sys/class/gpio/gpio27/value: No such file or directory
</pre>
The cause of this error is due to a kernel update, please perform the following update to solve the issue;
 
1. First go back to the directory where you installed xscript and you will see the ''xscript'' folder.
 
2. Then run the following command:
<pre>
cd xscript
rm x-c1-softsd.sh x-c1-pwr.sh -f
git pull origin
chmod +x *.sh
sudo cp -f . /x-c1-softsd.sh /usr/local/bin/
sudo cp -f . /x-c1-pwr.sh /usr/local/bin/
sudo reboot
</pre>
==OS that has been tested==
* Raspbian
==Create the x-c1-fan service==
<span class="tb_red_bold"> Note: If your device does not support pwm fans or you are not using pwm, you can skip this step</span>
<pre>sudo cp bash install-f ./xfan-c1-fanservice.sh /usr/local/bin/sudo cp -f ./x-c1-fan.service /lib/systemd/systemsudo systemctl daemon-reloadsudo systemctl enable x-c1-fansudo systemctl start x-c1-fan</pre>
Then the pwm fan starts running.