Catch logs by followings steps:
-
Set to airplane mode, close WIFI/BT/GPS/NFC/Sensor…
adb root
adb shell "mount -t debugfs none /sys/kernel/debug/"
adb shell "setprop persist.dbg.keep_debugfs_mounted true"
adb shell
echo 1 > /sys/module/msm_show_resume_irq/parameters/debug_mask
echo 1 > /sys/kernel/debug/clk/debug_suspend
echo 1 > /sys/kernel/debug/interconnect/debug_suspend
- Catch log:
adb root
adb shell
cd /sys/kernel/debug/qcom_sleep_stats
grep " " * > /data/before_standby.txt
dmesg > /data/before_dmesg.log
- Remove usb, then screen off to do standby test 5 minutes.
After sleep test, insert usb to catch logs:
catch log:
adb root
adb shell
cd /sys/kernel/debug/qcom_sleep_stats
grep " " * > /data/after_standby.txt
- Save logs:
adb pull /data/before_standby.txt
adb pull /data/after_standby.txt
adb shell cat /d/wakeup_sources > wakeup_sources11.log
adb shell cat /proc/interrupts > interrupts.log
adb shell dmesg > after_dmesg.log
adb bugreport bugreport.zip //This command need waiting to execute over.
adb shell logcat > logcat.txt //This command can force to stop after executing 30s.
- Save all following logs into one *.txt file.
adb root
adb shell
cd /sys/devices/platform/soc
grep '' /sys/devices/platform/soc/*clock-controller*/consumer:*/status
grep '' /sys/devices/platform/soc/*interconnect*/consumer:*/status
grep '' /sys/devices/platform/soc/*gdsc*/consumer:*/status
grep '' /sys/devices/platform/soc/*display_gpio_regulator*/consumer:*/status
grep '' /sys/devices/platform/soc/*psci*/consumer:*/status
grep -v active /sys/devices/platform/soc/*clock-controller*/consumer:*/status
grep -v active /sys/devices/platform/soc/*interconnect*/consumer:*/status
grep -v active /sys/devices/platform/soc/*gdsc*/consumer:*/status
grep -v active /sys/devices/platform/soc/*display_gpio_regulator*/consumer:*/status
grep -v active /sys/devices/platform/soc/*psci*/consumer:*/status
grep '' /sys/devices/platform/soc/*/state_synced