On 2/26/2012 3:53 PM, Philip Pemberton wrote: > On 26/02/12 17:01, Joe Wronski wrote: >> Hi, >> >> In my Debian Linux 6.0 /etc/network/interfaces, I have: >> >> #allow wake on lan >> #see wiki.debian.org/WakeOnLan >> iface eth0 inet dhcp >> post-up /sbin/ethtool -s $IFACE wol g >> post-down /sbin/ethtool -s $IFACE wol g >> >> And it doesn't wake up when I send it wol magic packets. > > Oh, this is a sod to get working... I assume you've checked that Ethtool > is installed? > > Here's an extract from my local Wiki -- it's for Ubuntu, but might work > on Debian too. The troubleshooting stuff should be very useful to you :) > I've found more for other distros than debian, but it's usually helpful.=20 Debian seems to put conf files in different places than other distros,=20 maybe due to a security philosophy. Also, different vesions of software=20 move things around as I've found with gnome GDM3 trying to get it to=20 start vino-server without logging in at the machine. I know... it's a=20 security risk, and I should just ssh to the damn thing, but all I want=20 is an easy to configure XAMP server with the additional Wake on Lan=20 feature, but that's another topic. > > =3D Wake-on-LAN on Ubuntu =3D > > =3D=3D On a machine where eth0 is run in DHCP mode =3D=3D > > In /etc/network/interfaces, assuming you want to enable WoL on eth0: > > auto eth0 > iface eth0 inet dhcp > ethernet-wol g I can't find any reference to a program or command called ethernet-wol.=20 Teh gargoyle, it gives nothing. > ... other interfaces go here ... > > > =3D=3D On a machine where eth0 is run in Static mode =3D=3D > > In /etc/network/interfaces, assuming you want to enable WoL on eth0: > > auto eth0 > iface eth0 inet static > ethernet-wol g > ... static IP specs ... This is where I put the ethtool -s $IFACE wol g command. > =3D=3D To prove this works =3D=3D > > sudo ethtool eth0 > > Which should produce output similar to this: > Settings for eth0: > Supports Wake-on: pg > Wake-on: g > > Note that "Wake-on" is set to "g". "g" means 'Magic Packet', "d" means > 'Disabled'. I get the same: joe@Gateway-debian:~$ sudo ethtool eth0 Settings for eth0: Supports Wake-on: pg Wake-on: g So I know that ethtool tried to do the right thing when it booted. I=20 just don't know that thing was correct, or if something else occurs when=20 it falls asleep or shuts down. > =3D Waking up a machine =3D > > You need Etherwake: Or other tool. I say "java WakeOnLan 192.168.1.255 ". I=20 guess the IP address is there to send a broadcast message on your=20 network from the internet. I have 2 other Magic Packet senders and they=20 all work when the target is shut down from windows, as well as on Grey2,=20 the desktop. > > Best of luck -- Linux can be pretty brutal when it wants to be... I don't know how the linux driver writers do what they do. I can't find=20 any info on the qualcomm web site for any of the atheros ethernet chips=20 and can't find an 8131 at all. Even if I did, how would I learn what's=20 been written to the registers after the machine is powered down? It's about 70 watts to leave it on full time, and that would add over=20 10% to my light bill. I guess I can let it go to sleep and walk over=20 and hit the on switch when needed. Joe W --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .