电流排查的一般步骤以及抓log之qcm4490

Catch logs by followings steps:

  1. 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
  1. Catch log:
    adb root
    adb shell
 cd /sys/kernel/debug/qcom_sleep_stats
 grep " " * > /data/before_standby.txt
 dmesg > /data/before_dmesg.log
  1. 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
  1. 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.
  1. 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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

macheria

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值