LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-03-2011, 12:55 PM   #1
jlavik
LQ Newbie
 
Registered: Aug 2010
Location: St. Paul, Minnesota
Posts: 15

Rep: Reputation: 0
wake on lan stopped working


I have a laptop running Ubuntu 10.04 w/ wireless connection to desktop running Windows 7. I had it set up so I could execute a script to send a wakeonlan to the desktop. It worked fine for several weeks, but all of a sudden it stopped working. I've checked my script and it still looks good as far as I can tell. (I'm not that adept at script writing, so I wouldn't necessarily recognize a problem.) I've also checked the Windows machine to make sure the network adapter still is set to allow wake-on-lan.

Does anyone have any ideas how else to debug this problem?

BTW: my wake up script is as follows:
#!/bin/bash
wakeonlan xx:xx:xx:xx:xx:xx

Where the x's replace my actual MAC address.
 
Old 01-03-2011, 03:10 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,252

Rep: Reputation: 313Reputation: 313Reputation: 313Reputation: 313
You connect this laptop through router by wireless or your desktop PC has own wifi card? If second, then this card must have WoW (Wake On Wireless) feature. If by router: are you changed something in configuration recently? Your laptop and desktop are in the same subnet? For best, run some sniffer for ex. tcpdump on desktop and execute your script on laptop, to check what is going on.
 
Old 01-21-2011, 12:06 PM   #3
jlavik
LQ Newbie
 
Registered: Aug 2010
Location: St. Paul, Minnesota
Posts: 15

Original Poster
Rep: Reputation: 0
wake on lan still not working

OK...it took me a while to figure out how to use a sniffer, but I think I've done it. I see no sign in the captured traffic of the magic packet. Specifically, I'm watching my wlan0 interface for any UDP packets, since wakeonlan man pages say the magic packets are broadcast in UDP protocol. That tells me that the wakeonlan command isn't actually broadcasting anything. How can I figure out why and fix it?
 
Old 01-21-2011, 04:43 PM   #4
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,252

Rep: Reputation: 313Reputation: 313Reputation: 313Reputation: 313
You probably have also eth0 interface. Check all interfaces for magic packet, maybe your wakeonlan program send it through other than wlan0. You can also try other tool, for ex. ether-wake.

Last edited by eSelix; 01-21-2011 at 04:45 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wake on lan not working. is this related to acpi? andrews-mark Linux - Networking 12 07-16-2009 07:28 PM
router pc problem, internet stopped working, lan works, using rc.firewall glorsplitz Linux - Networking 4 10-09-2007 08:18 PM
wake on lan magic packet does not wake. albean Linux - Networking 1 06-30-2007 04:57 PM
LAN stopped working, XP/Debian ImperiestroMary Linux - Networking 5 12-06-2004 02:49 AM
LAN- stopped working joeey21 Linux - Networking 2 10-05-2002 10:00 PM


All times are GMT -5. The time now is 10:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration