I just bought a mid 2011 27" iMac i7 3.1GHz with 16GB RAM, and was fine for two months. I'm not sure what caused this problem to start, but about a week ago, it started being stuck in sleep mode every morning. I don't own a usb mouse so I can't test to see if that would allow me to wake the computer up. I have to hold the power button down and hard boot to get into OS X - every day!!
Why did this randomly start happening? I've purchased and installed a few things: the Korg Legacy Digital Collection (virtual keyboard), M-Tron Pro (virtual keyboard), and Melodyne Studio 3 (pitch correction software). I can't imagine that installing these things would cause this issue, but other than that, I've been running Lion 10.7.3, with only Logic 9.1.6 from the app store and MS Office 2011 installed, as this is my digital audio workstation.
I tried instaling the iMac EFI Firmware Update 1.9 yesterday, which was just released on Feb 12, 2012, but that didn't fix the problem - my iMac was DOA yet again this morning.
I'm almost to the point of booting into recovery mode and seeing if reinstalling Lion, Logic, and my plugins from scratch will correct. Apple please fix this!