This problem first happened with RC1 of Vista. I’d press the sleep button (or select Sleep from the Start menu). My PC would go through all its shutdown things, blank the screen and immediately wake up. After a short while the login screen would be displayed, I’d type my password and be back where I started.

I read on the www.tabletquestions.com forum of other people who’d had similar problems and some had referred to a POWERCFG utility. This turned out to the problem on my PC.

I ran this utility (in a Command window, as administrator) with the “–DEVICEQUERY wake-armed” parameters and got a list of hardware devices that would wake the PC up. This showed:

C:\Windows\system32>powercfg -devicequery wake_armed
Standard 101/102-Key or Microsoft Natural PS/2 Keyboard
Microsoft USB Wheel Mouse Optical

So if there was activity on my mouse or keyboard, the system would wake up from sleep. It seems that when going to sleep, there’s enough activity from the mouse to wake the system up. Also I didn’t really want the PC to wake up just because I’d moved the mouse out of the way on my desk. So I disabled the mouse as a wake-up device:

C:\Windows\system32>powercfg -devicedisablewake “Microsoft USB Wheel Mouse Optical”

Now the devicequery request does not show the mouse:

C:\Windows\system32>powercfg -devicequery wake_armed
Standard 101/102-Key or Microsoft Natural PS/2 Keyboard

It could be argued I don’t want the keyboard to wake the PC up either, but my motherboard does support wake from sleep on the keyboard so I might give that a go in the future – at the moment it’s disabled in the BIOS.

Anyway my PC now goes to sleep.

Why write about this now, since the problem happened with RC1 and did not resurface when I installed a full version of Vista. Until yesterday when I replaced the power supply and case. It’s possible that changing the PSU caused Vista to lose its power settings.

21 Responses to “Vista PC won’t go to sleep”

  1. Cool, i had a similar problem and that sorted it.

  2. grumpyboy says:

    Great tip, used it on my blog linked you

  3. tim says:

    Doesn’t work for me. I click ‘sleep’ form the start menu. The pc then slowly switches things off (monitor, then after a while the hard disk, then the fans, then finally the system itself), sleeps for the breifest of moments, only to immediately wake up. There could be some wierd setting in the bios that I need to set, but this all worked perfectly under XP. Microsoft just seem to have ballsd it up.

  4. [...] It can be irritating when you bump your mouse and it wakes up your pc. I Found this useful tip on… http://www.gordonknight.co.uk [...]

  5. Derek says:

    @tim
    What output do you get from powercfg -devicequery wake_armed. That’s likely to be the clue. If it includes a mouse or stylus or anything like that I found that it’s a good idea to disable it. your mouse may not have the same name as mine.

  6. tim says:

    Hi Derek,
    Strangely enough, now I get nothing at all from that query, not even a status message. I’d gone through the control panel and turned off the “wake when sharing media” setting already (which seems like a stupid default). Last time I tried the shutdown I did a query to see what last woke the pc back up:

    Z:\Users\Tim>powercfg -lastwake
    Wake History Count – 0

    but as you can see, nothing at all. I think my PC is an insomniac.

  7. lazerbeak says:

    that didnt work for my problem but this did
    http://pchelpmate.net/?p=71
    My network card was waking my pc dead

  8. Derek says:

    @Tim. Is yours the same problem? My machine doesn’t have Wake On LAN enabled – I am not sure if that’s a BIOS thing – and I’d have to reboot to find out, which I don’t do very often ;-) . It’s certainly worth checking out @lazerbeak’s URL.

  9. Mouse says:

    Mouse

    yeah thats what I ment, i didnt remember the spelling but i did remember the meaning of the Mouse

  10. Tom says:

    Brilliant – fixed it at last. Thanks for the tip.

  11. Joe says:

    Great tip, solved my problem imediately. Thanks :)

  12. Julien says:

    Thanks a lot! I couldn’t put Vista to sleep mode. Now it works like a charm :-)

  13. Fungi says:

    I had the same problem: After choosing sleep, Vista would reanimate on its own 1 to 10 seconds later. Annoying!

    For me the trick was to realize that perhaps something was waking the computer up – and then to tell Vista to ignore it. It was both my (1) mouse and (2) Vista’s dumb multimedia sharing option.

    Mouse: Easy solution (often posted elsewhere). Shut it up. Do this:
    Control Panel -> Device Manager -> Mice -> Right-click your specific mouse -> Properties -> Power Management tab -> uncheck “Allow this device to wake the computer”

    Vista’s dumb multimedia sharing option: More complex (and I don’t think anyone else has posted it). Do this:
    Control Panel -> Power Options -> If “High Performance” is selected, choose something else, like “Balanced” (I don’t know why this works) -> Change plan settings (for the chosen power plan) -> Change advanced power settings -> Scroll down to Multimedia settings -> Choose “Allow the computer to sleep”

    My, won’t your computer feel much more rested, and your power bill will go down to boot.

  14. Yoann says:

    My issue was a little different. My Vista was just turning the screen off. But curiously enough it was also turning my mute button on!
    That’s when I realized, Vista was trying to trick me.

    Thanks to Fungi, I remembered I had turned the Media Sharing on few days ago.
    So If you need the Media Sharing, just follow what Fungi said, otherwise go to the ‘Network and Sharing center’. Scroll down to ‘Media Sharing’. Expand the panel with the arrow on the right, press ‘Change…’. On the new pop-up, uncheck the checkbox ‘Share my media’ and validate with the ‘OK’ button. That’s all. (Well, assuming that’s youi don’t have further issues :-) )

  15. Somebody says:

    This solved my problem, but it wasn’t my mouse that was waking my comp up, it was my NVIDA network controller. I disabled the wake feature on it, now it sleeps the good sleep.

  16. disable windows media center in vista

  17. marvin says:

    Thanks for the tip,
    for me too it was the network controller

  18. panda says:

    Apart from keyboard and mouse, the following devices could also wake up the system from sleep:

    NVIDIA nForce Networking Controller
    High Definition Audio Controller
    PCI Soft Data Fax Modem with SmartCP

    You may want to disable them via Control Panel -> Device Manager -> -> Power Management tab -> uncheck “Allow this device to wake the computer”

  19. Richard Weinberg says:

    I had the same problem on my desktop. The computer awoke from sleep immediately after going to sleep. I went to Control Panel, Power Options, Edit Plan Settings. Click on Change Advanced Power Settings. Expand “Power buttons and lid.” Click on “Start Menu Power Button.” Click on “Sleep” (or whatever is shown in color). A drop-down menu will appear. Select “hibernate”, and click on “Apply”, the “OK”.
    When you use the shutdown button on the start menu, your computer will save your settings and go into hibernate. When you want to resume, use the physical start button on the computer. The machine will restart with all the programs open as of the time you went into hibernate. The mouse and keyboard will not awaken the computer from hibernate, you must use the button on the computer.

  20. DanMcE says:

    I don’t have a sleeping problem but when I shut my compaq Pre-sorry-o down, The image leaves (on the Dell monitor) but power stays to the monitor – VISTA home basic
    HOW CAN I GET THE MONITOR TO AUTO TURN OFF?

    • Derek says:

      If you’re saying that when you’ve shut Vista down (or any operating system for that matter), the montor stays switched on, that’s not an OS issue. Some monitors have a sleep mode, so if the are left switched on, after a while they go to sleep. Others will stay switched on. It just depends on the monitor

Leave a Reply

(required)

(required)

© 2010 Derek Knight's Blog Suffusion WordPress theme by Sayontan Sinha