I built a rom for my Nook Color using AOSP source 4.2.2 (device files: http://forum.xda-developers.com/show....php?t=2313435
At first, I only installed the rom and wrong gapps, and had the following problems:
Device would shut down when screen turned off.
I then Entered recovery again, wiped the cache, dalvik-cache, data, reinstalled the rom, and reinstalled the (right) gapps version. I now have internet, but the device still shuts off on screen lock.
I remember having similar problems on my Nexus 7, so I am assuming this problem is AOSP-based, not Nook Color-based. That's why I'm posting here and not in the device forum.
However, just starting out, I don't know which files in the source code to change to fix the problem (CM10.1 did not have this problem, so I am pretty sure it's in the source somewhere).
I will update here if I find the error using logcat.