Related
This is for kernel devs only. The patch itself is useless to those who do not/can not compile their own kernel.
I put together this patch for you guys at the request of a few different members here in the nexus S forum who had saw my patch in the gnex forum. 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.
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
Some roms (AOKP) have also implemented toggles.
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
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).
Here you go. Good luck have fun:
http://www.incredikernel.com/wp-con...wnload.php?id=nexus_s_force_fast_charge.patch
very nice, thanks
Nice job... Thanks!
Nice......
Sent from my Nexus S
Many thanks . Hoping our devs implement this to their kernels.
Sent from my Nexus S
Seems to be working great here.. didn't realize it could charge this much faster.
Sent from my Nexus S using XDA
Great job! Thank you!
brenix said:
Seems to be working great here.. didn't realize it could charge this much faster.
Sent from my Nexus S using XDA
Click to expand...
Click to collapse
Nexus S ? How do you use it since there are no kernels supporting this feature yet ?
Sent from my Nexus S
Oodie said:
Nexus S ? How do you use it since there are no kernels supporting this feature yet ?
Click to expand...
Click to collapse
I reckon he compiled one for himself.
Its been brought to my attention that the AOKP toggle interferes in some way with the widget. I'm going to contact them and see what's up. I think they may be setting the permissions of the fast charge toggle in an undesirable manner.
chad0989 said:
Its been brought to my attention that the AOKP toggle interferes in some way with the widget. I'm going to contact them and see what's up. I think they may be setting the permissions of the fast charge toggle in an undesirable manner.
Click to expand...
Click to collapse
Or you could just make an app for it till you resolve the issue.
Sent from my Nexus S
Wooooow!! Thank you!!
Sent from my Nexus S using xda app
r_data said:
Wooooow!! Thank you!!
Sent from my Nexus S using xda app
Click to expand...
Click to collapse
Waiting [im]patiently
Oodie said:
Or you could just make an app for it till you resolve the issue.
Sent from my Nexus S
Click to expand...
Click to collapse
It's not an issue on my end. It's theirs as testers had no issues with any other ROMs.
I do have an app also via will toggle, its called incredicontrol. I didn't mention it because it doesn't fully support the s. You're free to try it though. It's free in the market.
Sent from my ADR6425LVW using XDA
chad0989 said:
It's not an issue on my end. It's theirs as testers had no issues with any other ROMs.
I do have an app also via will toggle, its called incredicontrol. I didn't mention it because it doesn't fully support the s. You're free to try it though. It's free in the market.
Sent from my ADR6425LVW using XDA
Click to expand...
Click to collapse
oh ! I've use incredicontrol for a long time when i was using my X10 . Didn't know it was yours
& waiting for our kernel devs to implement your patch & will test & give feedback gladly .
Thanks again for your hard work
r_data said:
Wooooow!! Thank you!!
Sent from my Nexus S using xda app
Click to expand...
Click to collapse
Currently using your Kernel....can wait for you to add it
Like how fast compare to the standard 3,5 hrs full charge?
doc_v15 said:
Like how fast compare to the standard 3,5 hrs full charge?
Click to expand...
Click to collapse
I tested this patch out on a test kernel chad sent me. I didn't test to long as wifi was broken with his kernel. Its definitely faster than regular usb charging if your USB can put out more. It takes advantage of the extra juice instead of limiting it, It all depends and what your trying to charge from. I'm just waiting for it to implemented into our kernels. So some real test can be done.
Sent from my Nexus S using XDA
THANK YOU VERY MUCH FOR THIS! I'm a student, and it dreadful to charge my phone from my laptop. Here's to hoping with the patch, I can charge a bit quicker with USB.
Will this hurt our device . Or will it affect the battery in a harmful way ?
Sent from my Nexus S
This is for kernel devs only. The patch itself is useless to those who do not/can not compile their own kernel.
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).
http://www.incredikernel.com/wp-con.../download.php?id=vivo_force_fast_charge.patch
i'm not a dev, but im very looking forward to seeing this in future kernel updates.
there are still many car chargers out there that could do 1ah charging but are recognized as standard usb chargers. with that you cant even use navigation without loosing battery over some time.
btw your apps are awesome!
veitograf said:
i'm not a dev, but im very looking forward to seeing this in future kernel updates.
there are still many car chargers out there that could do 1ah charging but are recognized as standard usb chargers. with that you cant even use navigation without loosing battery over some time.
btw your apps are awesome!
Click to expand...
Click to collapse
What kernel do you use? I'll patch it and build a copy for you real quick.
Edit: I looked at your signature and saw virtuous quattro. Here is the kernel built from the github from that ROM:
http://chad0989.dyndns.org/mirror/virtuous-quattro-vivo-fastcharge.zip
Enjoy.
I'm sure interested in this, am sick of my phone dying when connected to car charger. Hopefully someone can write this for affinity as I just don't have the skills.
Amazes me how you guys can do this stuff
chad0989 said:
What kernel do you use? I'll patch it and build a copy for you real quick.
Edit: I looked at your signature and saw virtuous quattro. Here is the kernel built from the github from that ROM:
http://chad0989.dyndns.org/mirror/virtuous-quattro-vivo-fastcharge.zip
Enjoy.
Click to expand...
Click to collapse
thanks man, appreciate that!
edit, does this work with sensation too? i got one lying around.
veitograf said:
thanks man, appreciate that!
edit, does this work with sensation too? i got one lying around.
Click to expand...
Click to collapse
Not yet, but if there is interest I can make a patch for the sensation also.
Hi chad! Would really like to port your patch to the Sony's Xperia Devices but I'm stuck at the moment on
msm72k_udc.c
Could I ask some help?
We don't have charger_detect() function so I'm lost on where to apply some of the patches on that file. If you want you could browse the file here
http://108.166.90.15/.rom/XPR/kernel/drivers/usb/gadget/msm72k_udc.c
Or browse the entire kernel for Xperia 2011 devices here
http://108.166.90.15/.rom/XPR/kernel/
and tarball here if you want
http://108.166.90.15/.rom/XPR.tar
Anyone knows if any existing IncS kernels support Force AC? I really like to use it to boost the charge time.
@chad0989, if possible, can you also mod the X-ICS AOSP V3 kernel for us? The source link is here. Many thanks!
chad0989 said:
This is for kernel devs only. The patch itself is useless to those who do not/can not compile their own kernel.
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).
http://www.incredikernel.com/wp-con.../download.php?id=vivo_force_fast_charge.patch
Click to expand...
Click to collapse
Can you make a Kernel for sense Rom with that and uv support?
Sent from my HTC Incredible S using xda premium
ignore---sry
Hi, I'm using Nik's Project X and I would really really like to be able to force ac charge as I lost my original HTC charger. How can I go about doing this
JerryBYong said:
Hi, I'm using Nik's Project X and I would really really like to be able to force ac charge as I lost my original HTC charger. How can I go about doing this
Click to expand...
Click to collapse
Downloading the widget should be sufficient.
Sent from my HTC Incredible S using Tapatalk 2
I just got the widget, and it says kernel not supported. What kernel must I use and how do I install it
Sent from my HTC Incredible S using xda premium
JerryBYong said:
I just got the widget, and it says kernel not supported. What kernel must I use and how do I install it
Sent from my HTC Incredible S using xda premium
Click to expand...
Click to collapse
A kernel with force ac charging included, like the one itandy made a while ago for ice cold sandwich
Edit: found it
http://forum.xda-developers.com/showthread.php?t=1686995
Sent from my Nexus 7
markj338 said:
A kernel with force ac charging included, like the one itandy made a while ago for ice cold sandwich
Edit: found it
http://forum.xda-developers.com/showthread.php?t=1686995
Sent from my Nexus 7
Click to expand...
Click to collapse
Ok but that kernel is a asop one and I'm project x is a sense rom right? So its not compatible
Sent from my HTC Incredible S using xda premium
JerryBYong said:
Ok but that kernel is a asop one and I'm project x is a sense rom right? So its not compatible
Sent from my HTC Incredible S using xda premium
Click to expand...
Click to collapse
Yeah it won't work, its one of those 'wait for source' things but now that we have it, the code needs to be merged into the kernel
markj338 said:
Yeah it won't work, its one of those 'wait for source' things but now that we have it, the code needs to be merged into the kernel
Click to expand...
Click to collapse
So there's nothing that can be done?
Sent from my HTC Incredible S using xda premium
JerryBYong said:
So there's nothing that can be done?
Sent from my HTC Incredible S using xda premium
Click to expand...
Click to collapse
Can be done, since we have kernel sources as of yesterday
Just that someone needs to do it
If you don't mind, will you pm me when there is a kernel for project x?
Sent from my HTC Incredible S using xda premium
JerryBYong said:
If you don't mind, will you pm me when there is a kernel for project x?
Sent from my HTC Incredible S using xda premium
Click to expand...
Click to collapse
L0st.prophet's kernel works for project x, just doesn't have force ac
I will let you know if I remember
maybe you could put a request in his kernel thread
Hi,
I'm running camcory's cm10 ROM with the 20121011 gapps and TWRP. The phone works fine by itself. The issue is when I plug it into my desktop, it constantly connects and disconnects. I'm using the current drivers from Samsung. Is there something I missed in the CM10 thread about needing different drivers or is there something else going on here?
Thanks in advance,
~ Alisiel
Hmm sounds like your cord might be loose, I have no problems with usb. Are you using stock kernel or smart guys kernel?
Sent from my SGH-T679 using xda app-developers app
tazmaniondvl said:
Hmm sounds like your cord might be loose, I have no problems with usb. Are you using stock kernel or smart guys kernel?
Sent from my SGH-T679 using xda app-developers app
Click to expand...
Click to collapse
Using camcory's stock kernel. I double checked the cords before I posted. Everything seems to work fine with my Kindle Fire plugged in. Hrmm...
~ Alisiel
Hey!
I heard that Samsung Ace doesn't support otg cable.
What kind of problem couses it?
Drivers or hardware problem?
Is it possible to make it working?
marcininn said:
Hey!
I heard that Samsung Ace doesn't support otg cable.
What kind of problem couses it?
Drivers or hardware problem?
Is it possible to make it working?
Click to expand...
Click to collapse
The Ace doesn't support OTG, period.
Why? Not the required hardware onboard.
Sent from my GT-S5830 using Tapatalk 2
SGA doesn't have usb host. Then this cable is useless for this phone
So I don't care if it takes a couple hours for the phone to charge, the problem is that the phone charges to 100% in about 2 hours and I don't think that is normal, I assume the kernel with android hd revolution has fast charge enabled. I have not installed a new kernel. I did but then i flashed a new version of hd revolution, I assume that overwrites the kernel
Sent from my HTC One using xda app-developers app
manwinder said:
So I don't care if it takes a couple hours for the phone to charge, the problem is that the phone charges to 100% in about 2 hours and I don't think that is normal, I assume the kernel with android hd revolution has fast charge enabled. I have not installed a new kernel. I did but then i flashed a new version of hd revolution, I assume that overwrites the kernel
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
download an app like trickster mod and see if fast charge is enabled...
ARHD comes with the stock kernel. I believe it is turned off.
I downloaded the app but it doesn't say anything about quick charge. Maybe i am looking into the wrong place where is it in the app.
Sent from my HTC One using xda app-developers app
I believe that HTC has not enabled Qualcomm's fastcharge 1.0 and I think that the fast charge that certain custom kernel will optionally enable is a different thing entirely.
My understanding is fast charge enabled by custom kernel is more accurately called usb fast charge , which will allow greater than 500ma when plugged into pc or laptop usb 3 port for charging.
I don't believe this will alter the charge current or rate when plugged into HTC or other model of ac mains charger
Sent from my HTC One using xda app-developers app
paul_59 said:
I believe that HTC has not enabled Qualcomm's fastcharge 1.0 and I think that the fast charge that certain custom kernel will optionally enable is a different thing entirely.
My understanding is fast charge enabled by custom kernel is more accurately called usb fast charge , which will allow greater than 500ma when plugged into pc or laptop usb 3 port for charging.
I don't believe this will alter the charge current or rate when plugged into HTC or other model of ac mains charger
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
I think you are exactly correct about fast charge. And I've read that people have destroyed usb ports by trying to over-draw them with it enabled.
Sent from my HTC One using xda app-developers app
I installed battery monitor widget and it tells me the amount of current the phone is drawing from the charger and also how much it loses when it's not charging. The phone starts off at a low 220 but when I went to look at how much it was taking in it said 800. How could fast charge be enabled if I don't have it. Maybe the hd revolution has it enabled in the Rom. Is there a way to flash the stock kernel. Thanks
Sent from my HTC One using xda app-developers app
Here is a screen shot of the app
Sent from my HTC One using xda app-developers app