LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-30-2004, 09:20 AM   #1
Pirf2
LQ Newbie
 
Registered: Jun 2004
Posts: 11

Rep: Reputation: 0
Does sk98lin support wake-on-lan?


Hi,

I am using an Asus P4P800 Motherboard, with an onboard 3c940 Gigabit LAN Chipset. Now I want it, to start up using WakeOnLan. It works fine, if I shutdown from Windoze, but doesnot when I do so from Mandrake 10.0c. When I commented out the lines from the init-script halting the network-devices the LEDs on the Plug kept alive (before they went black; from Windoze they also kept alive, so I guess this is minimum to get it working), but this was not enough to wake the PC up.
The Card seems to be running with the sk98lin-Module. In its sources I didn't find any line about wake on lan, and other module parameters like "enable_wol=1" didn't help.

So is there anyway to get it working? Maybe another module, or a new alpha version of sk98lin?

Thanks for your help!
Greetz,
Pirf2
 
Old 06-30-2004, 10:05 AM   #2
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
try "modinfo -p [sk98lin-module]" to get parameters the module is able to understand. also type "lspci -v" to see what powermodes are availible for that device.
for further information take a look at the source located in
/usr/src/[kernelsource]/drivers/net.. ,
also read the infos about powermanagement (under linux - it isn't quite ready yet and i also had lot of troubles setting up pm right).

sl mritch.
 
Old 06-30-2004, 10:49 AM   #3
Pirf2
LQ Newbie
 
Registered: Jun 2004
Posts: 11

Original Poster
Rep: Reputation: 0
"modinfo -p sk98lin" does not return anything at all (but it works, cause if I type something else instead of sk98lin, I get an error in return).

"lspci -v" returns the following related to the controller:

02:05.0 Ethernet controller: 3Com Corporation 3c940 1000Base? (rev 12)
Subsystem: Asustek Computer, Inc.: Unknown device 80eb
Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 22
Memory at feafc000 (32-bit, non-prefetchable) [size=16K]
I/O ports at d800 [size=256]
Capabilities: [48] Power Management version 2
Capabilities: [50] Vital Product Data

In the driver sources there is nothing about wake on lan, so probably the installed version does not support it. :-( Maybe there is another one, or I can use another driver? Or is it that difficult, to tell a card, to switch to standby on shutdown? It cannot be more than a simple flag to set, does it?

Greetz,
Pirf2
 
Old 06-30-2004, 12:15 PM   #4
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
i don't think the driverversion is the prob. it sure will know wol IF the driver supports it. i always had troubles with things in the linux powermanagement. i think it's not quite finished.

it would be nice to know somebody got it working.

since i don't ever used it i'm not much of help here.
anyway. are u using acpi? and is your network-card-irq routed through it? (see dmesg | grep ACPI).
i have also heard something 'bout "magic packets" a network interface needs to wake up?

sl mritch.
 
Old 06-30-2004, 03:52 PM   #5
Pirf2
LQ Newbie
 
Registered: Jun 2004
Posts: 11

Original Poster
Rep: Reputation: 0
ACPI is enabled in BIOS, the output of dmesg:
ACPI: Subsystem revision 20040326
ACPI: Interpreter enabled
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (00:00)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P4._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 *5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs *3 4 5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 *5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 *5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 *5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 10 *11 12 14 15)
PCI: Using ACPI for IRQ routing
ACPI: (supports S0 S1 S3 S4 S5)

I am trying to route the Magic Packet from outside through my NAT-Router, but since I am not sure, this is working correctly, I also got a laptop sending the package locally. After shutdown from windows both methods work fine.

Greetz,
Pirf2
 
Old 06-30-2004, 05:00 PM   #6
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
well, that looks quite fine -i can't see anything that's wrong.
i suggest searching the net for more information 'bout wol under linux.
i just don't know what would solve this prob. you may try to get debuging output from your kernel acpi funktion - maybe you'll need to recompile your kernel and i think this will be a good idea anyway. try with the sk98 as module and compiled in. you should also try some newer version of the kernel like 2.6.5 or even .6 or .7.

hope that will help,
sl mritch.
 
Old 07-29-2004, 08:27 PM   #7
samouraix
LQ Newbie
 
Registered: Jul 2004
Posts: 1

Rep: Reputation: 0
Did you find anything ?
I am trying to make work wol under linux and I can't.
When I shutdown the PC under windows I can awake it but when I shutdown under Linux i can't awake it
 
Old 07-31-2004, 10:01 AM   #8
Pirf2
LQ Newbie
 
Registered: Jun 2004
Posts: 11

Original Poster
Rep: Reputation: 0
Still on it, but without any success. Currently I am running the 2.6.8rc2-Kernel, but there were no changes to the sk98lin-Module, wich fits to my onboard 3com NIC. The sk98lin module seems to be the standard driver for a lot of other controllers (e.g. found one from D-Link while googling), but when I looked in the sourcecode there where no comments about WOL, so I guess its simply not implemented yet. If it is, could anyone please tell me, what do I have to do different?

Greetz,
Pirf2
 
Old 12-07-2004, 04:29 AM   #9
Focher
LQ Newbie
 
Registered: Dec 2004
Posts: 2

Rep: Reputation: 0
I don't think the previous sk98lin driver supported wol. At least, if you issued an "ethtool -s eth0 wol g" to enable it, you just got an error about the operation is not supported.

The good news is that for the sk98lin driver from Syskonnect, there is a new driver released (v7) that now supports the wol setting in ethertool.

The new driver is at http://www.syskonnect.com/syskonnec...102_driver.html

Installation is pretty easy. You just need the kernel source for the version you are running installed in /usr/src. Most likely, you already have it installed as this happens with most distros. There is an install.sh script and, if you use the Basic option, it pretty much installs itself for you.

Now the command "ethtool -s eth0 wol g" works for me. You can issue an "ethtool eth0" and see the card settings.

My next problem is that the Magic Packet is still not waking up the 3C940 nic built into my Asus P4C800 Deluxe motherboard. I have the latest BIOS and have the BIOS options enabled for 1) Onboard NIC, 2) NIC's boot ROM, and 3) Wake on PCI Event in the Power Management section of the BIOS.

I boot to Linux, issue the "ethtool -s eth0 wol g" command, do a "shutdown -h now", and then try to issue the Wake on LAN Magic Packet from both a Linux box (using wol) and a Windows box using the AMD PCnet Magic Packet utility. Neither work for me.

Keep us updated on your progress. I am not sure if I am just the only one with this problem now.
 
Old 12-07-2004, 08:45 AM   #10
Pirf2
LQ Newbie
 
Registered: Jun 2004
Posts: 11

Original Poster
Rep: Reputation: 0
I will check this out, if i find the time, maybe tonite. I don't think that sources should be a prob, since I am using gentoo now... I would really be glad, if this works.

Using windows, I just had to change a setting in the device-manager, something with "Device is allowed to wake up PC from stand-by." As I remember, it was set on, and I had to switch it of, to get it working. After this, I should it down using the regular windows way. The LEDs on the LAN-Plug kept on then (before this checkbox change they didn't), and it woke up fine. After shutting down from Linux before they went of after power-down; I could "force" them on with disabling the eth-down in the init-configs, but that didn't make him wake up on lan (but I neither expect this that way).
I cannot try windows again, because it ain't on my HD anymore... ;-)

Greetz,
Pirf2
 
Old 12-07-2004, 04:53 PM   #11
Pirf2
LQ Newbie
 
Registered: Jun 2004
Posts: 11

Original Poster
Rep: Reputation: 0
That is fun, indeed. Module compiled and installed fine so far (BTW one of the best installers since long ago). Since it auto-modprobes the modules when done, the device (the link LEDs) came up immediatly. Ethtool tells me, that everything is ok, and it even was already configured to wake up on "g". After I shut down, the LEDs kept alive, so I guess it could have even wake up now.
But after adding the module to modules.autoload, the system now knows of the existence of this device at boot time, and, as you would expect from a clean system, it remembers to switch everything of after finishing - so the LEDs went off exaclty with "shutting down eth1" in the console.
Some tests confirmed, that ethtool does configure the card itself for WOL, but does not prevent the system from shutting it down. So I guess, I still have to take hand on the runlevel-scripts as I did before on mandrake to get this working; or find another tool, that takes care of this more cleanly.

The only problem, why I am not continuing here, is that I forgot my laptop at work, so I do not find any magic packet somewhere around here... ;-)

Hopefully to finish this story soon,
Pirf2
 
  


Reply



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 upload-3 Linux - Networking 2 06-12-2006 01:00 PM
Wake on LAN tommyknocker Linux - Networking 4 07-26-2005 01:26 PM
wake on lan?? alaios Linux - Hardware 2 08-10-2004 01:04 PM
Wake-on-LAN dARkHunTEr Linux - Hardware 0 11-04-2003 04:17 PM
wake-on-lan PlatinumRik Linux - Hardware 1 04-09-2003 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:21 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
Open Source Consulting | Domain Registration