[Nexus 5 Android Development] notentirelysure85:
OK I tried the 20150111 build, as I had some free time. Still the same problem, phone froze and required a hard reset to get it going again.

Process followed:

Launch TWRP recovery

Full device wipe (Came from Cataclysm, but this can be repeated whether I had CM11 or Stock 5.0.1 installed)

$ adb push cm-12-20150111-NIGHTLY-hammerhead.zip /sdcard/

$ adb push L-Bare-Mini-GApps-signed-20150108.zip /sdcard/

Flash both of the above

Wipe Cache + Reboot

Once phone has booted, followed initial setup, configured WiFi/Google acct etc.

Connected charger, set a PIN and encrypted device

Reboot, disconnected charger and let the phone sleep.

Come back 10 minutes later, press power key, nothing happens. Need to hold power to hard reset.

I did this again, while taking a logcat. It didn't seem to save anything after I started the logcat, saving it to logcat1.txt, _however_ while the phone was frozen, I connected adb and did a logcat from the computer over USB while trying to wake the phone. This file is logcat2.txt.

Also attached /proc/last_kmsg to this post. Anyone understand this? I don't :(

I've attached the complete files, but this part of logcat2.txt looks interesting:

I/DisplayPowerController( 2303): Blocking screen on until initial contents have been drawn.

V/KeyguardServiceDelegate( 2303): onScreenTurnedOn(showListener = com.android.internal.policy.impl.PhoneWindowManager$2@11544062)

E/qti_sensors_hal( 2303): processTimeResp: Unknown error in RESP. DSPS ts valid: 1; APPS: 0 APPS boottime: 0

D/VoldCmdListener( 179): cryptfs getpwtype

D/VoldCmdListener( 179): cryptfs getpwtype

D/VoldCmdListener( 179): cryptfs getpwtype

D/VoldCmdListener( 179): cryptfs getpwtype

V/KeyguardServiceDelegate( 2303): **** SHOWN CALLED ****

D/VoldCmdListener( 179): cryptfs getpwtype

I/WindowManager( 2303): Suppressed redundant power key press while already in the process of turning the screen on.

I/WindowManager( 2303): Suppressed redundant power key press while already in the process of turning the screen on.

I/WindowManager( 2303): Suppressed redundant power key press while already in the process of turning the screen on.

I/WindowManager( 2303): Suppressed redundant power key press while already in the process of turning the screen on.

I/WindowManager( 2303): Suppressed redundant power key press while already in the process of turning the screen on.

I/WindowManager( 2303): Suppressed redundant power key press while already in the process of turning the screen on.

I/InputDispatcher( 2303): Application is not responding: AppWindowToken{d9fd14a token=Token{1c1e26b5 ActivityRecord{b212ec u0 com.cyanogenmod.trebuchet/com.android.launcher3.Launcher t31}}} - Window{17aeb74d u0 StatusBar}. It has been 5047.1ms since event, 5005.3ms since wait started. Reason: Waiting to send key event because the focused window has not finished processing all of the input events that were previously delivered to it. Outbound queue length: 0. Wait queue length: 1.

I/WindowManager( 2303): Suppressed redundant power key press while already in the process of turning the screen on.

tux@funbox:~/android_dev$

You can see me repeatedly pressing the power button trying to wake the phone up.

If you have any insight into this, I'd appreciate it :) Might go back to CM11 so I can have a stable encrypted phone in the mean time :)