WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Solved] Wake-on-Lan not working  (Read 7060 times)

Offline florian77

  • Newbie
  • *
  • Posts: 5
[Solved] Wake-on-Lan not working
« on: May 13, 2012, 02:29:40 PM »
Unfortunately I wasn't able to find a solution for this problem in the forum. I installed ethtool using tce-load -wi ethtool.tcz and created a file /opt/eth0.sh with the following content:

   #!/bin/sh
   ifconfig eth0 192.168.1.2 netmask 255.255.255.0 up
   route add default gw 192.168.1.1
   echo nameserver 192.168.1.1 >> /etc/resolv.conf
   ethtool -s eth0 wol g
   if (grep PCE4 /proc/acpi/wakeup | grep disabled 2>&1 >> /dev/null); then
      echo -n PCE4 > /proc/acpi/wakeup
   fi

This file is called by my bootlocal.sh. Of course, I persisted the configuration using sudo filetool.sh -b. I enabled Wake Up on PCI events on my ASROCK E350M1 motherboard, which should be good enough for wake-on-lan (and waking on keyboard strokes works too!). However, after turning off the computer invoking exitcheck.sh, the LAN's LEDs turn off and the wake-on-lan just doesn't work. Typing sudo ethtool eth0 into the bash confirms, that my network card's wol is turned to "magic packet" (g).

What did I miss?

Best regards, Florian.
« Last Edit: May 16, 2012, 04:07:14 PM by florian77 »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Wake-on-Lan not working
« Reply #1 on: May 13, 2012, 02:36:31 PM »
You need to take it up with your motherboard manufacturer.

Offline gutmensch

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 605
  • I can make it disappear, have no fear!
    • remembrance blog
Re: Wake-on-Lan not working
« Reply #2 on: May 13, 2012, 03:15:40 PM »
FWIW I also have an AsRock Mainboard (AOD790GX) whose internal GB Ethernet adapter I couldn't get to work with WOL. Same behavior as you described, USB (PCI host controller) wake up works, Ethernet doesn't. I even installed a "proprietary" Windows driver on the host OS with dozens of options, tweaked, tuned, tried everything - no way. Personally I came to the conclusion that AsRock does not enable this feature for their consumer boards - with a separate PCI GB adapter WOL works absolutely flawlessly.
If I seem unduly clear to you, you must have misunderstood what I said. (Alan Greenspan)

Offline florian77

  • Newbie
  • *
  • Posts: 5
Re: Wake-on-Lan not working
« Reply #3 on: May 15, 2012, 02:50:06 PM »
First of all: thank you for your advise. As you already indicated, my configuration was perfectly good. After digging into the details a bit using wireshark, I finally solved this issue. My WLAN router swallowed the magic packets, so they never made their way to my ASROCK mainboard. After hardwiring the sender of the magic packets, Wan-on-Lan works perfectly. As I have no idea, how to mark this thread as solved, somebody else will have to do that for me.

All the best, Florian.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11634
Re: Wake-on-Lan not working
« Reply #4 on: May 15, 2012, 07:19:25 PM »
Hi florian77
Go to your original post, click on modify, edit the subject line to mark it as solved, and click save.