Boot/Shutdown on timer
#1
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.
  Reply
#2
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.
  Reply
#3
(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?
  Reply
#4
(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).
  Reply
#5
(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!
  Reply
#6
good news ! Have fun.
  Reply
#7
Have you tried wakealarm?
https://www.linux.com/training-tutorials...arm-clock/

This works on Armbian
  Reply
#8
(08-27-2021, 08:09 AM)Badger Wrote: Have you tried wakealarm?
https://www.linux.com/training-tutorials...arm-clock/

This works on Armbian

I haven't tried it, looks promising though.
  Reply
#9
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...arm-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
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question How do I compile an arbitrary kernel for U-Boot? Valenoern 3 1,016 06-16-2023, 10:54 AM
Last Post: CounterPillow
  RockPro64 boot questions misterc 3 1,488 01-13-2023, 06:21 PM
Last Post: misterc
  Is some u-boot required on the SPI for installing debian with the official installer? callegar 1 1,284 10-25-2022, 10:07 AM
Last Post: ratzzupaltuff
  How I Got Fedora Linux to Boot From eMMC (or microSD, for that matter) whitecat23 4 4,105 01-03-2022, 10:32 AM
Last Post: whitecat23
  Overlays not loading at boot - ROCKPRO64 on Armbian rookieone 0 1,283 09-28-2021, 04:10 AM
Last Post: rookieone
Question cannot boot openSUSE - what am I doing wrong? Mentaluproar 2 2,367 08-12-2021, 04:58 AM
Last Post: igorp
  Other boot options than Sdcard for linux 5.x kernel? MisterA 2 2,920 07-14-2021, 02:37 PM
Last Post: TRS-80
  Official Debian release won't boot!?! Faradn 4 6,582 07-06-2020, 09:29 AM
Last Post: Bullet64
  Mainline U-Boot with Arch Linux PKGBUILD mmatyas 0 1,986 04-17-2020, 03:49 AM
Last Post: mmatyas
  Ayufan 5.4.0 rc1 release - cannot boot Mentaluproar 2 5,044 01-05-2020, 02:39 PM
Last Post: mmiigg

Forum Jump:


Users browsing this thread: 1 Guest(s)