[Q] Edit Android Kernel to speed up charging cable unplug response time

2 posts
Thanks Meter: 0
By fire_dude6, Junior Member on 10th July 2014, 05:09 AM
Post Reply Subscribe to Thread Email Thread
I can't ask this in the Original Development section, so I'm asking it here in the Q&A part, but if it's in the wrong place, feel free to move it.

I'm developing for the GT-N8010 and currently trying to modify the kernel to increase the time between a USB charging cable being unplugged and the system being notified/turning the screen on. Currently it takes about 2 second for the OS to determine the cable has been unplugged and pass this message to applications to use. I've checked in /sys/class/power_supply and found that it recognizes the USB cable being unplugged almost as soon as it is unplugged, so I'm wondering how I can a) speed up the detection by the OS or b) add the ability for a direct message to be sent to applications.

Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes