You are not logged in.

#1 2008-01-31 13:02:58

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

wake on lan (wol), uswsusp and 8139too

hello,
i want to get wake-on-lan working with uswsusp (or pm-utils, both don't work). when i halt the computer (like described here: http://gentoo-wiki.com/Wake_on_lan#Manual_method) and sent a magic packet with "wol", the computer starts, but when i suspend through "s2disk" (or pm-hibernate or "echo disk > /sys/power/state") the network card settings get somehow erased so it does not receive the magic packet.
what i've done so far:

1.) ethtool -s eth0 wol g
2.) in my /etc/modprobe.conf i have: "install 8139too /sbin/modprobe  -i 8139too; ethtool -s eth0 wol g"
3.) echo -n PCI1 > /proc/acpi/wakeup # (to get: "PCI1      S4     enabled")
4.) echo -n shutdown > /sys/power/disk # (default is platform)

for shutting down the computer the first and third entry and then simply running "halt" did the trick, but for hibernating it simply doesn't wnat to work. i've tried every combination of things above. nada!
i've also tried this https://lists.linux-foundation.org/pipe … 10472.html:

Rmmod 8139 driver before suspend and use shutdown, not platform, mode

that also didn't work (no driver, no interface).
there are thousands of howtos out there, but most of them concentrate on shutting down not hibernating the computer.

wol is a really nice feature. i often use ssh, my computer is always running when i'm not at home. and i want to use hibernate.
using wol would save a lot of power.
my network card:

Ethernet controller: D-Link System Inc RTL8139 Ethernet (rev 10)
Subsystem: D-Link System Inc DFE-528TX 10/100 Fast Ethernet PCI Adapter

though lshwd says:

  8139too         : D-Link System Inc.|DFE 530 TX+ Fast Ethernet Adapter

any other suggestions or hints?
please...

vlad

ps: and no, i don't want to use tuxonice.

Last edited by DonVla (2008-01-31 13:28:11)

Offline

#2 2008-02-01 02:48:17

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: wake on lan (wol), uswsusp and 8139too

i think the problem is that when hibernating the system is powered off by:

poweroff  -d -f -h -i

with flags:

-d     Don't write the wtmp record. The -n flag implies -d
-f     Force halt or reboot, don't call shutdown(8)
-i     Shut down all network interfaces just before halt or reboot
-h     Put all harddrives on the system in standby mode just before halt or poweroff

i want to get rid of the -i flag. i don't know how to change this. there is no such configure option for uswsusp.
where can i change this for pm-utils if possible.
oh, as i see poweroff is a symlink to halt.
now i'm totally confused...

vlad

EDIT:
gentoo has this

RC_DOWN_INTERFACE="no"

entry which, as a friend of mine using gentoo told me, also works with hibernate.
is there a similar setting for arch?

Last edited by DonVla (2008-02-01 03:05:25)

Offline

#3 2008-02-01 21:54:27

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: wake on lan (wol), uswsusp and 8139too

damn! this thing is driving me nuts. now  i've tried "ethtool -s eth0 wol b"  (set wol on broadcast) and it works even when hibernated.
why the heck does it not work with the magic packet (wol g)??? react on broadcast is quite useless.

hasn't got anyone an idea? is this problem so specific? or does it work for anyone else but me?

vlad

Last edited by DonVla (2008-02-01 21:54:59)

Offline

#4 2013-10-13 22:53:03

solamour
Member
Registered: 2011-09-14
Posts: 5

Re: wake on lan (wol), uswsusp and 8139too

I'm having the same problem (i.e. wol works when fully shutdown, but not when hibernated).

As for Gentoo, RC_DOWN_INTERFACE="no" used to work when I added it in "/etc/conf.d/rc", but now with this new OpenRC and "/etc/rc.conf", RC_DOWN_INTERFACE doesn't seem to work anymore. Please share if you have made any progress. Thanks.
__
sol

Offline

#5 2013-10-13 23:04:46

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: wake on lan (wol), uswsusp and 8139too

Please don't necrobump" https://wiki.archlinux.org/index.php/Fo … Bumping.27

And, for Gentoo support, ask on their boards: https://wiki.archlinux.org/index.php/Fo … pport_ONLY



Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB