Without switching roms you can this https://play.google.com/store/apps/details?id=org.jraf.android.nolock
Without switching roms you can this https://play.google.com/store/apps/details?id=org.jraf.android.nolock
I haven't used it in years since the roms I have used have it built in but you could give it a shot. It use to work just fine for me but were talking Froyo days.
no problem. Such a simple feature should be included on every single phone in my opinion. Why they took it away is beyond me.