Sometimes when my Nexus One is plugged in with the screen switched off, the screen turns itself on (showing the lock screen) seemingly randomly, and I have the "Stay awake" Development option turned on, so it stays switched on until I manually switch it off again.
I suspect that some app is inappropriately obtaining an ACQUIRE_CAUSES_WAKEUP WakeLock. Is there a way to get a log of WakeLock activity or some other way of debugging this?