my blog my blog

Monthly 5月 2014
win8.1启用WOL功能教程

 

作为windows8.1,系统默认是无法WOL的,虽然你说WOL是关机之后的事儿,但是这跟关机的模式有很大的关系。

首先我们来看一篇文章 “Wake on LAN" (WOL) behavior in Windows 8 and Windows 8.1” ,这是微软官方对WOL在最新的win8和win8.1上的阐释,内容:

  1. The "Wake on LAN" (WOL) feature wakes a computer from a low-power state when a network adapter detects a WOL event.
  2. Typically, such an event is a specially constructed Ethernet packet. The default behavior in response to WOL events has changed from Windows 7 to Windows 8.  
  3. Windows 7 
  4. In Windows 7, the default shutdown operation puts the system into the classic shutdown state (S5), and all devices are put into the lowest power state (D3).
  5. WOL from S5 is not officially supported in Windows 7. However, some network adapters can be left armed for waking if enough residual power is available.
  6. Therefore, waking from S5 is possible on some systems if enough residual power is supplied to the network adapter even though the system is in the S5 state and devices are in D3. 
  7. Windows 8 and Windows 8.1 
  8. In Windows 8 and Windows 8.1, the default shutdown behavior puts the system into the hybrid shutdown state (S4), and all devices are put into D3. WOL from S4 or S5 is unsupported.
  9. Network adapters are explicitly not armed for WOL in either S5 or S4 cases because users expect zero power consumption and battery drain in the shutdown state.
  10. This behavior removes the possibility of invalid wake-ups when an explicit shutdown is requested. Therefore, WOL is supported only from sleep (S3) or hibernation (S4) states in Windows 8 and 8.1. 

首先呢,说明了WOL的工作原理,这是对于计算机在低功耗模式下的一种唤醒,它是通过网卡检测WOL事件完成的,而WOL事件呢就是那个以FFFFFF开头的udp数据包啦,感兴趣的朋友可以看下,这个udp包属于ARP的,抓包看下内容就一目了然了。win8.1的快速关机时将计算机关闭到hybrid shutdown state (S4)而不是 classic shutdown state (S5),而且在S4 S5状态下网卡都是不工作的因为这两种模式都几乎是无功耗的。

  1. In Windows 8 and 8.1, hybrid shutdown (S4) stops user sessions but lets the contents of kernel sessions be written to the hard disk. This enables faster startups. 
  2.  
  3. To disable the S4 state in Windows 8 and 8.1, follow these steps. 
  4.  
  5. Note We do not recommend that you disable the hybrid shutdown (S4) state. 
  6.  
  7.     In Control Panel, open the Power Options item. 
  8.     Click the Choose what the power buttons do link. 
  9.     Clear the Turn on fast startup (recommended) check box. 
  10.     Click Save Settings. 

win8和win8.1支持WOL也是有道可循的,进入控制面板–电源选项—在电源按钮选项哪里将快速启动关闭。然后设备管理器网卡属性中将wol和magic package哪里都允许就搞定了。

技嘉Gigabyte Z87x-oc主板WOL无法唤醒解决方案

 

最近入的第一张台式机主板技嘉Gigabyte Z87x-oc主板,BIOS固件版本是F6,存在电脑关机后无法使用WOL功能唤醒机器的问题,经过一番折腾终于把问题解决了。缕一缕思绪:

1.首先怀疑是BIOS配置问题,WOL选项已经默认开启,跳入下一项

2.网卡驱动上的WOL相关选项设置,设置完成,仍旧无法唤醒,跳回第一项

3.经过测试技嘉Gigabyte Z87x-oc主板的F6 BIOS固件存在WOL功能配置显示与实际相反的bug,即设置为启用实际为不启用,更改为不启用后可以再待机和睡眠状态唤醒成功,但是关机后一段时间无法唤醒。

4.电源存在问题?记得当时安装电源的时候电源少一根线,后来查了下是-5V电源,不是5vsb,忽略,继续查找BIOS问题

5.版本bug?升级到F7 BIOS固件,启动,关机,唤醒失败,问题回到3,还是WOL的显示与实际相反,再在BIOS中将启用改为停用,WOL功能正常,关机等待5分钟后仍然可以正常唤醒。问题解决

 

后记:BIOS升级使用的是技嘉的@BIOS,操作很简单,桌面环境操作,但是开机着实吓了一跳,机器自启两次失败,第三次才启动成功,吓出了一身冷汗,第一次升级BIOS固件,危险性还是相当高的,特别是没有UPS很害怕断电神马的。这次没有升级到最新的F8,万一F8的WOL功能依旧不行,降级也存在危险,有问题也不好处置,因此升级到了一个中间版本的BIOS还是比较保险的。新入了一个netgear wndr3800路由,dd-wrt搞起,准备抽时间写点儿东西神马的,啦啦啦~~~奶牛归来,继续折腾!