Open main menu

Changes

XScript

1,154 bytes added, 12:38, 17 June 2023
* [https://manjaro.org Manjaro-ARM-gnome-rpi4-23.02.img.xz]
===1. Install===
'''Update system & install dependent packages'''
Then reboot the device
sudo reboot now
 
===2. Test safe shutdown===
xoff
* Please run 'xoff' to shut down or press the on-board button switch to shut down. DON'T run the 'shutdown' linux command to shut down, otherwise the power of device will not be shut down.
* press button switch `1-2` seconds to reboot
* press button switch `3` seconds to safe shutdown,
* press `7-8` seconds to force shutdown.
 
===3. PWM fan control (This is optional)===
 
PS: You can ignore this step if you don't use the 3-Pin PWM fan to cool the CM4. In fact, the C235 passive cooler can provide enough cooling capacity, and you can also avoid the trouble of fan noise, it is included in [[NASPi CM4-M2]] and [[NASPi CM4-2.5]]
 
Run the below command to get the fan running.
sudo python3 ~/xscript/fan-rpi.py &
But when you reboot the device, the PWM fans won't run unless you run the above command again,
 
ON Manjaro OS, Place the running command into the '/etc/rc.local file', then this command will be execute after the device reboot, you can run the following command:
sudo sed -i '$ i sudo python3 ~/xscript/fan-rpi.py &' /etc/rc.local
NOTE: Please make sure the fan-rpi.py file path is correct;