[G2 Android Development] duki994:
[MENTION=2376110]dorimanx[/MENTION]

Here's how i reproduced SOD (or should I say "SOD" because it's not really SOD?) on both OptimusG3 and stock 20G.

Turn on smart screen feature just to stay sure screen will wake up. Sometimes it worked with power button, but with smart screen you are sure that screen will wake up

1. Lock phone

2. Double tap to unlock

3. Double tap to lock

4. Continue cycle for 7-20times until SOD appears (it will appear in less than a minute)

This method worked on two G2s (D802 version, one friends with OptimusG3 1.4.1 ROM, second mine with stock 20G) with latest beta.

After you get SOD, unlock the screen with power button (screen will not wake up). Wait for some time. Smart screen feature WILL turn the screen on.

Then I captured logs without actually rebooting device.

Will go with live adb debugging now :)

Also after a few "double tap cycles" notice how the screen wakeup is taking longer? And in debug there is more touch wakeup gesture get data failures. Also some else failed lines from [Touch E]

EDIT:

From live debugging I saw this line when SOD happened.

PM: Syncing filesystems

It went for a while till i got screen back on.

using adb shell cat /proc/kmsg

---------- Post added at 07:49 PM ---------- Previous post was at 07:28 PM ----------

[MENTION=2376110]dorimanx[/MENTION]

Now something from live adb shell /proc/kmsg

EDIT2: Missing mdss dsi panel on, mdss ctrl and a few mdss lines. argc kcall before panel on?

[kpdbl LED] button-backlight2: 0
update_preset_lcdc_lut: update_preset_lcdc_lut red=[255], green=[255], blue=
255]
mdss_mdp_pp_argc_kcal: >>>>> mdss_mdp_pp_argc_kcal
PM: Syncing filesystems ...
init: sys_prop: permission denied uid:1013 name:camera.4k2k.enable
init: sys_prop: permission denied uid:1013 name:camera.4k2k.enable
msm_sensor_power_up:1041 sensor_name imx132
MSM-CPP cpp_init_hardware:769 stream_cnt:0
msm_sensor_match_id: read id: 132 expected id 132:
msm_sensor_power_up sensor_name imx132 exit
msm_sensor_config:1777 sensor state 1
MSM-CPP cpp_load_fw:897 MC Bootloader Version: 0x312e3176
MSM-CPP cpp_load_fw:909 CPP FW Version: 0x1002000a
MSM-CPP msm_cpp_subdev_ioctl:1670 stream_cnt:1
msm_ispif_init:957 camera_wake_lock unlock
msm_hotplug: suspended.
MSM-CPP msm_cpp_subdev_ioctl:1707 stream_cnt:0
VFS: do_fsync pid:8424(Thread-3624)(parent:338/zygote)
takes 5026 ms to fsync /mpt/MPT_CommonData.db.
[RGB LED] pattern_num=0
[kpdbl LED] button-backlight1: 0
[kpdbl LED] button-backlight2: 0
[RGB LED] pattern_num=0
[kpdbl LED] button-backlight1: 0
[kpdbl LED] button-backlight2: 0
[RGB LED] pattern_num=3
done.
msm_ispif_release:1059 Before suspend, camera release need time to work com
lete.
msm_sensor_power_down:1230 sensor_name imx132
msm_sensor_power_down:1302 sensor_name imx132 exit
msm_sensor_config:1805 sensor state 0
max17048_get_config : config = 0x627e
max17048_set_rcomp_by_temperature : temp =27, PreviousRcomp =0x62 -> newRcom
= 0x62
LGE charging scenario : state 0 -> 0(0-0), temp=27, volt=4135, BTM=0, charge
=1, cur_set=500/500, chg_cur = 441

After this line (led blue for double tap) [kpdbl LED] button-backlight2: 0

Screen froze

Camera and CMOS image sensor init? (EDIT: Maybe Smart Screen feature. But it activates only when screen timeout is near)

init: sys_prop: permission denied uid:1013 name:camera.4k2k.enable
init: sys_prop: permission denied uid:1013 name:camera.4k2k.enable
msm_sensor_power_up:1041 sensor_name imx132

And again few seconds delay from wake up the screen (but it woke up insead of SOD ---> this happens when on USB or charger)

[kpdbl LED] button-backlight2: 0
mdss_fb_blank_sub: UNBLANK
mdss_mdp_overlay_start: starting fb0 overlay
mdss_mdp_cmd_start
mdss_dsi_panel_power_on: on
mdss_dsi_unblank+:
mdss_dsi_panel_on: ctrl=dfe8b810 ndx=0 maker=0
lm3630_backlight_on with level 87
init: sys_prop: permission denied uid:1013 name:camera.4k2k.enable
init: sys_prop: permission denied uid:1013 name:camera.4k2k.enable
msm_sensor_power_up:1041 sensor_name imx132
msm_sensor_match_id: read id: 132 expected id 132:
msm_sensor_power_up sensor_name imx132 exit
msm_sensor_config:1777 sensor state 1
MSM-CPP cpp_init_hardware:769 stream_cnt:0
MSM-CPP cpp_load_fw:897 MC Bootloader Version: 0x312e3176
MSM-CPP cpp_load_fw:909 CPP FW Version: 0x1002000a
MSM-CPP msm_cpp_subdev_ioctl:1670 stream_cnt:1

Camera init again?

And this is when screen behaves normal (no SODs) from double tap to automatic screen off

[Touch E] [touch_gesture_wakeup_func 2126] touch_gesture_wakeup_func get data
fail
[RGB LED] pattern_num=0
[RGB LED] pattern_num=0
[RGB LED] pattern_num=0
[kpdbl LED] button-backlight1: 0
[kpdbl LED] button-backlight2: 0
[RGB LED] pattern_num=0
[RGB LED] pattern_num=0
[kpdbl LED] button-backlight1: 0
[kpdbl LED] button-backlight2: 0
[RGB LED] pattern_num=0
[kpdbl LED] button-backlight1: 0
[kpdbl LED] button-backlight2: 0
[POWERSUSPEND] autosleep resquests wakeup.
[POWERSUSPEND] state deactivated.
[POWERSUSPEND] entering resume...
[POWERSUSPEND] resuming...
dhd_late_resume: enter
dhd_set_suspend: Remove extra suspend setting
[POWERSUSPEND] resume completed.
LGE charging scenario : state 0 -> 0(0-0), temp=27, volt=4157, BTM=0, charger
=1, cur_set=500/500, chg_cur = 398
mdss_fb_blank_sub: UNBLANK
mdss_mdp_overlay_start: starting fb0 overlay
mdss_mdp_cmd_start
mdss_dsi_panel_power_on: on
mdss_dsi_unblank+:
mdss_dsi_panel_on: ctrl=dfe8b810 ndx=0 maker=0
update_preset_lcdc_lut: update_preset_lcdc_lut red=[255], green=[255], blue=[
255]
mdss_mdp_pp_argc_kcal: >>>>> mdss_mdp_pp_argc_kcal
init: sys_prop: permission denied uid:1013 name:camera.4k2k.enable
init: sys_prop: permission denied uid:1013 name:camera.4k2k.enable
msm_sensor_power_up:1041 sensor_name imx132
MSM-CPP cpp_init_hardware:769 stream_cnt:0
msm_sensor_match_id: read id: 132 expected id 132:
msm_sensor_power_up sensor_name imx132 exit
msm_sensor_config:1777 sensor state 1
MSM-CPP cpp_load_fw:897 MC Bootloader Version: 0x312e3176
MSM-CPP cpp_load_fw:909 CPP FW Version: 0x1002000a
lm3630_backlight_on with level 87
MSM-CPP msm_cpp_subdev_ioctl:1670 stream_cnt:1
msm_ispif_init:957 camera_wake_lock unlock
MSM-CPP msm_cpp_subdev_ioctl:1707 stream_cnt:0
msm_ispif_release:1059 Before suspend, camera release need time to work comp
lete.
[RGB LED] pattern_num=0
[kpdbl LED] button-backlight1: 0
[kpdbl LED] button-backlight2: 0
[RGB LED] pattern_num=0
[kpdbl LED] button-backlight1: 0
[kpdbl LED] button-backlight2: 0
[RGB LED] pattern_num=3
lm3630_backlight_off from level 69
mdss_fb_blank_sub: BLANK
mdss_mdp_ctl_stop: ctl_num=0
mdss_mdp_cmd_stop
VFS: do_fsync pid:8424(Thread-3624)(parent:338/zygote)
takes 8627 ms to fsync /mpt/MPT_CommonData.db.
mdss_dsi_blank+:
mdss_dsi_panel_off: ctrl=dfe8b810 ndx=0
mdss_dsi_panel_power_on: off
[POWERSUSPEND] autosleep resquests sleep.
[POWERSUSPEND] state activated.
[POWERSUSPEND] entering suspend...
[POWERSUSPEND] suspending...
dhd_power_suspend: enter
dhd_set_suspend: force extra Suspend setting
PM: Syncing filesystems ... dhd_get_suspend_bcn_li_dtim beacon=100 bcn_li_dti
m=3 DTIM=3 Listen=10
[POWERSUSPEND] suspend completed.
done.
msm_sensor_power_down:1230 sensor_name imx132
msm_sensor_power_down:1302 sensor_name imx132 exit
msm_sensor_config:1805 sensor state 0