NickS Posted December 18, 2020 Posted December 18, 2020 My NAS do very little overnight so my NAS4 shuts down in the evening and shortly afterwards a physical time switch cuts the power - reinstating power in the morning at which time the NAS4 automatically reboots. I want to do the same with the NAS64 - but even though I've read this (https://wiki.kobol.io/helios64/auto_poweron/) I'm not sure how to go about it. I can't understand if it only works if the UPS has died, or if I have to run a script before shutdown or both. Could you please clarify? Thx ... Nick
ebin-dev Posted December 19, 2020 Posted December 19, 2020 @NickSYou just need to change a single digit from 0 to 1 - see here. Unfortunately you need to repeat that if /lib/systemd/system-shutdown/disable_auto_poweron is updated by Armbian. 1
NickS Posted December 19, 2020 Author Posted December 19, 2020 OK Thanks ebin-dev For others who are as dumb as me you need to edit "/lib/systemd/system-shutdown/disable_auto_poweron" and change line ... "echo 0 > /sys/class/gpio/gpio153/value" to "echo 1 > /sys/class/gpio/gpio153/value" and it works!!!
gprovost Posted December 21, 2020 Posted December 21, 2020 @NickS Instead of using a physical timer power switch, you can use RTC wake alarm feature ;-) https://wiki.kobol.io/helios64/rtc/#scheduled-power-on-using-rtc
NickS Posted December 21, 2020 Author Posted December 21, 2020 Hi gprovost, Yes I happened to find RTC in the doc yesterday! I'm still using auto power on in case of power failure. But, as you kindly suggest, I'm now using RTC - 2 tasks in OpenMediaVault5 job scheduling... 1/ sudo rtcwake -m disable (each reboot to reset any outstanding wake timers) 2/ sudo rtcwake -m off --date '+ 6 hour 15 minutes 0 seconds' (each morning at 01:00 to shutdown and set wake timer for 07:15) It worked fine this morning! 1
Recommended Posts