Or Continue to Thread: [UNOFFICIAL][DEV/GEEKS-ONLY] C…
Find Your Device:
12th March 2012, 11:56 PM   |  #4113  
JerryScript's Avatar
Senior Member
Flag Las Vegas
Thanks Meter: 567
 
737 posts
Join Date:Joined: Mar 2011
More
Quote:
Originally Posted by thachtunganh

If you know offline charging fix in the kernel, can you tell me how to do that?

It needs to write these values (taken from /system/core/init.c)

#ifndef CHARGERMODE_CMDLINE_NAME
#define CHARGERMODE_CMDLINE_NAME "lge.reboot"
#define CHARGERMODE_CMDLINE_VALUE "pwroff"
#endif

On the VM670, we use a hack. On all forms of power off except for power-off itself, the kernel writes to last_kmsg (discovered by tdmcode). We simply check if that file exists, and set the battchg_pause value in /system/core/init.c accordingly. Then in init.DEVICE.rc, we add the corresponding boot-pause calls to the proprietary chargerlogo binary.
The Following 6 Users Say Thank You to JerryScript For This Useful Post: [ View ]