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!
--
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.
--
...
case "$1" in
start)
echo "Starting $0"
....
echo 37 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio37/direction
echo 1 > /sys/class/gpio/gpio37/value
;;
stop)
echo "Stopping $0"
;;
esac
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/direction
echo 1 > /sys/class/gpio/gpio37/value
;;
stop)
echo "Stopping $0"
;;
esac
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/direction
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 helpAvailable 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 GetPowerRecoveryState128For the next release scheduled power up will also be available.
dns320l-daemon -x EnablePowerRecovery echo 37 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio37/direction
echo 1 > /sys/class/gpio/gpio37/value
add to script dns320l-daemon -x EnablePowerRecovery
However, this can be tested by rebooting and rundns320l-daemon -x GetPowerRecoveryState
P.S.I'v tested. After reboot status PowerRecovery is the same.