Using a Network Connection to Wake Up a Sleeping Computer

By Paul McFedries  4 comments

Most Windows Vista computers are configured to go into Sleep mode after a certain amount of idle time. Sleep mode is the new low-power state that Vista uses to replace the confusing Standby and Hibernate modes from earlier versions of Windows. (Standby mode preserved your work and enabled you to restart quickly, but didn't entirely shut off the machine's power; Hibernate mode preserved your work and completely shut off the machine, but also took a relatively long time to restart-faster than shutting down your computer entirely, but slower than Standby.)

Vista's Sleep state combines the best of the old Standby and Hibernate modes:

  • As in Standby, you enter Sleep mode within just a few seconds.
  • As in both Standby and Hibernate, Sleep mode preserves all your open documents, windows, and programs.
  • As in Hibernate, Sleep mode shuts down your computer, except it maintains power to the memory chips so that it can preserve the contents of RAM for when you restart.
  • As in Standby, you resume from Sleep mode within just a few seconds.

To use Sleep mode, you have two choices:

  • To launch Sleep mode by hand, open the Start menu and click the Sleep button, shown in Figure 6.5. (You can also click the arrow beside the Lock button and then click Sleep.) Vista saves the current state and shuts off the computer in a few seconds.

Figure 6.5 Click the Sleep button to quickly shut down your computer and save your work.

  • To configure Vista to go into Sleep mode automatically, select Start, Control Panel, System and Maintenance, Power Options. In the Power Options window, click the Change Plan Settings link under the currently selected power plan. Use the Put the Computer to Sleep list to select the number of minutes or hours of idle time after which Vista automatically puts the computer to sleep (see Figure 6.6). Click Save Changes.

Figure 6.6 You can configure Vista to put the computer to sleep after a certain number of minutes or hours of idle time.

Having a computer go to sleep when you're not using it is a good idea because it conserves power. However, it can be a pain if you need to access the computer remotely over your network because you have no way to wake up the sleeping computer (which normally requires a physical action such as jiggling the mouse or pressing the computer's power button).

Fortunately, most new NICs support a feature called wake-on-LAN, which enables the NIC to wake up the computer when the NIC receives a special Ethernet packet called a magic packet (usually the hexadecimal constant FF FF FF FF FF FF followed by several repetitions of the computer's MAC address).

For this to work, you must first configure the NIC to handle wake-on-LAN. Here are the steps to follow:

1. In the Network Connections window, right-click the connection that uses the NIC you want to configure, and then click Properties. The User Account Control dialog box appears.

2. Enter your UAC credentials to continue. The connection's Properties dialog box appears.

3. In the Networking tab, click Configure to open the NIC's Properties dialog box.

4. Display the Power Management tab.

5. Click to activate the Allow This Device to Wake the Computer check box (see Figure 6.7).


Figure 6.7 To turn on a NIC's wake-on-LAN support, activate the Allow This Device to Wake the Computer check box.

6. Click OK.

With the computer's NIC configured, you need to download a utility that can send a magic packet to the remote computer whenever you need to wake up the machine. I use MatCode Software's free Wake-on-LAN utility, available at www.matcode.com/wol.htm. (This utility requires the NIC's MAC address; see "Finding a Connection's MAC Address," earlier in this chapter.) You can also try Googling "wake-on-lan utility".

NOTE

If the Allow This Device to Wake the Computer check box is disabled, it probably means your NIC doesn't support wake-on-LAN. However, it may also mean that this support has been disabled. In the NIC's Properties dialog box, display the Advanced tab and look for a property named Wake Up Capabilities. Click this property, and then choose On in the Value list. Click OK to put the new setting into effect, and then retry the steps in this section.

TIP

When you use the wake-on-LAN feature, you probably don't want the remote computer to wake to the Vista Welcome screen. Instead, it's almost always better to have the computer wake directly to the desktop. To disable the password requirement on wakeup, select Start, Control Panel, System and Maintenance, Power Options. In the Power Options window, click the Require a Password on Wakeup link to open the System Settings window. Click Change Settings That Are Currently Unavailable, and then enter your UAC credentials. Activate the Don't Require a Password option, and then click Save Changes.


We're giving away 10 copies of
Networking with Microsoft Windows Vista by Paul McFedries (a $39.99 value). Enter now for a chance to win!

4 comments

    Anonymous 1 year ago
    Mine won't wake up. Tapped the spacebar and wiggled the mouse and nothing. Pushed the power button and it shut off and now it won't come on, period. Unplugged it from the wall, waited about 5 minutes, plugged it back in, the green power light in the back of the computer is on, but when I pushed the power button it cuts the power to the computer. Now what?
    Anonymous 2 years ago
    I configured this on my Dell 390 running Vista x64 and what happens is the machine continuouly starts to wake. It's appears something on the network keeps starting it. It will settle down back to sleep only to wake up again. This cycles wake/sleep happens every few minutes. I ended up switching back to never sleep.
    Anonymous 2 years ago in reply to Anonymous
    You need to change the default to 'magic packet' instead of 'magic packet and match pattern' in Wake-up Capability in Advance tab of Nic config.
    Anonymous 3 years ago
    Great information. Thanks for posting it.

      Add a comment

      Post a comment using one of these accounts
      Or join now
      At least 6 characters

      Note: Comment will appear soon after you have activated your account.
      Obscene/spam comments will be removed and accounts suspended.
      The information you submit is subject to our Privacy Policy and Terms of Service.

      ITworld LIVE

      NetworkingWhite Papers & Webcasts

      White Paper

      The 2011 iPass Mobile Enterprise Report

      This industry survey covers trends, recommendations and a policy guide on managing Enterprise Mobility for IT management and CIOs. Get data on employee device liability, as well as smartphone/tablet penetration, budget control and provisioning. Find out how your organization compares, how to ensure mobile worker productivity, and control costs.

      Webcast On Demand

      Managing Enterprise Mobility Costs

      Mobile employees, especially those traveling internationally, were spending time and resources finding and making connections. Roaming costs were out of control. The IT Administrator at The Hay Group tells you how he got more control over these costs, providing management with predictable budgets and insights while ensuring employee productivity.

      Sponsor: iPass

      White Paper

      Digital Transformation: Creating New Business Models Where Digital Meets Physical

      Individuals and businesses alike are embracing the digital revolution. Social networks and digital devices are being used to engage government, businesses and civil society, as well as friends and family.

      White Paper

      The Journey to the Private Cloud

      Both business and IT need the agility enabled by the private cloud. Now you can apply technologies and processes pioneered by public cloud services to your own data center.

      Webcast On Demand

      Navigating the Public Cloud

      InfoWorld contributing editor and consultant David Linthicum offers expert advice about choosing services to outsource to the public cloud providers, cloud data security and identity, integrating public cloud services, and how to avoid provider lock-in.

      Sponsor: Intel

      See more White Papers | Webcasts

      Ask a question

      Ask a Question