[KERNEL PATCH] Force AC (fast) Charging

Search This thread

chad0989

Senior Member
Oct 31, 2010
1,883
9,424
This is for kernel devs only. The patch itself is useless to those who do not/can not compile their own kernel.

Some of you may recognize me as the developer of IncrediControl.

This was a pretty big hit on some other devices so I figured I'd give it a shot for you guys. This allows one to force AC charging for any charger that is detected as USB (e.g. many car chargers) and pull the full current the charger can support. It also provides additional security when connecting to public charging stations because by forcing AC charging, USB/adb data transfers are disabled, protecting your data.

It is essentially a software version of the modified charge only usb cables.

Fast charge can be toggled by issuing:

echo 1 > /sys/kernel/fast_charge/force_fast_charge

and off:

echo 0 > /sys/kernel/fast_charge/force_fast_charge

In addition I have created a toggle fast charge widget that may be used to toggle fast charge on and off right from your home screen:

https://play.google.com/store/apps/details?id=com.incredicontrol.fastchargewidget

I have also implemented a toggle in IncrediControl (free) that will allow you to turn it on and off.

https://play.google.com/store/apps/details?id=com.incredicontrol

For the widget (or any fast charge toggle) to work, you MUST be running a kernel that has this patch implemented.

As a good gesture to support a fellow dev, I ask that if you implement the patch into your kernel, please link to my widget as one means to toggle it. You are of course free to provide other ways to toggle it as well if you so desire.

Kernel devs, if you would like to test the widget yourself to confirm its working, and for convenience of testing, please contact me and I will provide you with a copy. You must show that you are a kernel dev though (i.e. link me to your kernel post so I can match your username).

Right now this patch is only for the latest GB sense kernels. I'm currently working on an AOSP version which I will also post in this thread.

Enjoy!

http://www.incredikernel.com/wp-con...download.php?id=bravo_force_fast_charge.patch
 

servabat

Senior Member
Jan 25, 2012
113
19
Paris
Hi,

Thanks, I was waiting for that on Bravo since I've saw it on market by searching Incredicontrol !

Bye
 
S

shaky156

Guest
Thought i recognised your name, you dev with chad.goodman? Or maybe ive mistakened

Sent from my Desire HD
 
Last edited:

chad0989

Senior Member
Oct 31, 2010
1,883
9,424
Thought i recognised your name, you dev with chad.goodman? Or maybe ive mistakened

Sent from my Desire HD

No real affiliation with him. I think he mostly does evo 3d stuff if I'm not mistaken. I released a similar patch for kernel devs for the 3d that he may or may not have used in his kernel. If he did then you might have seen my name there.

Most people know me from IncrediControl / incredikernel
 
Last edited:

Part-T

Member
Sep 7, 2009
26
5
Looking forward to the aosp version maybe a little too much. Can anyone tell me how much quicker this charges compared to the normal mode?

Keep up the good work :)
 

chad0989

Senior Member
Oct 31, 2010
1,883
9,424
Looking forward to the aosp version maybe a little too much. Can anyone tell me how much quicker this charges compared to the normal mode?

Keep up the good work :)

On my rezound and my incredible, normal USB mode (from my laptop) charges at between 450-550mA. When I force ac they charge at 780-840mA. If you use a car charger or powered hub to charge you can probably get even more.

Sent from my ADR6425LVW using XDA
 

chad0989

Senior Member
Oct 31, 2010
1,883
9,424
Need an AOSP tester. Someone who can boot the stock GSM CM kernel fine since that's what I used as the base.
 

Part-T

Member
Sep 7, 2009
26
5
I'd be more than happy to do it, just let me know what you want testing!

Sent from my HTC Desire using XDA
 

plazma247

Senior Member
Jun 17, 2007
298
101
Damage to USB when connected

Users of this should be aware that requesting an AC charge from a USB sockets is likely to be to much of a current draw and run the possibility of causing damage.

If your having problems with car chargers / wall chargers not detecting as an AC charger there is a hardware mod instead.

Simply splice the cable and connect the two inner USB pins :

See: http://i33.photobucket.com/albums/d67/ou7shined/usb-charger-mod.jpg

From: http://androidforums.com/htc-desire/75062-charging-usb-ac-differences.html
 

chad0989

Senior Member
Oct 31, 2010
1,883
9,424
Users of this should be aware that requesting an AC charge from a USB sockets is likely to be to much of a current draw and run the possibility of causing damage.

If your having problems with car chargers / wall chargers not detecting as an AC charger there is a hardware mod instead.

Simply splice the cable and connect the two inner USB pins :

See: http://i33.photobucket.com/albums/d67/ou7shined/usb-charger-mod.jpg

From: http://androidforums.com/htc-desire/75062-charging-usb-ac-differences.html

This does the exact some thing as the hardware mod without having to rip apart your charger and start soldering. Any risks you take doing this you take by modding your charger. The hardware mod forces the charger to be detected as AC by physically shorting the data pins. This forces the charger to be detected as AC by telling the phone the data pins are shorted. In both cases the charger is detected as AC and NO MORE current is drawn or able to be drawn than from a wall charger.

You risk absolutely no damage to the phone. The only potential damage you can possibly risk is to the charging source if it can't handle the current. So I recommend that you're educated about what source you're plugging in to.

With that said though, literally thousands of people have uses this mod (over various devices by various manufacturers) and not one has run into an issue with damaging the charging source.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 11
    This is for kernel devs only. The patch itself is useless to those who do not/can not compile their own kernel.

    Some of you may recognize me as the developer of IncrediControl.

    This was a pretty big hit on some other devices so I figured I'd give it a shot for you guys. This allows one to force AC charging for any charger that is detected as USB (e.g. many car chargers) and pull the full current the charger can support. It also provides additional security when connecting to public charging stations because by forcing AC charging, USB/adb data transfers are disabled, protecting your data.

    It is essentially a software version of the modified charge only usb cables.

    Fast charge can be toggled by issuing:

    echo 1 > /sys/kernel/fast_charge/force_fast_charge

    and off:

    echo 0 > /sys/kernel/fast_charge/force_fast_charge

    In addition I have created a toggle fast charge widget that may be used to toggle fast charge on and off right from your home screen:

    https://play.google.com/store/apps/details?id=com.incredicontrol.fastchargewidget

    I have also implemented a toggle in IncrediControl (free) that will allow you to turn it on and off.

    https://play.google.com/store/apps/details?id=com.incredicontrol

    For the widget (or any fast charge toggle) to work, you MUST be running a kernel that has this patch implemented.

    As a good gesture to support a fellow dev, I ask that if you implement the patch into your kernel, please link to my widget as one means to toggle it. You are of course free to provide other ways to toggle it as well if you so desire.

    Kernel devs, if you would like to test the widget yourself to confirm its working, and for convenience of testing, please contact me and I will provide you with a copy. You must show that you are a kernel dev though (i.e. link me to your kernel post so I can match your username).

    Right now this patch is only for the latest GB sense kernels. I'm currently working on an AOSP version which I will also post in this thread.

    Enjoy!

    http://www.incredikernel.com/wp-con...download.php?id=bravo_force_fast_charge.patch
    11
    Added to my latest nightly