DNS-323, Alt-f, Timed shutdown and restart

1,525 views
Skip to first unread message

petrus_muc

unread,
Oct 12, 2015, 6:13:16 AM10/12/15
to Alt-F

Hi All,

in order to save power is it possible to configure a timed shutdown and restart of a DNS-323 running Alt-f ?

As my box isn't used during the night it a possibility would be nice to, say, shutdown (hibernate) the box at 01:00 and restart it at 09:00.
Sniffing around at Google didn't dig up any result.
Is there a package available which would do exactly this ?

Thanks in advance for help and good tips !

Peter

João Cardoso

unread,
Oct 12, 2015, 10:02:00 AM10/12/15
to Alt-F


On Monday, 12 October 2015 11:13:16 UTC+1, petrus_muc wrote:

Hi All,

in order to save power is it possible to configure a timed shutdown

This has been addressed here, Services->System->cron
 
and restart of a DNS-323 running Alt-f ?

This has also been addressed here or in the Ticked requests at sourceforge. No, you can't do a timed power up

Themistocles Papassilekas

unread,
Oct 12, 2015, 12:49:17 PM10/12/15
to Alt-F
Of course powering up is not possible I guess, but for such a shutdown (which I'd like to), cron is not enough I think. It'd be nice if it could have conditions, like time>12am and inactive>20min then shut down...

petrusmuc28

unread,
Oct 12, 2015, 12:57:48 PM10/12/15
to al...@googlegroups.com

You are correct ! At least a timed shutdown would be nice, possibly with a means of watching the box activity (e.g. during a backup) and shutting it down (with a suitable delay) after the backup is completed, whatever comes first (set time or stop of supervised activity)
Unfortunate that a timed start isn't possible !

BR  Peter

Axtux -

unread,
Oct 12, 2015, 3:51:09 PM10/12/15
to Alt-F
Hello,

Is there any way we can boot the system on power recovery ? The original firmware can do this and it is really useful. We don't need physical access to the NAS, even after power outage.

Regards,
Axtux

João Cardoso

unread,
Oct 13, 2015, 2:08:26 PM10/13/15
to Alt-F
In contrast to a PC with a keyboard and mouse, it's difficult to know when a server is inactive.
The disk drives spin down are an example -- the drives will standby *himself* when not accessed by more than NN minutes. You can create a script, running from memory (/tmp) not disk, and use that info to power off the system.
Each use case is different, rules can't be devised for all needs. Remember that even a simple cron job might be sufficient to keep the drives active.

To monitor the disk status you can use 'hdparm -C /dev/sda' (and/or sdb) and decide if you should power off using the 'poweroff' command.
Or you can monitor the power led status, that goes off when both drives are in standby obeying the Specified Spindow Timeout in Disk->Utilities; 'cat /tmp/sys/power_led/brightness' prints '0' in this case

João Cardoso

unread,
Oct 13, 2015, 2:16:26 PM10/13/15
to Alt-F


On Monday, 12 October 2015 20:51:09 UTC+1, Axtux - wrote:
Hello,

Is there any way we can boot the system on power recovery ? The original firmware can do this

This topic subject says DNS-323, don't you have a DNS-320L?
In any case search the project sourceforge tickets requests for this.
 
and it is really useful. We don't need physical access to the NAS, even after power outage.

DNS-320/320L/325/327, not the 323 (except the rev-C1 boards, how-to is unknown or nobody care to discover/share how to)
 

Regards,
Axtux

Axtux -

unread,
Oct 13, 2015, 9:25:15 PM10/13/15
to Alt-F

Yes, I own DNS-320L. I looked for such features but didn't find anything useful. That's a pity as original FW is doing it right (only thing it is doing right though).
 

Regards,
Axtux

Themistocles Papassilekas

unread,
Oct 14, 2015, 2:10:11 AM10/14/15
to al...@googlegroups.com
Ah, thanks for your explanation. Yes, it does make much sense, though it's a pity...


____________________
Sent from my CPC464 using AmsMail



--
You received this message because you are subscribed to a topic in the Google Groups "Alt-F" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/alt-f/6yw3CPYlb8Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to alt-f+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.

João Cardoso

unread,
Oct 14, 2015, 11:57:47 AM10/14/15
to Alt-F

Axtux -

unread,
Oct 14, 2015, 7:16:45 PM10/14/15
to Alt-F


On Wednesday, October 14, 2015 at 5:57:47 PM UTC+2, João Cardoso wrote:


I saw those feature requests but the first one is about waking up by timer. Nothing about power recovery. Maybe you could set a timer every minute and see if that still works after power recovery ?

The second one says that it's not hardware supported. I own DNS-320L HW A2 and I can tell you this feature is working with original FW.

I can make some work if you give me some tips about it. It's the only feature I'm missing on my NAS. Everything else seems so wonderful with Alt-F.

Regards,
Axtux

Joao Cardoso

unread,
Oct 14, 2015, 7:57:59 PM10/14/15
to Alt-F


On Thursday, October 15, 2015 at 12:16:45 AM UTC+1, Axtux - wrote:


On Wednesday, October 14, 2015 at 5:57:47 PM UTC+2, João Cardoso wrote:


I saw those feature requests but the first one is about waking up by timer. Nothing about power recovery.

You should use the  'dns320l-daemon' for power-recovery settings:

[root@DNS-327L]# dns320l-daemon -x help
Available Commands:

DeviceReady, DeviceShutdown, ShutdownDaemon, EnablePowerRecovery, DisablePowerRecovery, GetPowerRecoveryState, EnableWOL, DisableWOL, GetWOLState, SetFanStop, SetFanHalf, SetFanFull, PowerLedOn, PowerLedOff, PowerLedBlink, ReadRtc, systohc, hctosys, GetTemperature, help, quit.

I have not tested it myself.
Remember that Alt-F itself uses some of these features, and that you must know what you are doing when using the command line.

Maybe you could set a timer every minute and see if that still works after power recovery ?

The second one says that it's not hardware supported.

That refers to the DNS-323. Remember that Alt-F works on the DNS-320/320L/321/323/325 (and "soon" the 327L), and each one has its own pecularities.. That's why is so important to always saying what model and hardware revision we are talking about.

Axtux -

unread,
Oct 15, 2015, 9:38:25 PM10/15/15
to Alt-F


On Thursday, October 15, 2015 at 1:57:59 AM UTC+2, Joao Cardoso wrote:


On Thursday, October 15, 2015 at 12:16:45 AM UTC+1, Axtux - wrote:


On Wednesday, October 14, 2015 at 5:57:47 PM UTC+2, João Cardoso wrote:


I saw those feature requests but the first one is about waking up by timer. Nothing about power recovery.

You should use the  'dns320l-daemon' for power-recovery settings:

[root@DNS-327L]# dns320l-daemon -x help
Available Commands:

DeviceReady, DeviceShutdown, ShutdownDaemon, EnablePowerRecovery, DisablePowerRecovery, GetPowerRecoveryState, EnableWOL, DisableWOL, GetWOLState, SetFanStop, SetFanHalf, SetFanFull, PowerLedOn, PowerLedOff, PowerLedBlink, ReadRtc, systohc, hctosys, GetTemperature, help, quit.

I have not tested it myself.
Remember that Alt-F itself uses some of these features, and that you must know what you are doing when using the command line.

That worked, you're just awesome ! I'm looking for this for quite some time and never found.

Regards,
Axtux
Reply all
Reply to author
Forward
0 new messages