Waking OMV server from sleep mode, for scheduled recordings.

  • I have been using OMV for a few months now and am getting on really well with it but for one thing:


    I am trying to get the server to go to sleep when idle for 30 minutes but then resume from sleep for recordings that have been schedule via TVHeadend.


    Is there any easy way to achieve this, via one of the plugins, or this is the only way? https://github.com/git-developer/autosuspend


    I would be really grateful for any advice.

    • Offizieller Beitrag

    You can use the autoshutdown plugin. As for waking the machine at certain time, you can use RTC wake.
    So basically before shutting down, you need a script that checks the next tv schedule see how much ahead of time is it and proceed to set the RTC wake alarm based on the time difference.
    If you have a another low power linux server 24/7 (rpi), maybe you can use it to send wol packets to the main server at scheduled times.


    https://www.linux.com/learn/wake-linux-rtc-alarm-clock

  • Thank you for that.


    I can see that breaking it down into two parts makes a lot of sense.


    Autoshutdown looks perfect for putting the server into sleep mode after a certain time.


    Unfortunately, I don't have any 24/7 raspberry Pis up and running like that, so if would have to be the server itself.


    How easy would it be to write a script to do what you have advised? Does the link I posted above act as a useful guide for me cutting and pasting anything?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!