[HTC One X] tdarren:
I decided to do a logcat for this. Firstly I enabled volume button wake in Settings > Device > Buttons. I then proceeded to sleep my device using the power button. I then pressed the power button but the screen stayed off and then I pressed the volume button and the screen came on along with the lights.

Logcat:

build.board: unknown

build.bootloader: 1.72.0000

build.brand: htc

build.cpu_abi: armeabi-v7a

build.cpu_abi2: armeabi

build.device: endeavoru

build.display: cm_endeavoru-userdebug 4.4.2 KVT49L 544feb4479 test-keys

build.fingerprint: htc/htc_europe/endeavoru:4.2.2/JDQ39/231174.2:user/release-keys

build.hardware: endeavoru

build.host: cyanogenmod

build.id: KVT49L

build.manufacturer: HTC

build.model: One X

build.product: htc_europe

build.radio: unknown

build.serial: SH27... I censored this

build.tags: test-keys

build.time: 1400381432000

build.type: userdebug

build.user: jenkins

version.codename: REL

version.incremental: 544feb4479

version.release: 4.4.2

version.sdk_int: 19

05-18 23:21:16.105 D/AudioFlinger(157): start(4100), calling pid 585 session 43

05-18 23:21:16.105 D/AudioFlinger(157): ? => ACTIVE (4100) on thread 0x415d61b0

05-18 23:21:16.920 I/PowerManagerService(585): Going to sleep by user request...

05-18 23:21:16.950 W/SurfaceFlinger(154): captureScreen: fence wait timed out

05-18 23:21:17.010 D/wpa_supplicant(809): RX ctrl_iface - hexdump(len=11): 53 49 47 4e 41 4c 5f 50 4f 4c 4c

05-18 23:21:17.010 D/wpa_supplicant(809): wlan0: Control interface command 'SIGNAL_POLL'

05-18 23:21:17.015 D/wpa_supplicant(809): nl80211: survey data missing!

05-18 23:21:17.430 D/SurfaceFlinger(154): Screen released, type=0 flinger=0x400de008

05-18 23:21:17.490 W/AudioTrack(715): AUDIO_OUTPUT_FLAG_FAST denied by client due to mismatching sample rate (44100 vs 48000)

05-18 23:21:17.490 D/AudioFlinger(157): start(4099), calling pid 715 session 44

05-18 23:21:17.495 D/AudioFlinger(157): ? => ACTIVE (4099) on thread 0x41911cf0

05-18 23:21:17.670 D/SurfaceControl(585): Excessive delay in blankDisplay() while turning screen off: 242ms

05-18 23:21:17.675 F/WindowManager(585): Unhandled exception in Window Manager

05-18 23:21:17.675 F/WindowManager(585): java.lang.NullPointerException: mNativeObject is null. Have you called release() already?

05-18 23:21:17.675 F/WindowManager(585): at android.view.SurfaceControl.checkNotReleased(SurfaceControl.java:293)

05-18 23:21:17.675 F/WindowManager(585): at android.view.SurfaceControl.setPosition(SurfaceControl.java:323)

05-18 23:21:17.675 F/WindowManager(585): at com.android.server.power.ElectronBeam$NaturalSurfaceLayout.onDisplayTransaction(ElectronBeam.java:745)

05-18 23:21:17.675 F/WindowManager(585): at com.android.server.display.DisplayManagerService.performTraversalInTransactionFromWindowManager(DisplayManagerService.java:353)

05-18 23:21:17.675 F/WindowManager(585): at com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedInner(WindowManagerService.java:9313)

05-18 23:21:17.675 F/WindowManager(585): at com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedLoop(WindowManagerService.java:8290)

05-18 23:21:17.675 F/WindowManager(585): at com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLocked(WindowManagerService.java:8232)

05-18 23:21:17.675 F/WindowManager(585): at com.android.server.wm.WindowManagerService.access$400(WindowManagerService.java:160)

05-18 23:21:17.675 F/WindowManager(585): at com.android.server.wm.WindowManagerService$H.handleMessage(WindowManagerService.java:7266)

05-18 23:21:17.675 F/WindowManager(585): at android.os.Handler.dispatchMessage(Handler.java:102)

05-18 23:21:17.675 F/WindowManager(585): at android.os.Looper.loop(Looper.java:136)

05-18 23:21:17.675 F/WindowManager(585): at android.os.HandlerThread.run(HandlerThread.java:61)

05-18 23:21:18.280 I/Choreographer(715): Skipped 46 frames! The application may be doing too much work on its main thread.

05-18 23:21:18.310 D/NfcService(877): NFC-C OFF, disconnect

05-18 23:21:18.395 I/ (715): NV Interposer: k:Error creating socket.

05-18 23:21:18.395 I/ (715): NV Interposer: Communication layer init failed.

05-18 23:21:18.395 D/NvOsDebugPrintf(715): Init second stage failed.

05-18 23:21:18.505 D/wpa_supplicant(809): RX ctrl_iface - hexdump(len=23): 44 52 49 56 45 52 20 53 45 54 53 55 53 50 45 4e 44 4d 4f 44 45 20 31

05-18 23:21:18.505 D/wpa_supplicant(809): wlan0: Control interface command 'DRIVER SETSUSPENDMODE 1'

05-18 23:21:18.505 D/PhoneStatusBar(715): disable: < expand icons alerts ticker system_info BACK* HOME* RECENT* CLOCK* search >

05-18 23:21:19.930 I/Xposed (585): java.lang.ClassNotFoundException: android.os.IHtcHardwareService$Stub

05-18 23:21:19.930 I/Xposed (585): at java.lang.Class.classForName(Native Method)

05-18 23:21:19.930 I/Xposed (585): at java.lang.Class.forName(Class.java:251)

05-18 23:21:19.930 I/Xposed (585): at java.lang.Class.forName(Class.java:216)

05-18 23:21:19.930 I/Xposed (585): at com.langerhans.one.utils.GlobalActions.setFlashlight(GlobalActions.java:248)

05-18 23:21:19.930 I/Xposed (585): at com.langerhans.one.mods.ControlsMods$9.beforeHookedMethod(ControlsMods.java:248)

05-18 23:21:19.930 I/Xposed (585): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:620)

05-18 23:21:19.930 I/Xposed (585): at com.android.internal.policy.impl.PhoneWindowManager.interceptKeyBeforeQueueing(Native Method)

05-18 23:21:19.930 I/Xposed (585): at com.android.server.wm.InputMonitor.interceptKeyBeforeQueueing(InputMonitor.java:357)

05-18 23:21:19.930 I/Xposed (585): at com.android.server.input.InputManagerService.interceptKeyBeforeQueueing(InputManagerService.java:1424)

05-18 23:21:19.930 I/Xposed (585): at dalvik.system.NativeStart.run(Native Method)

05-18 23:21:19.930 I/Xposed (585): Caused by: java.lang.NoClassDefFoundError: android/os/IHtcHardwareService$Stub

05-18 23:21:19.930 I/Xposed (585): ... 10 more

05-18 23:21:19.930 I/Xposed (585): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.os.IHtcHardwareService$Stub" on path: DexPathList[[zip file "/data/app/com.langerhans.one-1.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]

05-18 23:21:19.930 I/Xposed (585): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)

05-18 23:21:19.930 I/Xposed (585): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)

05-18 23:21:19.930 I/Xposed (585): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)

05-18 23:21:19.930 I/Xposed (585): ... 10 more

05-18 23:21:19.940 I/Xposed (585): java.lang.NoSuchMethodError: com.android.internal.policy.impl.PhoneWindowManager#sendEvent(java.lang.Integer,java.lang.Integer,java.lang.Integer)#bestmatch

05-18 23:21:19.940 I/Xposed (585): at de.robv.android.xposed.XposedHelpers.findMethodBestMatch(XposedHelpers.java:262)

05-18 23:21:19.940 I/Xposed (585): at de.robv.android.xposed.XposedHelpers.findMethodBestMatch(XposedHelpers.java:313)

05-18 23:21:19.940 I/Xposed (585): at de.robv.android.xposed.XposedHelpers.callMethod(XposedHelpers.java:917)

05-18 23:21:19.940 I/Xposed (585): at com.langerhans.one.mods.ControlsMods$9.beforeHookedMethod(ControlsMods.java:250)

05-18 23:21:19.940 I/Xposed (585): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:620)

05-18 23:21:19.940 I/Xposed (585): at com.android.internal.policy.impl.PhoneWindowManager.interceptKeyBeforeQueueing(Native Method)

05-18 23:21:19.940 I/Xposed (585): at com.android.server.wm.InputMonitor.interceptKeyBeforeQueueing(InputMonitor.java:357)

05-18 23:21:19.940 I/Xposed (585): at com.android.server.input.InputManagerService.interceptKeyBeforeQueueing(InputManagerService.java:1424)

05-18 23:21:19.940 I/Xposed (585): at dalvik.system.NativeStart.run(Native Method)

05-18 23:21:20.885 I/PowerManagerService(585): Waking up from sleep...

05-18 23:21:21.080 I/ (715): NV Interposer: k:Error creating socket.

05-18 23:21:21.080 I/ (715): NV Interposer: Communication layer init failed.

05-18 23:21:21.080 D/NvOsDebugPrintf(715): Init second stage failed.

05-18 23:21:21.100 I/WindowManager(585): Lock screen displayed!

05-18 23:21:21.120 D/wpa_supplicant(809): RX ctrl_iface - hexdump(len=11): 53 49 47 4e 41 4c 5f 50 4f 4c 4c

05-18 23:21:21.120 D/wpa_supplicant(809): wlan0: Control interface command 'SIGNAL_POLL'

05-18 23:21:21.120 D/wpa_supplicant(809): nl80211: survey data missing!

05-18 23:21:21.135 I/ (715): NV Interposer: k:Error creating socket.

05-18 23:21:21.135 I/ (715): NV Interposer: Communication layer init failed.

05-18 23:21:21.135 D/NvOsDebugPrintf(715): Init second stage failed.

05-18 23:21:21.165 D/wpa_supplicant(809): RX ctrl_iface - hexdump(len=23): 44 52 49 56 45 52 20 53 45 54 53 55 53 50 45 4e 44 4d 4f 44 45 20 30

05-18 23:21:21.165 D/wpa_supplicant(809): wlan0: Control interface command 'DRIVER SETSUSPENDMODE 0'

05-18 23:21:21.170 W/fb4a(:):ClientPeriodicEventReporterManager( 1574): Requested time interval of 1200000 ms should be increased to at least 3600000 ms for DeviceStatusPeriodicReporter

05-18 23:21:21.175 I/ (715): NV Interposer: k:Error creating socket.

05-18 23:21:21.175 I/ (715): NV Interposer: Communication layer init failed.

05-18 23:21:21.175 D/NvOsDebugPrintf(715): Init second stage failed.

05-18 23:21:21.195 W/fb4a(:):ClientPeriodicEventReporterManager( 1574): Requested time interval of 1200000 ms should be increased to at least 3600000 ms for DeviceStatusPeriodicReporter

05-18 23:21:21.235 D/PowerManagerService-JNI(585): Excessive delay in autosuspend_disable() while turning screen on: 315ms

05-18 23:21:21.235 D/SurfaceFlinger(154): Screen acquired, type=0 flinger=0x400de008

05-18 23:21:21.240 F/WindowManager(585): Unhandled exception in Window Manager

05-18 23:21:21.240 F/WindowManager(585): java.lang.NullPointerException: mNativeObject is null. Have you called release() already?

05-18 23:21:21.240 F/WindowManager(585): at android.view.SurfaceControl.checkNotReleased(SurfaceControl.java:293)

05-18 23:21:21.240 F/WindowManager(585): at android.view.SurfaceControl.setPosition(SurfaceControl.java:323)

05-18 23:21:21.240 F/WindowManager(585): at com.android.server.power.ElectronBeam$NaturalSurfaceLayout.onDisplayTransaction(ElectronBeam.java:745)

05-18 23:21:21.240 F/WindowManager(585): at com.android.server.display.DisplayManagerService.performTraversalInTransactionFromWindowManager(DisplayManagerService.java:353)

05-18 23:21:21.240 F/WindowManager(585): at com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedInner(WindowManagerService.java:9313)

05-18 23:21:21.240 F/WindowManager(585): at com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedLoop(WindowManagerService.java:8290)

05-18 23:21:21.240 F/WindowManager(585): at com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLocked(WindowManagerService.java:8232)

05-18 23:21:21.240 F/WindowManager(585): at com.android.server.wm.WindowManagerService.access$400(WindowManagerService.java:160)

05-18 23:21:21.240 F/WindowManager(585): at com.android.server.wm.WindowManagerService$H.handleMessage(WindowManagerService.java:7266)

05-18 23:21:21.240 F/WindowManager(585): at android.os.Handler.dispatchMessage(Handler.java:102)

05-18 23:21:21.240 F/WindowManager(585): at android.os.Looper.loop(Looper.java:136)

05-18 23:21:21.240 F/WindowManager(585): at android.os.HandlerThread.run(HandlerThread.java:61)

05-18 23:21:21.290 I/ (715): NV Interposer: k:Error creating socket.

05-18 23:21:21.290 I/ (715): NV Interposer: Communication layer init failed.

05-18 23:21:21.290 D/NvOsDebugPrintf(715): Init second stage failed.

05-18 23:21:22.050 W/AudioTrack(715): AUDIO_OUTPUT_FLAG_FAST denied by client due to mismatching sample rate (44100 vs 48000)

05-18 23:21:22.050 D/AudioFlinger(157): start(4097), calling pid 715 session 45

05-18 23:21:22.050 D/AudioFlinger(157): ? => ACTIVE (4097) on thread 0x414d94e8

05-18 23:21:22.140 D/NfcService(877): NFC-C ON

05-18 23:21:22.150 D/PhoneStatusBar(715): disable: < expand icons alerts ticker system_info back* home* recent* clock* search >

05-18 23:21:22.150 V/PhoneStatusBar(715): setLightsOn(true)

05-18 23:21:22.170 I/ (715): NV Interposer: k:Error creating socket.

05-18 23:21:22.170 I/ (715): NV Interposer: Communication layer init failed.

05-18 23:21:22.170 D/NvOsDebugPrintf(715): Init second stage failed.

05-18 23:21:22.420 W/InputMethodManagerService(585): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@42667690 attribute=android.view.inputmethod.EditorInfo@427c3668, token = android.os.BinderProxy@426e2578

05-18 23:21:22.690 I/Timeline(3678): Timeline: Activity_idle id: android.os.BinderProxy@41ddfb40 time:177513

05-18 23:21:23.365 D/AudioFlinger(157): start(4099), calling pid 585 session 46