How to enable "Power Recovery" in Alt-F?

1,091 views
Skip to first unread message

fedex2go

unread,
Jul 8, 2018, 6:07:20 AM7/8/18
to Alt-F
Dear friends, I cannot figure out how to enable "power recovery"...

Or such basic function isn't included in Alt-F? Have to move back to stock firmware if I need it?

Thank you!

João Cardoso

unread,
Jul 25, 2018, 2:06:55 PM7/25/18
to Alt-F


On Sunday, 8 July 2018 11:07:20 UTC+1, fedex2go wrote:
Dear friends, I cannot figure out how to enable "power recovery"...

Or such basic function isn't included in Alt-F? Have to move back to stock firmware if I need it?

What box model are you trolling about?
 

Thank you!

fedex2go

unread,
Jul 26, 2018, 4:35:32 AM7/26/18
to Alt-F
Cheers! I have several DNS-323 Rev.B. 

I think I made a mistake "upgrading" to Alt-F, cannot find such important feature as "power recovery". I use these devices remotely, and after power outage I'm at a complete loss, since D-Link refuses to automatically power on (and I'm unable to turn it on manually over a 100-mile distance).

Turns out that Alt-F is actually a "downgrade" for me (compared to original firmware).

Paulo Elifaz Andrielli

unread,
Jul 27, 2018, 10:28:34 AM7/27/18
to al...@googlegroups.com
Is it possible to power on remotely the DNS323, on stock firmware?

[]´s
Paulo

--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.

Nicolas Desveaux

unread,
Jul 27, 2018, 8:29:20 PM7/27/18
to al...@googlegroups.com
@fedex2go  you know there's different ways to word ideas and yours is likely the worst considering the amount of time Joao has invested in this 'long forgotten' box for FREE.

if you want to know if something can be done, just ask - no need for the 'or such basic function isn't included..' crap or 'turns out alt-f is actually a downgrade'

you're welcome to go back to stock, even if power recovery is possible I'm certainly not keen on helping a pompous ass like you.

--

Paulo Elifaz Andrielli

unread,
Jul 27, 2018, 8:34:16 PM7/27/18
to al...@googlegroups.com
Wait for him to put a 4TB or 8TB HD on his DNS323, to see the "downgrade".... :-P

[]'s
Paulo
sent from Android

Valery Sch

unread,
Aug 1, 2018, 4:13:49 PM8/1/18
to al...@googlegroups.com
As for me, I solved the problem of "power recovery" on my DNS-320L by adding such lines to the startup script:
Services -> user ->Configure [Edit]
...
case "$1" in
  start
)
  echo
"Starting $0"
 
....
  echo
37 > /sys/class/gpio/export
  echo out > /sys/class/gpio/gpio37/directi
on
  echo 1 > /sys/class/gpio/gpio37/
value
 
;;
  stop
)
  echo
"Stopping $0"
 
;;
esac




воскресенье, 8 июля 2018 г., 12:07:20 UTC+2 пользователь fedex2go написал:

João Cardoso

unread,
Aug 2, 2018, 11:30:28 AM8/2/18
to Alt-F


On Wednesday, 1 August 2018 21:13:49 UTC+1, Valery Sch wrote:
As for me, I solved the problem of "power recovery" on my DNS-320L by adding such lines to the startup script:
Services -> user ->Configure [Edit]
...
case "$1" in
  start
)
  echo
"Starting $0"
 
....
  echo
37 > /sys/class/gpio/export
  echo out > /sys/class/gpio/gpio37/directi
on
  echo 1 > /sys/class/gpio/gpio37/
value
 
;;
  stop
)
  echo
"Stopping $0"
 
;;
esac



 
That is already done at /etc/init.d/rcS for the DNS-325 and the DNS-320-rev-Ax (from Lentin site, see the credits at https://sites.google.com/site/altfirmware)
For the DNS-320-rev-Bx/320L/327L models, there is a specific daemon for that, (credits to A. Böhlr)

[root@DNS-320L]# 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.

[root@DNS-320L]# dns320l-daemon -x GetPowerRecoveryState
128

For the next release scheduled power up will also be available.

Valery Sch

unread,
Aug 2, 2018, 2:51:42 PM8/2/18
to al...@googlegroups.com


четверг, 2 августа 2018 г., 17:30:28 UTC+2 пользователь João Cardoso написал:


On Wednesday, 1 August 2018 21:13:49 UTC+1, Valery Sch wrote:
As for me, I solved the problem of "power recovery" on my DNS-320L by adding such lines to the startup script:
Services -> user ->Configure [Edit]
...

  echo 37 > /sys/class/gpio/export
  echo out > /sys/class/gpio/gpio37/directi
on
  echo 1 > /sys/class/gpio/gpio37/
value

That is already done at /etc/init.d/rcS for the DNS-325 and the DNS-320-rev-Ax (from Lentin site, see the credits at https://sites.google.com/site/altfirmware)
For the DNS-320-rev-Bx/320L/327L models, there is a specific daemon for that, (credits to A. Böhlr)

[root@DNS-320L]# 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.

[root@DNS-320L]# dns320l-daemon -x GetPowerRecoveryState
128
For the next release scheduled power up will also be available.

As I understand, 128 is turned on, and 0 is turned off PowerRecovery

Are the settings saved during reboot, or should the command
dns320l-daemon -x EnablePowerRecovery
must be executed at each reboot?
That is, instead of strings
  echo 37 > /sys/class/gpio/export
  echo out > /sys/class/gpio/gpio37/directi
on
  echo 1 > /sys/class/gpio/gpio37/
value
 
add to script
 
dns320l-daemon -x EnablePowerRecovery

However, this can be tested by rebooting and run
dns320l-daemon -x GetPowerRecoveryState

P.S.
I'v tested. After reboot status PowerRecovery is the same.

João Cardoso

unread,
Aug 8, 2018, 11:26:58 AM8/8/18
to Alt-F
For the next release those settings will be saved on flash and applied at power up. For now the only option is to use the user script for that purpose, as you propose.
Wake on Lan (WOL) will not be working, even for the next release. I think that WOL does not works on the vendor's firmware, but I'm not sure.


Bruce Hellstrom

unread,
Sep 21, 2018, 5:06:46 AM9/21/18
to Alt-F
So the settings below will not work with a DNS-323?  Is there any other solution for that device, if not?

Rodrigo Izurieta

unread,
Oct 28, 2021, 11:21:51 PM10/28/21
to Alt-F
Hi Everyone,

First, thanks very much Joao for Alt-F.  It has been a huge help it working with my DNS321.

Can anyone please point me to how I can configure power recovery (auto start after power failure)?  I am not sure I understand what functionality was finally included in the current build and I do not know how to modify the startup script, if I need to do that there
Reply all
Reply to author
Forward
0 new messages