Routine non-Sleep detection for Android

Source: Internet
Author: User

Recently, I was debugging a mobile phone project on the android platform, and found that the mobile phone cannot enter the STANDBY state, resulting in high power consumption,

1. Capture the kernel log in the STANDBY state of the system, that is, the/proc/kmsg file.
It is best to use the tcard to capture the log or redirect the kmsg file to the built-in USB flash drive space of the mobile phone. After the server has enough time, retrieve the log from the mobile phone for analysis.

2. The system does not enter a low-power sleep state, most of which are caused by frequent wakeup irq.

In the kernel pm_debug.c, void inc_irq (int irq) prints the irq of the wake-up System. The log keyword is "wakeup irq ="

3. Search for the key word "wakeup irq =" in the kernel log, that is, kmsg.

If irq = 142 appears frequently, you can find the corresponding irq processing function in the/proc/interrupts file on your mobile phone.

"142: 1528 irq-d-gpio taos_irq"

Later, we found a problem with the taos driver. After the change, the standby power consumption was normal.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.