How to enable my computer to get into sleep/hibernate mode when it is not in use?

I have a desktop Lenovo Workstation S30 computer with an LCD screen. Up until recently, when I don't use the computer for about 20 minutes, it went into sleep/hibernate mode until I moved the mouse. When it did so, I would get a beeping sound. Now, I get the beeping sound, the screen blacks out for a second, then comes back on… And it beeps again. It doesn't go into sleep mode. What is causing this and how may I fix it? Thanks.

Added (1). I also use Windows 7.

There's another program running in the background that is making the CPU busy, preventing the sleep mode.
What it is and how to stop it is up to you. Could be a keylogger, a trojan, a bot, a zombie virus, or an outside party trying to crash in your network. Time to scan. Time to limit start up programs.

It could be caused by any of your hardware calling an interrupt (keyboard, mouse, HDD, USB device, USB controller, Network Adapter). What you should do is go to device manager and see if the drivers are working… You probably have automatic updates on, so make sure those drivers are up to date…

I believe all my drivers are up to date.still have the problem. After my personal computer is on without me using it for about 20 minutes, it beeps and screen goes out for about a second like it used to when it went into hibernation. Then it beeps again and screen comes back. I have no idea what is causing this.