Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a PC running Ubuntu Server 12.04. I'm having trouble getting this to wake on LAN (WoL). I'm now pretty certain I've narrowed this down to an issue with Ubuntu or the way it's configured.

The reason I say this is that if I boot the box from an Ubuntu Desktop 12.04 install disk, go into "try now" and then shut down the machine will wake on lan.

According to this link: - the command sudo ethtool eth0 should show Wake-on: g if the card is set up to wake on lan and only require ethtool -s eth0 wol g if this shows the d flag. It does not show the d flag and does show the same on both the ubuntu desktop install disk and the server. I have however tried both with and without this command being fired on the server when the network comes up and neither works.

I dont really know how to go about debugging this and figuring out why it's not working. I dont see anything in the syslog which looks useful (but I wouldn't know what to look for) and the only point at which it becomes evident that WoL is not working is when the machine is switched off!

How can I go about debugging why Ubuntu Server 12.04 is not correctly enabling WoL? What else can I look for that is different between the desktop install disk and my installed server?

share|improve this question
up vote 0 down vote accepted

Apologies for answering my own question.

This appears to have been a mistake in my /etc/netowork/interfaces file. The file was referencing an old wireless card I'd had to take out due to problems I was having with the card.

I'm guessing that something was incorrect in the /etc/network/interfaces file. I had split the auto eth0 and the iface eth0 inet dhcp... either side of the config for the wireless card by mistake.

Either way I removed the wireless config as this was no longer doing anything and WoL started to work just fine.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.