New official plugin: Wake-on-LAN

As of this week, the Fonosfera repository contains an brand new plugin: The Wake-on-LAN plugin, which can be used to remotely power on Wake-on-LAN capable machines on your local network, using the Fonera webinterface.

This plugin was inspired by a previous Wake-on-LAN plugin, created by one of our users and amended by a few others. Due to technical reasons (the user interface code did not use cbi), this plugin does not share any code with the original plugin, but it did inspire us to create this new plugin.

Wake-on-LAN interface

This is still a first version of this plugin, so we welcome people testing it and providing feedback. The plugin can be installed by downloading it from our firmware autobuilder and uploading it again through the Applications page of the Fonera webinterface. The plugin can be downloaded here:

Installing an application like this requires a DEV firmware. This plugin has been tested on 2.3.7.0 rc2, but I expect it will work on 2.3.6.x as well. After the 2.3.7.0 final release is out and this plugin is tested well enough, it will become available on the Applications page for a one-click install, just like the other official plugins.

Note that the plugin is still missing a proper icon, so it now has a temporary (ugly) icon instead.

Update 2013.03.13: Version 1.0.2 adds a proper icon and is now listed in the “Applications” page of the Fonera 2.0 dashboard and can be installed automatically by just clicking the “plus” icon. You’ll need at least firmware 2.3.7.0 for this, but it should work both in DEV and normal mode.

Setting up computers
To wake up a computer, it needs to support Wake-on-LAN (also known as “Magic Packet”) and have it enabled as well. Most modern computers support WOL, but it is often disabled by default. Often, a BIOS option named “Wake-on-LAN”, “Magic Packet”, or “PCI device wakeup” needs to be enabled, but usually you’ll also need to change some settings within your operating system. See this posting for some details on what to change. Rumour has it that Windows 7 needs some additional changes, see this posting for details.

Setting up the Fonera
After installing the application through the Applications page, you can access the WOL interface through the icon on the dashboard. To power on a computer, you’ll need to know its MAC address. You can add the MAC address to the top list, choose an arbitrary name so you can keep the various MAC addresses apart and click “Power On” to send the Magic Packet. If you already set up a static (DHCP) address assignment for the computer, you can directly click “Power on” in the bottom list (go to Settings -> Network to edit the bottom list).

If you test this plugin, let me know if it works for you, or if you have problems!

Update: I’ve updated the links above to point to version 1.0.1 of this plugin. This version should now also work on 2.0g and fixes a bug where your list of MAC addresses would be deleted when uninstalling the plugin or overwritten during plugin install. If you have the first version (1.0) installed and have a big list of MAC addresses that you want to preserve, you should make a backup of the /etc/config/luci_wol file manually before upgrading to this new version.

26 Responses to “New official plugin: Wake-on-LAN”

  1. mounier Says:

    Fonera 2.0n Firmware (v2.3.7.0 beta 3) —–
    * Based on OpenWrt – http://openwrt.org
    * Powered by FON – http://www.fon.com
    marche tres bien
    interface nickel
    merci

  2. jocarta Says:

    Hi, first, sorry for my english :(

    I’ve tried in my fonera 2.0g but didn’t work.

    After that, I’m trying with my laptop using package “wakeonlan” in Debian and wakeonlan works fine.

  3. mounier Says:

    je vais tester sur la 2g a la fin du mois
    je te tien au courant
    cordialement

  4. Matthijs Says:

    @Jocarta, I’ve found the problem on 2.0g, thanks for reporting. I’m preparing a fix now, stay tuned.

    @mounier, Could you try commenting in English instead? That makes it easier for everyone to understand you :-)

  5. mounier Says:

    ok but I go by the translator

  6. Matthijs Says:

    @jocarta, I updated the post to point at a new version of the plugin which should work on 2.0g. Note the remarks I added at the end of the post as well.

    @mounier, Thanks!

  7. mounier Says:

    I super test before the end of the month on 2G

  8. JazzyJ Says:

    Works for me thanks, I think it may be better if the current display was more of a config section, to add remove PCs, etc and then there was a single icon or more polished display to wake devices.. But I’m just picky and it’s better than my attempt :)

  9. wild-soft Says:

    I made a nicer icon for the plugin and hope you like it.

    Copy it to your fonera:
    cd /www/luci-static/resources/icons/plugins
    rm wol.png
    wget http://www.wild-soft.com/fonera/wol.png

  10. mounier Says:

    tres bien!
    and how to replace it?
    thank you

  11. mounier Says:

    ok I changed it with 7-Zip

  12. mounier Says:

    not after, impossible to install
    how to change the icon?
    thank you

  13. Barbon Says:

    Do a scanner plugin for hardware scanner…. :(

  14. wild-soft Says:

    @mounier
    connect to your fonera via ssh

    change to the directory with the icon with:
    cd /www/luci-static/resources/icons/plugins

    remove the old icon:
    rm wol.png

    and copy the new one to your fonera:
    wget http://www.wild-soft.com/fonera/wol.png

    wait a secont and you will see the icon instead the wol letters

  15. mounier Says:

    salvation
    with putty?
    I do not know
    thank you for guiding me

  16. Matthijs Says:

    @mounier, please just wait for the final version of this plugin, which will include a proper icon. This discussion is getting too much off-topic now.

  17. tman Says:

    Matthijs, i tried this plugin, added 2 macs and it worked. But later I wanted to delete the first entry and did not deleted. Then tried to add another mac and not worked.

    And a suggestion: could you add a name field, to be able to give names to macs like my server, my laptop and so on? Otherwise I have to go with a list of macs out there :-)

    Good work, thanks !

  18. Matthijs Says:

    @tman, I just tried adding a few macs and deleting them again, which worked as expected.

    Also, this plugin already offers a “name field”. Perhaps you’re still using an old version of the plugin, or some part of it stuck around on your Fonera? Just to be sure, I added a screenshot to the post above, showing how the interface should look.

  19. tman Says:

    Matthijs, sorry, I have installed it using a wrong download link. Now I have tried 1.0.1 and it works fine ! Thanks !

  20. Uzair Says:

    Hello

    I’m posting here the first time, I hope someone can help me.
    I wanted to know, how do I install Wake-on-LAN plugin on my Fonera 2.0n router.

    Thanks

  21. Matthijs Says:

    @Uzair, to install, you’ll need to run a DEV version of the firmware, which allows installing plugins from a downloaded file. For example, the DEV version of the latest 2.3.7.0 firmware can be downloaded here: http://download.fonosfera.org/LATEST/fonera2.0n-FON2300/FON2303_2.3.7.0_DEV.tgz You can install that firmware by uploading it through the “Settings” -> “System” page of your Fonera dashboard.

    Then, you can download the plugin using the links in the post above, which will give you a .tar.gz file. This file can be installed also through the dashboard, but now on the “Applications” page (directly from the dashboard).

    I hope this helps!

  22. Hans Says:

    I think Twitter is down again? They have been changing things again.
    Can someone please confirm/denial ?

  23. Tommaso Says:

    With the latest stable firmware set in bridge mode wol works perfectly thanks :)

  24. dllud Says:

    Works like a charm. Thanks!

  25. Reloweb Says:

    Hi! Where can I found some documentation about creating new custom plugin for the fonera 2.0n?

  26. Matthijs Says:

    @Hans, Twitter indeed changed their API, but this was fixed in the 2.3.7.1 release

    @reloweb, there is no real documentation for this, unfortunately. You could have a look at the way the official plugin packages are defined, as wel as the code that turns them into a .tar.gz file. Looking at the actual tarballs for the official plugins might also help?

Leave a Reply

Please read the comment policy before posting a comment.