[OnePlus X Original Android Development] DerAxx:
I finally find the reason for an annoying bug I have since using CM13 and cm-based roms.

The bug is: home button does not react on first hit. Must hit twice that the function (go to home screen) is triggered.

I have the setting that longpress on home button turns off the display. When I turn off phone with this method, i get the bug. I had this setting in OOS too, but there wasnt this bug.

So I made a catlog, but I dont see any reaction in the moment the home butten doesnt work.

Anyway, here the log:

08-22 21:25:44.043 1710-17443/system_process D/NetlinkSocketObserver: NeighborEvent{elapsedMs=6137009, 192.168.0.1, [5C353BB9E896], RTM_NEWNEIGH, NUD_STALE}
08-22 21:25:44.058 1710-3048/system_process I/PowerManagerService: Going to sleep by application request (uid 1000)...
08-22 21:25:44.064 5087-5335/? W/AudioPolicyIntefaceImpl: getOutputForAttr uid 10021 tried to pass itself off as 1000
08-22 21:25:44.064 3200-4497/com.android.systemui W/AudioTrack: AUDIO_OUTPUT_FLAG_FAST denied by client; transfer 4, track 44100 Hz, output 48000 Hz
08-22 21:25:44.065 5087-5336/? W/AudioFlinger: uid 10021 tried to pass itself off as 1000
08-22 21:25:44.070 5087-5325/? D/audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
08-22 21:25:44.081 5087-5325/? D/audio_hw_primary: start_output_stream: enter: stream(0xb5f379c0)usecase(1: low-latency-playback) devices(0x2)
08-22 21:25:44.081 5087-5325/? D/audio_hw_primary: start_output_stream: enter: usecase(1: low-latency-playback) devices(0x2)
08-22 21:25:44.081 5087-5325/? D/audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: )
08-22 21:25:44.081 5087-5325/? W/msm8974_platform: Codec backend bitwidth 16, samplerate 48000
08-22 21:25:44.081 5087-5325/? D/hardware_info: hw_info_append_hw_type : device_name = speaker
08-22 21:25:44.081 5087-5325/? I/msm8974_platform: platform_send_audio_calibration: sending audio calibration for snd_device(2) acdb_id(14)
08-22 21:25:44.081 5087-5325/? D/ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 14, path = 0
08-22 21:25:44.087 5087-5325/? D/audio_hw_primary: select_devices: done
08-22 21:25:44.548 1710-1760/system_process V/KeyguardServiceDelegate: onScreenTurnedOff()
08-22 21:25:44.559 4340-4408/com.google.android.googlequicksearchbox:search W/SearchService: Abort, client detached.
08-22 21:25:44.567 1710-1758/system_process I/DisplayManagerService: Display device changed state: "Integrierter Bildschirm", OFF
08-22 21:25:44.573 232-232/? D/SurfaceFlinger: Set power mode=0, type=0 flinger=0xb6aa4000
08-22 21:25:44.573 232-232/? D/qdhwcomposer: hwc_setPowerMode: Setting mode 0 on display: 0
08-22 21:25:44.590 1710-3091/system_process D/WifiHAL: WifihalGeneric 0x971822e8 constructed
08-22 21:25:44.590 1710-3091/system_process I/WifiHAL: ******HexDump len:0*********
08-22 21:25:44.590 1710-3091/system_process I/WifiHAL: ******HexDump End***********
08-22 21:25:44.590 1710-3091/system_process I/WifiHAL: Got a Wi-Fi HAL module message from Driver
08-22 21:25:44.590 1710-3091/system_process I/WifiHAL: Supported feature set : 18b1f
08-22 21:25:44.590 1710-3091/system_process D/WifiHAL: WifihalGeneric 0x971822e8 destructor
08-22 21:25:44.590 1710-3091/system_process I/WifiHAL: Supported feature set acquired : 18b1f
08-22 21:25:44.642 5038-5319/com.google.android.gms.persistent W/GeofencerStateMachine: Ignoring removeGeofence because network location is disabled.
08-22 21:25:44.643 5038-5319/com.google.android.gms.persistent W/GeofencerStateMachine: Ignoring removeGeofence because network location is disabled.
08-22 21:25:44.855 232-389/? I/qdhwcomposer: handle_blank_event: dpy:0 panel power state: 0
08-22 21:25:44.858 232-232/? D/qdhwcomposer: hwc_setPowerMode: Done setting mode 0 on display 0
08-22 21:25:44.859 1710-3177/system_process D/SurfaceControl: Excessive delay in setPowerMode(): 292ms
08-22 21:25:44.860 1710-1760/system_process I/QCOM*PowerHAL: Got set_interactive hint
08-22 21:25:44.861 1710-1760/system_process I/DreamManagerService: Entering dreamland.
08-22 21:25:44.861 1710-1760/system_process I/PowerManagerService: Dozing...
08-22 21:25:44.862 1710-1745/system_process I/DreamController: Starting dream: name=ComponentInfo{com.android.systemui/com.android.systemui.doze.DozeService}, isTest=false, canDoze=true, userId=0
08-22 21:25:44.891 1710-3091/system_process D/WifiConfigStore: Retrieve network priorities after PNO.
08-22 21:25:44.891 5087-5334/? D/audio_hw_primary: adev_set_parameters: enter: screen_state=off
08-22 21:25:44.891 5087-5334/? E/bt_a2dp_hw: adev_set_parameters: ERROR: set param called even when stream out is null
08-22 21:25:44.892 1710-3091/system_process E/native: do suspend true
08-22 21:25:44.914 3200-3200/com.android.systemui D/CarrierText: onSimStateChanged: Normal
08-22 21:25:44.942 3200-3200/com.android.systemui D/PhoneStatusBar: disable: < expand ICONS* alerts SYSTEM_INFO* back home recent clock search quick_settings >
08-22 21:25:44.988 3750-3750/com.google.android.inputmethod.latin I/GoogleInputMethod: onReceive() : Action = android.intent.action.SCREEN_OFF
08-22 21:25:45.011 3200-3200/com.android.systemui D/PhoneStatusBar: disable: < expand ICONS alerts SYSTEM_INFO back HOME* RECENT* clock SEARCH* quick_settings >
08-22 21:25:45.020 3873-3873/com.cyanogenmod.settings.doze E/SensorManager: sensor or listener is null
08-22 21:25:45.029 5038-5038/com.google.android.gms.persistent D/ScreenOnOffReceiver: Received intent: Intent { act=android.intent.action.SCREEN_OFF flg=0x50000010 }.
08-22 21:25:45.030 5038-5038/com.google.android.gms.persistent D/Coffee-OneTimeAuthTrustlet: screen off
08-22 21:25:45.030 5038-5038/com.google.android.gms.persistent D/Coffee-OneTimeAuthTrustlet: screen off
08-22 21:25:45.052 20304-20304/com.oasisfeng.greenify:service I/Cleaner: Schedule hibernation in 180s
08-22 21:25:45.403 1710-17443/system_process D/NetlinkSocketObserver: NeighborEvent{elapsedMs=6138369, fe80::5e35:3bff:feb9:e896, [5C353BB9E896], RTM_NEWNEIGH, NUD_PROBE}
08-22 21:25:46.340 1710-1710/system_process I/PowerManagerService: Waking up from dozing (uid 1000)...
08-22 21:25:46.350 1710-1710/system_process I/QCOM*PowerHAL: Got set_interactive hint
08-22 21:25:46.351 1710-1760/system_process I/DreamManagerService: Gently waking up from dream.
08-22 21:25:46.351 1710-1760/system_process I/DisplayPowerController: Blocking screen on until initial contents have been drawn.
08-22 21:25:46.351 1710-1760/system_process V/KeyguardServiceDelegate: onScreenTurnedOn(showListener = com.android.server.policy.PhoneWindowManager$2@c21f99a)
08-22 21:25:46.352 1710-1731/system_process I/DreamManagerService: Leaving dreamland.
08-22 21:25:46.353 1710-1745/system_process I/DreamController: Stopping dream: name=ComponentInfo{com.android.systemui/com.android.systemui.doze.DozeService}, isTest=false, canDoze=true, userId=0
08-22 21:25:46.357 232-232/? D/SurfaceFlinger: Set power mode=2, type=0 flinger=0xb6aa4000
08-22 21:25:46.357 1710-1758/system_process I/DisplayManagerService: Display device changed state: "Integrierter Bildschirm", ON
08-22 21:25:46.357 232-232/? D/qdhwcomposer: hwc_setPowerMode: Setting mode 2 on display: 0
08-22 21:25:46.369 1710-1710/system_process V/KeyguardServiceDelegate: onStartedWakingUp()
08-22 21:25:46.373 1710-4605/system_process V/KeyguardServiceDelegate: **** SHOWN CALLED ****
08-22 21:25:46.404 5087-7722/? D/audio_hw_primary: adev_set_parameters: enter: screen_state=on
08-22 21:25:46.404 5087-7722/? E/bt_a2dp_hw: adev_set_parameters: ERROR: set param called even when stream out is null
08-22 21:25:46.405 1710-3091/system_process D/WifiConfigStore: Retrieve network priorities after PNO.
08-22 21:25:46.423 1710-3091/system_process E/native: do suspend false
08-22 21:25:46.432 1710-4256/system_process E/LocSvc_libulp: W/Loc HAL handshake did not happen yet...
08-22 21:25:46.446 1710-3091/system_process D/WifiConfigStore: No blacklist allowed without epno enabled
08-22 21:25:46.476 232-389/? I/qdhwcomposer: handle_blank_event: dpy:0 panel power state: 1
08-22 21:25:46.476 232-232/? D/qdhwcomposer: hwc_setPowerMode: Done setting mode 2 on display 0
08-22 21:25:46.477 1710-3177/system_process D/SurfaceControl: Excessive delay in setPowerMode(): 119ms
08-22 21:25:46.516 1710-1760/system_process I/DisplayPowerController: Unblocked screen on after 165 ms
08-22 21:25:46.520 1710-1760/system_process V/KeyguardServiceDelegate: onScreenTurnedOn()
08-22 21:25:46.530 5038-5038/com.google.android.gms.persistent D/ScreenOnOffReceiver: Received intent: Intent { act=android.intent.action.SCREEN_ON flg=0x50000010 }.
08-22 21:25:46.907 1710-3091/system_process D/WifiStateMachine: starting scan for "NSA Surveillance Van"-WPA_PSK with 2437
08-22 21:25:47.254 3200-3200/com.android.systemui D/PhoneStatusBar: disable: < expand ICONS alerts SYSTEM_INFO back HOME RECENT clock SEARCH quick_settings >
08-22 21:25:47.285 3200-3200/com.android.systemui W/AudioTrack: AUDIO_OUTPUT_FLAG_FAST denied by client; transfer 4, track 44100 Hz, output 48000 Hz
08-22 21:25:47.298 5087-5325/? D/audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
08-22 21:25:47.300 3200-3200/com.android.systemui D/PhoneStatusBar: disable: < expand icons* alerts system_info* back HOME RECENT clock SEARCH quick_settings >
08-22 21:25:47.323 5038-5038/com.google.android.gms.persistent D/ScreenOnOffReceiver: Received intent: Intent { act=android.intent.action.USER_PRESENT flg=0x24000010 }.
08-22 21:25:47.323 5038-5038/com.google.android.gms.persistent D/Coffee-OneTimeAuthTrustlet: user present
08-22 21:25:47.323 5038-5038/com.google.android.gms.persistent D/Coffee-OneTimeAuthTrustlet: screen off
08-22 21:25:47.323 5038-5038/com.google.android.gms.persistent D/Coffee-OneTimeAuthTrustlet: user present
08-22 21:25:47.323 5038-5038/com.google.android.gms.persistent D/Coffee-OneTimeAuthTrustlet: screen off
08-22 21:25:47.334 1710-5498/system_process W/InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@f99bfb2 attribute=android.view.inputmethod.EditorInfo@28b0b03, token = android.os.BinderProxy@a1e8474
08-22 21:25:47.338 5038-5038/com.google.android.gms.persistent I/Auth: [AuthDelegateWrapper] Service intent: Intent { cmp=com.google.android.gms/.auth.account.authenticator.DefaultAuthDelegateService }.
08-22 21:25:47.338 5087-5325/? D/AudioFlinger: mixer(0xb3a40000) throttle end: throttle time(4)
08-22 21:25:47.341 3200-3200/com.android.systemui D/PhoneStatusBar: disable: < expand icons alerts system_info back home* recent* clock search* quick_settings >
08-22 21:25:47.365 4340-4411/com.google.android.googlequicksearchbox:search W/LocationOracle: getBestLocation(): no location is available
08-22 21:25:50.464 1710-1744/system_process I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.google.android.googlequicksearchbox/com.google.android.launcher.GEL (has extras)} from uid 1000 on display 0
08-22 21:25:50.480 4340-4408/com.google.android.googlequicksearchbox:search W/SearchService: Abort, client detached.
08-22 21:25:50.490 3905-3905/com.google.android.googlequicksearchbox I/GEL: handleIntent(Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.google.android.googlequicksearchbox/com.google.android.launcher.GEL (has extras) })
08-22 21:25:50.500 5087-5325/? D/audio_hw_primary: out_standby: enter: stream (0xb5f379c0) usecase(1: low-latency-playback)
08-22 21:25:50.536 4340-4572/com.google.android.googlequicksearchbox:search W/LocationOracle: getBestLocation(): no location is available
08-22 21:25:50.569 5087-5325/? D/hardware_info: hw_info_append_hw_type : device_name = speaker

So [MENTION=5426059]ashwin007[/MENTION], is there any chance to get this fixed?

thx in advance