From owner-freebsd-net@FreeBSD.ORG Fri Apr 4 20:07:56 2014 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C0DFEBA0 for ; Fri, 4 Apr 2014 20:07:56 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 58C0EBBC for ; Fri, 4 Apr 2014 20:07:56 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.8/8.14.8) with ESMTP id s34K7mck039768 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 4 Apr 2014 14:07:48 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.8/8.14.8/Submit) with ESMTP id s34K7mti039765 for ; Fri, 4 Apr 2014 14:07:48 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 4 Apr 2014 14:07:48 -0600 (MDT) From: Warren Block To: freebsd-net@FreeBSD.org Subject: Re: Gigabyte BIOS/UEFI and WOL In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Fri, 04 Apr 2014 14:07:48 -0600 (MDT) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2014 20:07:56 -0000 On Tue, 1 Apr 2014, Warren Block wrote: > On Tue, 1 Apr 2014, Warren Block wrote: > >> So far I've tried and failed to get a Gigabyte GA-Z68A-D3H-B3 to wake from >> the network. It had the most recent BIOS (F13), which did not have a WOL >> option. >> >> A UEFI BIOS is available, so I've installed that, and still failed to get >> it to wake up. There are a bewildering number of undocumented options, >> none of which mentions WOL. >> >> Adding an Intel PCI card made no difference. The card LEDs are on when the >> system is off, but it still doesn't wake up. >> >> Once manually started, the system works fine, and ifconfig shows WOL_MAGIC. >> >> Any suggestions on things to try? I'm open to going back to a normal >> BIOS... if it will let me. It runs fine either way. > > And of course I tried it one more time out of desperation and it worked. I'll > document the settings ...if they work again. It appears that the reason this did not work was a combination of changes. The card on the server pointing changed, so some of the problem was sending wake packets out on the wrong card. Changing settings in UEFI and then powering off the system does not leave the system ready to boot with WOL. It must be shut down from FreeBSD. For now, I've found on Gigabyte boards that very little is required to enable WOL for UEFI. In the BIOS Features screen, I have these settings: OS Type: Other OS Boot Mode Selection: Legacy ... (only or first) Storage Boot Option Control: Legacy First Other PCI Device ROM Priority: Legacy OpROM The last is only needed for an added Ethernet card rather than the built-in one. It does not matter if PXE boot is disabled. When an added Ethernet card is used, it does not matter if the built-in one is enabled or not. In fact, there does not seem to be a purposeful way to defeat WOL. The only way that looks to definitely work is to enable the ErP mode on the Power Saving screen. This shuts the system down into a very low-power mode, and (I think) disables standby power to the Ethernet so WOL packets will not be detected. Untested, though.