Open main menu

Changes

XScript

1,169 bytes removed, 18 March
no edit summary
'''[NOTE]'''
1. If you have recently upgraded your OS or if you are using the a new user, please ignore this '''latest OS imageNOTE''' (Release date: March 12th 2024) 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 may encounter get the following error when 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 19: /sys/class/gpio/gpio27/value: No such file or directory
</pre>
This The cause of this error is caused by the latest OS using the latest '''linux due to a kernel 6.6'''update, you can run please perform the '''''uname -a''''' command following update to check your current kernel versionsolve the problem; uname -aThe results are as follows: Linux raspberrypi 6.6.20+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.20-1+rpt1 (2024-03-07) aarch64 GNU/Linux
We are working on this issue, we suggest you 1. First go back to use the old OS version for now, directory where you downloaded xscript and you will see the old version of OS you can download from here: https://downloads.raspberrypixscript folder.com/raspios_armhf/images/raspios_armhf-2023-12-06/
For similar problems you can also refer to this post: https://forums.raspberrypi.com/viewtopic.php?p=2203382   2. If you are using an '''ubuntu''' system, '''DO NOT''' use version '''ubuntu 23.04''', otherwise you will get an error similar to Then run the following when you run '''xoff'''command:
<pre>
/usr/local/bin/cd xscriptrm x-c1-softsd.sh: line 5: /sys/class/gpio/export: No such file or directory/usr/local/bin/x-c1-softsdpwr.sh -fgit pull originchmod +x *.sh: line 6: /sys/class/gpio/gpio20/direction: No such file or directory/usr/local/binsudo cp -f . /x-c1-softsd.sh: line 7: /sysusr/classlocal/gpiobin/gpio20/value: No such file or directoryYour device will shutting down in 4 seconds..sudo cp -f ./usr/local/bin/x-c1-softsdpwr.sh: line 19: /sysusr/classlocal/gpiobin/gpio20/value: No such file or directorysudo reboot
</pre>
 
There is no '''gpio''' directory in the '''/sys/class''' directory
 
The reason for the error is because since Ubuntu 23.04 uses the latest 6.2 Linux kernel, we wait for the official update;
 
We recommend that you use '''ubuntu 22.04''', and we have also tested the current script on version 22.04.
 
'''PS''': You can refer to [https://github.com/geekworm-com/x735-script/issues/2 this post] to know more detail and fix it:
 
==OS that has been tested==
* Raspbian