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

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.