[Xiaomi Mi 4i] abyshek:
Hi friends, yes, this is a great ROM with official support. I am facing the "Sleep of death" problem on my Mi4i. Following are the details of my problem. I successfully installed the ROM ( formated everything-> flashed MIUI v6.6.10.0 ROM-> again formated everything -->> flashed Mokee ROM --> flashed opengapps --> wiped dalvik cache -->> setup Mokee).

Device: Mi4i (ferrari)

OS Version: MK51.1-ferrari-160215-Release and MK51.1-ferrari-160222-Release: Tried both, but the problem still persisted.

SIM1: LTE ( Reliance Jio) ; SIM2: GSM (Telenor)

Country: India

Problem:

My phone automatically gets shutdown after going to sleep mode within few minutes of latching to the LTE network. The problem vanishes when I disable the LTE sim card i.e I do not face any shut down when the LTE sim is disabled. I am pasting few lines of logcat just before the shutdown. I request you to please have a look at the logcat and let me know of any problems. Any help would be highly appreciated.

LOGCAT:

[ 02-17 16:58:55.129 847: 881 I/PowerManagerService ]

Going to sleep due to screen timeout (uid 1000)...

[ 02-17 16:58:55.639 847: 880 I/DisplayManagerService ]

Display device changed: DisplayDeviceInfo{"Built-in Screen": uniqueId="local:0", 1080 x 1920, 60.0 fps, supportedRefreshRates [60.0], density 480, 449.704 x 447.412 dpi, appVsyncOff 7500000, presDeadline 12666667, touch INTERNAL, rotation 0, type BUILT_IN, state OFF, FLAG_DEFAULT_DISPLAY, FLAG_ROTATES_WITH_CONTENT, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}

[ 02-17 16:58:55.639 847: 847 V/ActivityManager ]

Display changed displayId=0

[ 02-17 16:58:55.649 263: 263 D/SurfaceFlinger ]

Set power mode=0, type=0 flinger=0x55ba442480

[ 02-17 16:58:55.649 263: 263 D/qdhwcomposer ]

hwc_setPowerMode: Setting mode 0 on display: 0

[ 02-17 16:58:55.659 263: 263 E/qdutils ]

int qdutils::getHDMINode(): Failed to open fb node 2

[ 02-17 16:58:55.659 263: 263 E/qdutils ]

int qdutils::getHDMINode(): Failed to find HDMI node

[ 02-17 16:58:55.839 263: 603 I/qdhwcomposer ]

handle_blank_event: dpy:0 panel power state: 0

[ 02-17 16:58:55.839 263: 603 E/qdutils ]

int qdutils::getHDMINode(): Failed to open fb node 2

[ 02-17 16:58:55.839 263: 603 E/qdutils ]

int qdutils::getHDMINode(): Failed to find HDMI node

[ 02-17 16:58:55.839 263: 263 D/qdhwcomposer ]

hwc_setPowerMode: Done setting mode 0 on display 0

[ 02-17 16:58:55.839 847: 1190 D/SurfaceControl ]

Excessive delay in setPowerMode(): 202ms

[ 02-17 16:58:55.849 847: 881 I/QCOM PowerHAL ]

Got set_interactive hint

[ 02-17 16:58:55.849 847: 881 I/DreamManagerService ]

Entering dreamland.

[ 02-17 16:58:55.849 847: 878 I/DreamController ]

Starting dream: name=ComponentInfo{com.android.systemui/com.android.systemui.doze.DozeService}, isTest=false, canDoze=true, userId=0

[ 02-17 16:58:55.859 847: 881 I/PowerManagerService ]

Dozing...

[ 02-17 16:58:55.889 1202: 1202 D/PhoneStatusBar ]

disable: < expand ICONS alerts SYSTEM_INFO back HOME RECENT clock SEARCH >

[ 02-17 16:58:55.909 1202: 1982 D/BluetoothAdapter ]

740241417: getState() : mService = null. Returning STATE_OFF

[ 02-17 16:58:55.909 1202: 1982 D/BluetoothAdapter ]

740241417: getState() : mService = null. Returning STATE_OFF

[ 02-17 16:58:55.919 1202: 1982 D/BluetoothAdapter ]

740241417: getState() : mService = null. Returning STATE_OFF

[ 02-17 16:58:55.919 1202: 1982 D/BluetoothAdapter ]

740241417: getState() : mService = null. Returning STATE_OFF

[ 02-17 16:58:55.929 1202: 1202 D/PhoneStatusBar ]

disable: < expand ICONS alerts SYSTEM_INFO back HOME RECENT clock SEARCH >

[ 02-17 16:58:55.939 1202: 1982 D/BluetoothAdapter ]

740241417: getState() : mService = null. Returning STATE_OFF

[ 02-17 16:58:55.939 1202: 1982 D/BluetoothAdapter ]

740241417: getState() : mService = null. Returning STATE_OFF

[ 02-17 16:58:55.949 847: 870 E/SensorService ]

sensor batch failed 0x7fa0049e90 23 0 200000000 100000000 err=Invalid argument

[ 02-17 16:58:55.999 847: 1924 D/SensorHAL ]

lsm6db0_tilt: power-on.

[ 02-17 16:58:55.999 847: 869 E/SensorService ]

sensor batch failed 0x7fa0049e90 5 0 200000000 100000000 err=Invalid argument

[ 02-17 16:58:55.999 847: 1858 D/SensorHAL ]

distance: power-on.

[ 02-17 16:58:56.059 308: 1089 D/audio_hw_primary ]

adev_set_parameters: enter: screen_state=off

[ 02-17 16:58:56.059 308: 1089 D/audio_hw_extn ]

audio_extn_set_anc_parameters: anc_enabled:0

[ 02-17 16:58:56.059 847: 1164 E/WifiStateMachine ]

cancelDelayedScan -> 26

[ 02-17 16:58:56.089 2665: 2665 W/Settings ]

Setting android_id has moved from android.provider.Settings.System to android.provider.Settings.Secure, returning read-only value.

[ 02-17 16:58:56.099 2665: 2665 I/OuterReceiverDispatcher ]

android.intent.action.SCREEN_OFF

[ 02-17 16:58:56.099 2665: 2665 D/CMBaseReceiver ]

com.keniu.security.basecomponent.receiver.outer.ORDispatcherService 0ms

[ 02-17 16:58:56.099 2665: 2665 D/CMBaseReceiver ]

com.cleanmaster.boost.autostarts.data.ComponentMonitorReceiver 0ms

[ 02-17 16:58:56.109 847: 1810 D/SensorHAL ]

als: power-off.

[ 02-17 16:58:56.219 2665: 2665 D/@@@ ]

onReceive

[ 02-17 16:59:03.409 363: 363 I/MSM-irqbalance ]

Decided to move IRQ130 from CPU5 to CPU6