Objective
Welcome everyone I share and recommend useful code Snippets ~ ~
Statement
Welcome reprint, but please keep the original source of the article:
Csdn:http://www.csdn.net
Rainy season o mo away: http://blog.csdn.net/luckkof
Body
[DESCRIPTION]by default in the 89 platform shutdown charge, the power to 90 will show the green light, if need to 100 to show the green light, needModify code A little bit, there is no dedicated interface in this area. [PLATFORM]MT6589[ How to does]
the following changes will Apply to the IPO as well Kpoc. Additional judgment is required if separate needs are required .
The following changes will apply to IPOs and Kpoc. If you need to separate, you need to add additional judgment.
1. This part of the customized can be directly modified
alps\mediatek\external\ipod\ Ipodlights.cpp
2. Design Now
> 90%: Light_chgfull
< 90%: Light_chgon
3. can be modified into
> 90%: Light_chgfull () inside to determine the power , to decide do you want to call Light_chgon ().
< 90%: Light_chgon
4. The battery charge can be obtained within the following SYSFS
/sys/class/power_supply/battery/capacity
5. Mode can be obtained within SYSFS
/sys/class/boot/boot/boot/boot_mode