Devices not working

There are some times when I turn on my computer and nothing works, the CPU's lit up but the monitor, mouse and keyboard doesn't work. I had to switch the power ON and OFF until it works. I believe this is a hardware failure, please help. By the way I'm using Windows 7.
 
No the computer is actually switched on, but doesn't detect the monitor, the mouse and keyboard does not work.
 
The power supply could still be bad... Could be the motherboard, but power supplies are quicker and cheaper to replace
 
Back