[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130118001214.GA21137@xanatos>
Date: Thu, 17 Jan 2013 16:12:14 -0800
From: Sarah Sharp <sarah.a.sharp@...ux.intel.com>
To: linux-usb@...r.kernel.org, netdev@...r.kernel.org,
Petko Manolov <petkan@...rs.sourceforge.net>
Cc: Alan Stern <stern@...land.harvard.edu>, Greg KH <greg@...ah.com>,
Oliver Neukum <oliver@...kum.org>
Subject: Wake on LAN for USB ethernet?
Is it reasonable to expect that Wake on LAN works if the target box is
connected via a USB-to-ethernet adapter?
One of my validation testers has a USB ethernet device that successfully
wakes up Windows from hibernate (S4), but it doesn't work under Linux.
Wake on LAN works fine with the hardwired ethernet port. USB remote
wakeup from S3/S4 works fine with a USB keyboard.
So I need to figure out if it's an issue with the kernel, their test
suite, or the USB host controller.
I've experimented with USB ethernet devices with the pegasus driver with
no success. Here's what I've tried:
1. Connect the USB to ethernet adapter to the rootport under the xHCI
(USB 3.0) host controller. (lsusb for the two devices I've tried is
attached)
2. Enable remote wakeup for all devices (including the PCI host) by
echoing 'enabled' to power/wakeup. (script for that attached)
3. Use ethtool to turn on WOL:
sudo ethtool -s ethX wol g
4. Find the MAC address by running ifconfig and looking at the HWaddr
field.
5. Verify with wireshark that I can see the Magic WOL packet when I run
this command on another machine:
sudo etherwake -i ethX macaddr
6. Suspend or hibernate the target machine, and then send the Magic WOL
packet from a second machine.
Am I missing any steps in testing this? Does WOL just not work for USB
ethernet devices under Linux? Perhaps just the pegasus driver doesn't
support WOL?
Note that I can't currently test USB remote wakeup for any devices under
the EHCI host controller on my Lenovo x230. For some reason, whenever I
enable remote wakeup for the rate matching hub under the EHCI host, the
system will immediately resume when I attempt to suspend it. Don't know
why yet.
Sarah Sharp
Download attachment "enable-usb-remote-wakeup.sh" of type "application/x-sh" (274 bytes)
View attachment "belkin-pegasus-lsusb.txt" of type "text/plain" (2418 bytes)
View attachment "smc-pegasus-lsusb.txt" of type "text/plain" (2392 bytes)
Powered by blists - more mailing lists