Android power consumption (3) — analysis method of high power consumption

Time:2020-11-20

In this paper, combined with the document, a simple summary of the AP power consumption analysis methods.

The first is the official power consumption analysis flow chart

image

Pay attention to several key terms:

Modem chip

RPM resource power manager is an additional chip added to the Qualcomm MSM platform to control the whole power related shared resources

APSS application processor subsystem is what we usually call AP

The problem of power consumption is generally divided into low current, high current, or abnormal wake-up.

This paper only analyzes the power consumption from the perspective of AP, that is, from the perspective of Android system.

If the low current is too high, it is necessary to verify whether the system has entered the minimum power consumption state. VDD minimum state.

mount -t debugfs none /sys/kernel/debug/

If the system does not enter the VDD minimum state, check which item prevents the terminal from entering the VDD minimum state.

This section mainly looks at the external log of RPM. Analysis, omitted.

Next, analyze the power consumption problem caused by abnormal wake-up

image

Check the abnormal wake-up source of the AP side and check the skip of the modem block.

echo 1 >/sys/module/msm_show_resume_irq/parameters/debug_mask

echo "8 8 8 8">/proc/sys/kernel/printk

image

By viewing the status of the wake-up lock, you can mainly view active_ In the since field, you can see which lock caused the system to fail to sleep.

image

image

Conclusion: the power consumption problem of AP terminal is generally judged from low current state.

Troubleshooting: remove some external drivers, such as sensor, TP, camera, LCD, etc.

cat /sys/kernel/debug/rpm_ Stats gets whether the system is sleeping. Verify XO shutdown and VDD minimization

Check the log to get the abnormal wake-up source

echo "8 8 8 8">/proc/sys/kernel/printk

Recommended Today

PHP 12th week function learning record

sha1() effect sha1()Function to evaluate the value of a stringSHA-1Hash. usage sha1(string,raw) case <?php $str = “Hello”; echo sha1($str); ?> result f7ff9e8b7bb2e09b70935a5d785e0cc5d9d0abf0 sha1_file() effect sha1_file()Function calculation fileSHA-1Hash. usage sha1_file(file,raw) case <?php $filename = “test.txt”; $sha1file = sha1_file($filename); echo $sha1file; ?> result aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d similar_text() effect similar_text()Function to calculate the similarity between two strings. usage similar_text(string1,string2,percent) case […]