I was running into various problems which were preventing my machine from going into sleep it seems it was keyboard or some USB device.
I face this so often that I wrote a simple program called systemsleeep which puts your computer to sleep if its not used for 15 mins (15 mins idle time) It...