I have a Seagate NAS running Debian Bookworm. I'm unable to get it to sleep, or resume from sleep via a WOL packet like it does with the original firmware.
I searched though the original firmware and found the required code.
It doesn't actually sleep, it shuts down and can be woken by WOL.
I figured out the box needs 2 things to accomplish this - the ethtool eth0 wol needs to be set to "g", and 2 GPIOs need to be set.
Debian 12 (and perhaps earlier versions) already automatically sets eth0 WOL to g, but for the sake of completeness, this can be manually set with
Code: Select all
ethtool -s eth0 wol g
Code: Select all
echo 59 > /sys/class/gpio/export
echo 61 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio59/direction
echo out > /sys/class/gpio/gpio61/direction
echo 1 > /sys/class/gpio/gpio59/value
echo 1 > /sys/class/gpio/gpio61/value
echo 59 > /sys/class/gpio/unexport
echo 61 > /sys/class/gpio/unexport