Re: Re: remote shutdown
Donald Becker <[email protected]> Fri, 15 Aug 2003 13:18:41 -0400 (EDT)
| Newsgroups | gmane.linux.drivers.vortex.devel |
|---|---|
| Message-ID | <Pine.LNX.4.44.0308151311550.5423-100000@beohost> |
On Fri, 15 Aug 2003, Erik Thiele wrote: > Date: Fri, 15 Aug 2003 16:57:19 +0200 > From: Erik Thiele <[email protected]> > To: Donald Becker <[email protected]> > Subject: Re: [vortex] Re: remote shutdown > > On Fri, 15 Aug 2003 10:31:32 -0400 (EDT) > Donald Becker <[email protected]> wrote: > > > On Fri, 15 Aug 2003, Erik Thiele wrote: > > > > > On Thu, 14 Aug 2003 16:17:42 -0400 (EDT) > > > Donald Becker <[email protected]> wrote: > > > > On Thu, 14 Aug 2003, Erik Thiele wrote: > > > > ftp://ftp.scyld.com/pub/diag/pci-config.c > > ... > > > > This code allows reading the PCI configuration space registers. > > > > I use it to monitoring if the card is trying to raise a wake-up sign. > > > > It has an extra piece of code expecially for the 3Com chips enabled by > > > > --set-WOL > > .. > > > attached is the output of pci-config > > > then pci-config -a -#1 > > > > I now see that your NIC is on PCI bus 2. > > > > The 'pci-config' program does not automatically look past bus bridges, > > it only scans bus 0 by default. > > You'll need to specify PCI bus 2 with > > pci-config --bus 2 -# 1 -set-WOL > > or > > pci-config -B 2 -# 1 -M > > Oops, i didn't know this option. > ok now some more stuff works: > > in the bios i have wake on pci off. > after doing poweroff -f > the network is powered off, i see no light. > > but if i now do pci-config -B 2 -#2 --set-WOL > and poweroff -f > then the light is on! OK, the 3c59x driver from scyld.com should leave the chip in the same state. Specifically, the 3c59x.c:acpi_set_WOL() function is called when the cleanup_module() function is called or when the driver gets a DRV_SUSPEND message The latter requires CONFIG_APM or CONFIG_PM, and likely only works with properly configured 2.2 kernels on motherboards with APM. (2.4 and ACPI were not a step forward.) So you must be using the 3c59x driver as a module, and have the module unloaded at shutdown. > but still etherwake does not wake the machine. Does it change the state bits in the configuration space? Specifically Power management entry ver. %d: Capabilities .... should change when you run ether-wake from another machine. -- Donald Becker [email protected] Scyld Computing Corporation http://www.scyld.com 914 Bay Ridge Road, Suite 220 Scyld Beowulf cluster system Annapolis MD 21403 410-990-9993 _______________________________________________ vortex mailing list [email protected] http://www.scyld.com/mailman/listinfo/vortex