PINE64
Boot/Shutdown on timer - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCKPRO64 (https://forum.pine64.org/forumdisplay.php?fid=98)
+--- Forum: Linux on RockPro64 (https://forum.pine64.org/forumdisplay.php?fid=101)
+--- Thread: Boot/Shutdown on timer (/showthread.php?tid=14639)



Boot/Shutdown on timer - captainmorgan - 08-11-2021

I'm using my RockPro64 as a NAS with open media vault. I'd like it to shutdown or standby at a particular time (this I can do with OMV) and then boot up again the next day at a particular time. 

How can I get the boot up to happen on schedule? I tried using WOL but the board wasn't responding to it. I also tried using OMV to put the system into standby and then trigger a reboot at a set time but nothing happened.


RE: Boot/Shutdown on timer - LMM - 08-21-2021

Hi,
As far as I know, it is not possible to have a Wake On Lan with rockchip 3339. I have not even found a "stand by" mode : it does not wake up with keyboard or mouse. In my humble opinion, the only way is to use the power on / reset with the 4 holes next to the headphone jack commanded by a small controller. If you found another solution, I am really interested.
LMM

(08-21-2021, 11:20 AM)LMM Wrote: Hi,
  As far as I know, it is not possible to have a Wake On Lan with rockchip 3339. I have not even found a "stand by" mode : it does not wake up with keyboard or mouse. In my humble opinion, the only way is to use the power on / reset with the 4 holes next to the headphone jack commanded by a small controller. If you found another solution, I am really interested.
LMM

The brut solution would be a timer directly on the power plug ! But it is no a nice solution.


RE: Boot/Shutdown on timer - captainmorgan - 08-21-2021

(08-21-2021, 11:20 AM)LMM Wrote:
(08-21-2021, 11:20 AM)LMM Wrote: The brut solution would be a timer directly on the power plug ! But it is no a nice solution.

I think I'll try this. Sounds like the simplest solution. But I'm also interested in your first idea, what kind of controller would I need?


RE: Boot/Shutdown on timer - LMM - 08-22-2021

(08-21-2021, 01:36 PM)captainmorgan Wrote:
(08-21-2021, 11:20 AM)LMM Wrote:
(08-21-2021, 11:20 AM)LMM Wrote: The brut solution would be a timer directly on the power plug ! But it is no a nice solution.

I think I'll try this. Sounds like the simplest solution. But I'm also interested in your first idea, what kind of controller would I need?

There are many timer projects with arduino (comprizing arduino pico) on the web, but unfortunately I have no time to try. The advantage with a timer on the power supply is that you cut all sources of power consumption (even the 12V converter) only the timer would consume energy (hopefully less than rockpro64 at idle).


RE: Boot/Shutdown on timer - captainmorgan - 08-24-2021

(08-22-2021, 05:20 AM)LMM Wrote:
(08-21-2021, 01:36 PM)captainmorgan Wrote:
(08-21-2021, 11:20 AM)LMM Wrote:
(08-21-2021, 11:20 AM)LMM Wrote: The brut solution would be a timer directly on the power plug ! But it is no a nice solution.

I think I'll try this. Sounds like the simplest solution. But I'm also interested in your first idea, what kind of controller would I need?

There are many timer projects with arduino (comprizing arduino pico) on the web, but unfortunately I have no time to try. The advantage with a timer on the power supply is that you cut all sources of power consumption (even the 12V converter) only the timer would consume energy (hopefully less than rockpro64 at idle).

Thanks, yes I went with a digital timer for the socket and that's working great!


RE: Boot/Shutdown on timer - LMM - 08-26-2021

good news ! Have fun.


RE: Boot/Shutdown on timer - Badger - 08-27-2021

Have you tried wakealarm?
https://www.linux.com/training-tutorials/wake-linux-rtc-alarm-clock/

This works on Armbian


RE: Boot/Shutdown on timer - captainmorgan - 08-27-2021

(08-27-2021, 08:09 AM)Badger Wrote: Have you tried wakealarm?
https://www.linux.com/training-tutorials/wake-linux-rtc-alarm-clock/

This works on Armbian

I haven't tried it, looks promising though.


RE: Boot/Shutdown on timer - Nikolay_Po - 11-01-2023

Have found this topic when tried to program a wake-up of mine RockPro64 SBC. Nowadays it is not a problem with current kernels. The support for Rockchip RK808 clock is present:

Nov  1 20:17:01 littleserver kernel: [    5.220800] rk808-rtc rk808-rtc: registered as rtc0
Nov  1 20:17:01 littleserver kernel: [    5.221380] rk808-rtc rk808-rtc: setting system clock to 2023-11-01T17:16:49 UTC (1698859009)

And these instructions are relevant and working:
https://www.linux.com/training-tutorials/wake-linux-rtc-alarm-clock/

I was able to shut down then wakeup an SBC by these commands:
Code:
echo `date '+%s' -d '+ 5 minutes'` > /sys/class/rtc/rtc0/wakealarm
shutdown -h now

Then my SBC gone power off then woken-up after 5 minutes plus bootup time.
HTH