Recommended Posts

Hello,

 

since WOL has not worked for me out-of-the box, I decided to create this thread where we can share experience on this topic.

 

For some reason activating WOL over the GUI (Control Panel|Hardware) fails and does not have any effect. If WOL is supported by your HW configuration this is how you should get it running (DSM4.2):

 

Prerequisite:

• Find out the real MAC address of your Ethernet adapter (not the faked one by xpenology!) e.g. by booting linux/win form liveCD

• Enable WOL options corresponding to your HW in BIOS

 

1. Activate the WOL setting on your Ethernet adapter:

a. Enable SSH service (Control Panel|Terminal) and login (e.g. via putty) as root with admin password

b. Run following command: “ethtool -s eth0 wol g” (assumed eth0 is your Ethernet adapter)

2. Power off your system as usual

3. Now wake-up your system by sending a WOL magic packet using the REAL MAC address of your Ethernet adapter. There are many tools over internet which can do this; such a functionality is integrated in some router’s FW (e.g. dd-wrt)

 

Your system should boot up normally -this worked for me on two different systems. Now I am searching for a good way how to persist this setting in synology.

As a work-around you can set up a task (executing the above command) with DSM 4.2’s integrated Task Scheduler or via the 3rd party “Cronjob Editor” which is periodically executed once the system has booted.

 

Have fun!

Link to post
Share on other sites
  • 2 weeks later...
Now I am searching for a good way how to persist this setting in synology.

Have fun!

 

Voici la solution:

 

On se loggue avec Putty sur le DSM avec root comme user et le pwd d'admin.

On va dans /etc avec cd .. puis cd etc

On crée le fichier rc.local avec la commande Touch rc.local

On ouvre avec VI le fichier rc.local et on y met la commande suivante ethtool -s eth0 wol g

On sauve puis on redémarre le PC.

On réveille le pc en envoyant le paquet à l'adresse mac du DSM pas celle de la carte réseau du PC.

 

Georges

Link to post
Share on other sites
  • 2 weeks later...
My N36L get perfect WOL with the help from chinese forum:

http://nas1.cn/thread-64278-1-1.html

1. modify the /etc/synoinfo.conf wol_enabled_options=“” and eth0_wol_options="" to "g"

2. put the attached file to /usr/syno/etc/rc.d/ and give the file execuable permission。[attachment=0]S99ZZZ_Shutdown.rar[/attachment]

reboot and enjoy

 

Works perfectly on a N40L. Thanks!

Link to post
Share on other sites
My N36L get perfect WOL with the help from chinese forum:

http://nas1.cn/thread-64278-1-1.html

1. modify the /etc/synoinfo.conf wol_enabled_options=“” and eth0_wol_options="" to "g"

2. put the attached file to /usr/syno/etc/rc.d/ and give the file execuable permission。[attachment=0]S99ZZZ_Shutdown.rar[/attachment]

reboot and enjoy

 

Works perfectly on a N40L. Thanks!

 

Where find : "/var/packages/shutdown_script/DSShutdown.sh" ?

Link to post
Share on other sites
My N36L get perfect WOL with the help from chinese forum:

http://nas1.cn/thread-64278-1-1.html

1. modify the /etc/synoinfo.conf wol_enabled_options=“” and eth0_wol_options="" to "g"

2. put the attached file to /usr/syno/etc/rc.d/ and give the file execuable permission。[attachment=0]S99ZZZ_Shutdown.rar[/attachment]

reboot and enjoy

 

Works perfectly on a N40L. Thanks!

 

Where find : "/var/packages/shutdown_script/DSShutdown.sh" ?

 

It is already there. There is nothing else that you need to do.

 

Side note, there is a weird bug. In order to keep using the WOL future the NAS has to be turned off by the iPhone DS Finder app? Everytime I turn the NAS off in the webinterface WOL doesn't work until I shut it down through the app... Could anyone confirm this?

Link to post
Share on other sites
  • 1 month later...
My N36L get perfect WOL with the help from chinese forum:

http://nas1.cn/thread-64278-1-1.html

1. modify the /etc/synoinfo.conf wol_enabled_options=“” and eth0_wol_options="" to "g"

2. put the attached file to /usr/syno/etc/rc.d/ and give the file execuable permission。[attachment=0]S99ZZZ_Shutdown.rar[/attachment]

reboot and enjoy

Jason,

 

Since the N36L does not support S3 sleep, what state are you waking your machine up from over the LAN? And how do you get it to go into that state in the first place

 

Thanks.

Link to post
Share on other sites
  • 2 months later...
My N36L get perfect WOL with the help from chinese forum:

http://nas1.cn/thread-64278-1-1.html

1. modify the /etc/synoinfo.conf wol_enabled_options=“” and eth0_wol_options="" to "g"

2. put the attached file to /usr/syno/etc/rc.d/ and give the file execuable permission。[attachment=0]S99ZZZ_Shutdown.rar[/attachment]

reboot and enjoy

Works great on HP N54L.

MAC address has to match the real NIC's MAC address and WOL enabled in the BIOS.

Synology Assistant wakes it up perfectly.

Link to post
Share on other sites

Hi,

 

I applied this modification to validate WOL on my DSM4.2 . But now my xpenology does not boot anymore. I have no network access to see what happens via putty. I would like to know how to remove this modification ?

 

Tanks for your help.

 

Patrice

Link to post
Share on other sites
  • 3 weeks later...
Hello,

 

since WOL has not worked for me out-of-the box, I decided to create this thread where we can share experience on this topic.

 

For some reason activating WOL over the GUI (Control Panel|Hardware) fails and does not have any effect. If WOL is supported by your HW configuration this is how you should get it running (DSM4.2):

 

Prerequisite:

• Find out the real MAC address of your Ethernet adapter (not the faked one by xpenology!) e.g. by booting linux/win form liveCD

• Enable WOL options corresponding to your HW in BIOS

 

1. Activate the WOL setting on your Ethernet adapter:

a. Enable SSH service (Control Panel|Terminal) and login (e.g. via putty) as root with admin password

b. Run following command: “ethtool -s eth0 wol g” (assumed eth0 is your Ethernet adapter)

2. Power off your system as usual

3. Now wake-up your system by sending a WOL magic packet using the REAL MAC address of your Ethernet adapter. There are many tools over internet which can do this; such a functionality is integrated in some router’s FW (e.g. dd-wrt)

 

Your system should boot up normally -this worked for me on two different systems. Now I am searching for a good way how to persist this setting in synology.

As a work-around you can set up a task (executing the above command) with DSM 4.2’s integrated Task Scheduler or via the 3rd party “Cronjob Editor” which is periodically executed once the system has booted.

 

Have fun!

I got this when I tried ethtool -s eth0 wol g

 

"Cannot get current wake-on-lan settings: Operation not permitted

not setting wol"

Link to post
Share on other sites
  • 1 month later...

Hello,

Using Trantor distrib of DMS4.2, i do not have DSShutdown.sh anywhere on the disk (do not even have a package directory)

And if i install the S99ZZZShutdown.sh script, then the machine is no more reachable when powering up. I have unplug/replug the ethernet cable to reach it.

So, i do not know what to do more: WOL does not work :sad:

Link to post
Share on other sites

The only thing you have to do in my humble opinion is to find the REAL (hardware) MAC-adres and then every WOL-command wil work. (If in BIOS enabled and the NIC support it)........................the only trick is HOW to find the REAL MAC-adres?................................well, you can find it trough : /var/dmesg (via putty/SSH of course)

 

For example write it to : /var/dmesg >readme

then open the file readme for example with the VI-editor and search for "mac" (/mac ) and you will find the real Mac-adres.

something like :

4.670955] tg3 0000:02:00.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18

[ 4.671048] tg3 0000:02:00.0: setting latency timer to 64

[ 4.722294] pcieport 0000:00:06.0: eth0: Tigon3 [partno(BCM95723) rev 5784100] (PCI Express) MAC address 38:ba:ae:a0:fe:d8

[ 4.722378] pcieport 0000:00:06.0: eth0: attached PHY is 5784 (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[0])

[ 4.722421] pcieport 0000:00:06.0: eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]

[ 4.722462] pcieport 0000:00:06.0: eth0: dma_rwctrl[76180000] dma_mask[64-bit]

[ 4.732906] bromolow_synobios: module license 'Synology Inc.' taints kernel.

Write down the MAC-adres, then quit the VI-editor (:q!)

 

The output of dmesg is a list of kernelmessages so.................

 

Best regards,

Léon

 

To get a 10 you could also change the MAC-adres in the Vender file (with a HEX-editor) so that even the DSM-software will output the wright MAC.

Link to post
Share on other sites
  • 3 weeks later...

Hello,

I use WinSCP to have the access to system files.

At the first log with SCP protocol, I have a first error message "-sh: groups: not found , but after OK I have the access to the folder.

But when I want to save the synoinfo.conf file after modification I have the same message and scp: /etc/synoinfo.conf: Permission denied.

If someone could help me :wink:

Thanks a lot

Link to post
Share on other sites
  • 2 weeks later...
Hello,

I use WinSCP to have the access to system files.

At the first log with SCP protocol, I have a first error message "-sh: groups: not found , but after OK I have the access to the folder.

But when I want to save the synoinfo.conf file after modification I have the same message and scp: /etc/synoinfo.conf: Permission denied.

If someone could help me :wink:

Thanks a lot

 

Did you find your answer and get it working?

 

You need to login with SCP using the username "root" and not the name used to login to DSM, password remains the same as you created at setup.

Link to post
Share on other sites
  • 2 weeks later...
Hello,

I use WinSCP to have the access to system files.

At the first log with SCP protocol, I have a first error message "-sh: groups: not found , but after OK I have the access to the folder.

But when I want to save the synoinfo.conf file after modification I have the same message and scp: /etc/synoinfo.conf: Permission denied.

If someone could help me :wink:

Thanks a lot

 

Did you find your answer and get it working?

 

You need to login with SCP using the username "root" and not the name used to login to DSM, password remains the same as you created at setup.

 

Thank you for the information. That was exactly the answer I was looking for.

Link to post
Share on other sites
  • 5 weeks later...
  • 2 months later...

Hi, I have activated WakeOnLan on BIOS on my DSM 4.3..

 

I have changed my /etc/synoinfo.conf:

 

wol_enabled_options=“” to wol_enabled_options=“g”

eth0_wol_options="" to eth0_wol_options="g"

 

And then i have put S99ZZZ_Shutdown.sh on /etc/syno/etc/rc.d and "chmod +x S99ZZZ_Shutdown.sh"

 

And i can wake up my N54L locally but not connected to another outside network..

 

What have I to do to can wake up on wan? open udp 9 port is the only thing to do? This port is open to IP N54L or broadcast address?

 

I would appreciate any help.

 

Thanks.

Link to post
Share on other sites
  • 4 months later...
  • 7 months later...

Hi all! My problem is that I can wake up my server from LAN, but there is no way to wake up from the Internet. On the other hand I can't find my original MAC address, please somebody explain me the way to define it! Which port should I use to WOL? I tried 7,9,5000. I have a asrock q1900-itx motherboard. I modified the eth0 setting and wol to "g" and added a shutdown script. I have no more idea what to check. Thanks

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.