Open main menu

Changes

XScript

1,244 bytes added, 17 March
no edit summary
'''[NOTE]'''
1. If you have recently upgraded your OS or if you are using the '''latest OS image''' (Release date: March 12th 2024), you may encounter the following error when running the xoff 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 directoryYour 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>This is caused by the latest OS using the latest '''linux kernel 6.6''', you can run the '''''uname -a''''' command to check your current kernel version; 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 to use the old OS version for now, the old version of OS you can download from here: https://downloads.raspberrypi.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 the following when you run '''xoff''':
<pre>
/usr/local/bin/x-c1-softsd.sh: line 5: /sys/class/gpio/export: No such file or directory