How to put PC into Sleep mode ?


I need to put my PC into sleep mode. How can I do it ?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
My laptop has sleep mode but I could never figure out how to get it working. Occasionally I'd have to go to an appointment and would need to take my laptop with me, and I dreaded the moment that I had to leave because I knew I'd probably have to shut down and boot up again (and repeat the dreaded process when I return to the office/home).
But as luck would have it, each time I was packing up to leave, after I unplugged the mouse and all the other USB ports and closed the lit - it would go to sleep.
Eventually I found the pattern - it won't go into sleep mode with anything in the USB ports.
Hope that helps someone out there :)
szafranAuthor Commented:
thank you.
i'll accept now, since the code seems to be good, but will check it later.
szafranAuthor Commented:
i know that. i assume you're using vista (because for me the problem didn't exist on xp). try editing the advanced battery settings for the power plan thatyou're using and set the usb settings to off (don't really know how those options are namd in english, but when you'll see it, then you'll know what i'm talking about). that fixed it for me.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.