[Kernel mod] enable USB fast charging(now in the jawz101 kernel!

XDA user chad0989 made a patch to enable USB fast charging on several phones. Even some cheap car chargers I've had have been recognized as USB power and, consequently, the phone drains faster than it charges if I had, say, Maps and bluetooth going.

It's now ported over to the Optimus V jawz101 kernel for gingerbread IHO phones.
here's the commit to see what was done to enable it on other variants

The only drawback noted is USB mass storage won't work while it's drawing more power but who cares. That's why there's a way to toggle.
As far as safety is concerned it's been reported safe by many which makes sense since this is just getting the phone to charge as fast as a wall charger would go.

To toggle fast charging from terminal you'd need to issue the command:
on:

Code:

echo 1 > /sys/kernel/fast_charge/force_fast_charge

and off:

Code:

echo 0 > /sys/kernel/fast_charge/force_fast_charge

Attached are before & after screenshots of my phone connected to my laptop. The app I used is Battery Monitor Widget to get the mA power draw.

does the actual patch look like it's something flashable? The commands to execute it could be once the functionality is baked into the Rom.
I could even make a little free Tasker AppFactory app anyone could use once it was put in the kernel. or see if the GB Rom builders could incorporate it into the CM settings.

What are the commands? And you would just flash kernel and then execute commands in terminal .....

Re: kernel mod to enable USB fast charging

well there's code for the function that goes into the kernel & then you run a script from terminal or whatnot to toggle fast charging off & on since you'll still want to be able to turn it off when you want to connect your phone to your laptop & access the SD card storage.
It could be set to always be on and not have a toggle but there'd still need to be the kernel piece that says set USB to be AC power or back to USB power.

well there's code for the function that goes into the kernel & then you run a script from terminal or whatnot to toggle fast charging off & on since you'll still want to be able to turn it off when you want to connect your phone to your laptop & access the SD card storage.
It could be set to always be on and not have a toggle but there'd still need to be the kernel piece.

I don't know if you can make the patch a flashable thing, though.

Anything is flashable. Any app replacement, adding /replacing files, it can always be done via recovery.

Portions of this page are modifications based on work created and shared by the Android Open Source Project
and used according to terms described in the Creative Commons 2.5 Attribution License. AndroidCentral is an independent site
that is not affiliated with or endorsed by Google.