Page 1 of 5 1234 ... LastLast
Results 1 to 25 of 112
Like Tree15Likes
  1. Thread Author  Thread Author    #1  
    jawz101's Avatar

    Posts
    155 Posts
    ROM
    MiRaGe ROM/jawz101 kernel

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

    XDA user chad0989 made a 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.
    to see what was done to enable it on other variants

    chad0989 even made a little toggle app on the Google Play store

    ... I will be making a similar toggle app made with Tasker & will post a download some time in the next week or so.

    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 to get the mA power draw.
    Attached Thumbnails Attached Thumbnails [Kernel mod] enable USB fast charging(now in the jawz101 kernel!-screenshot-1347075221839.png   [Kernel mod] enable USB fast charging(now in the jawz101 kernel!-screenshot-1347075334299.png  
    Attached Files Attached Files
    Last edited by jawz101; 09-08-2012 at 02:06 PM. Reason: got it working so now it's a real mod
  2. #2  
    sammyz's Avatar

    Posts
    825 Posts
    ROM
    OV:quattrimus OM:BACKside

    Default

    Hmmm, I have Ubuntu set up right now to build kernels, but I don't have a V to test on......

    Sent from my LG-LW690 using Tapatalk 2
  3. #3  
    sellers86's Avatar

    Posts
    1,835 Posts
    ROM
    CNA/CM9/Mirage

    Default Re: kernel mod to enable USB fast charging

    Quote Originally Posted by sammyz View Post
    Hmmm, I have Ubuntu set up right now to build kernels, but I don't have a V to test on......

    Sent from my LG-LW690 using Tapatalk 2
    make it flashable, Ill probably test. Im sure a lot of people would
    Guess whos coming back!
  4. #4  

    Default

    +1


    Isn't this built in on AOKP too?

    Sent from my LG-VM670 using Tapatalk 2
  5. #5  
    sammyz's Avatar

    Posts
    825 Posts
    ROM
    OV:quattrimus OM:BACKside

    Default

    Quote Originally Posted by sellers86 View Post
    make it flashable, Ill probably test. Im sure a lot of people would
    Will download OV kernel source and try to build when I get home.
    Edit: gonna try on ICS kernel first, then GB if it fails.

    Sent from my LG-LW690 using Tapatalk 2
  6. Thread Author  Thread Author    #6  
    jawz101's Avatar

    Posts
    155 Posts
    ROM
    MiRaGe ROM/jawz101 kernel

    Default Re: kernel mod to enable USB fast charging

    Quote Originally Posted by sellers86 View Post
    make it flashable, Ill probably test. Im sure a lot of people would
    does the actual patch look like it's something flashable? The commands to execute it could be once the functionality is baked into the kernel but I dunno.

    Quote Originally Posted by ThatGuyLurkin View Post
    +1
    Isn't this built in on AOKP too?

    Sent from my LG-VM670 using Tapatalk 2
    I'm pretty sure it is. I'm still stuck on the GB Roms though
    Last edited by jawz101; 08-17-2012 at 12:18 AM.
  7. #7  
    sammyz's Avatar

    Posts
    825 Posts
    ROM
    OV:quattrimus OM:BACKside

    Default

    Quote Originally Posted by jawz101 View Post
    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 .....

    Edit: nvm, never bothered to look at xda....

    Sent from my LG-LW690 using Tapatalk 2
    Last edited by sammyz; 08-14-2012 at 02:42 PM.
  8. Thread Author  Thread Author    #8  
    jawz101's Avatar

    Posts
    155 Posts
    ROM
    MiRaGe ROM/jawz101 kernel

    Default 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.

    I don't know if you can make the patch a flashable thing, though.
  9. #9  
    sammyz's Avatar

    Posts
    825 Posts
    ROM
    OV:quattrimus OM:BACKside

    Default

    Quote Originally Posted by jawz101 View Post
    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.

    Sent from my LG-LW690 using Tapatalk 2
  10. #10  
    Zakman's Avatar

    Posts
    492 Posts
    ROM
    CM10/BobzHome's 4.1

    Default

    Can someone patch this to thekravens test 15 kernel??? I'd like to use it in cm10

    Sent from my LG-VM670 using Android Central Forums
  11. #11  

    Default

    Seeing as it's a kernel patch, I wonder if TDM included it in his kernel.

    And yeah, all I use is Gingerbread :P

    Sent from my LG-VM670 using Tapatalk 2
    Thanked by:
  12. #12  
    sammyz's Avatar

    Posts
    825 Posts
    ROM
    OV:quattrimus OM:BACKside

    Default

    Quote Originally Posted by Zakman View Post
    Can someone patch this to thekravens test 15 kernel??? I'd like to use it in cm10

    Sent from my LG-VM670 using Android Central Forums
    Get me the source please, I'll build as soon as I have time......not today, maybe tomorrow or Thursday ....

    Sent from my LG-LW690 using Tapatalk 2
  13. #13  
    sellers86's Avatar

    Posts
    1,835 Posts
    ROM
    CNA/CM9/Mirage

    Default

    Quote Originally Posted by sammyz View Post
    Get me the source please, I'll build as soon as I have time......not today, maybe tomorrow or Thursday ....

    Sent from my LG-LW690 using Tapatalk 2
    Should be at github.com/thekraven

    Sent from my VM670 using Tapatalk
    Guess whos coming back!
  14. #14  
    sammyz's Avatar

    Posts
    825 Posts
    ROM
    OV:quattrimus OM:BACKside

    Default Re: kernel mod to enable USB fast charging

    Quote Originally Posted by sellers86 View Post
    Should be at github.com/thekraven

    Sent from my VM670 using Tapatalk
    ics13,17,18,19......no 15 :/
    edit: nvm was looking at rom source instead of kernel source.....need coffee
    Last edited by sammyz; 08-14-2012 at 08:31 PM.
    Thanked by 2:
    jonny5449 likes this.
  15. #15  
    sammyz's Avatar

    Posts
    825 Posts
    ROM
    OV:quattrimus OM:BACKside

    Default

    Someone running thekraven's test 15 kernel, run this command and upload the file please

    adb pull /proc/config.gz

    You will find config.gz in same directory as adb.

    Sent from my LG-LW690 using Tapatalk 2
  16. #16  
    Zakman's Avatar

    Posts
    492 Posts
    ROM
    CM10/BobzHome's 4.1

    Default Re: kernel mod to enable USB fast charging

    error: device not found.
  17. #17  
    sammyz's Avatar

    Posts
    825 Posts
    ROM
    OV:quattrimus OM:BACKside

    Default

    Quote Originally Posted by Zakman View Post
    error: device not found.
    Adb is not set up correctly ........anyone else?

    Sent from my LG-LW690 using Tapatalk 2
  18. #18  
    bigsupersquid's Avatar
    o_O

    Posts
    1,418 Posts
    ROM
    OV KitKat-JBC, 3.0 kernel

    Default Re: kernel mod to enable USB fast charging

    This patch is written to go into another device/board and needs modification to build for thunderc.
    keep the wife happy with my dev time:
    donate!
    the THANKS button is quite acceptable if you're as stingy as me, too.
  19. #19  
    sammyz's Avatar

    Posts
    825 Posts
    ROM
    OV:quattrimus OM:BACKside

    Default

    Quote Originally Posted by bigsupersquid View Post
    This patch is written to go into another device/board and needs modification to build for thunderc.
    I figured that would be a problem...and figured some editing needs to be done...

    Sent from my LG-LW690 using Tapatalk 2
  20. Thread Author  Thread Author    #20  
    jawz101's Avatar

    Posts
    155 Posts
    ROM
    MiRaGe ROM/jawz101 kernel

    Default Re: kernel mod to enable USB fast charging

    Quote Originally Posted by bigsupersquid View Post
    This patch is written to go into another device/board and needs modification to build for thunderc.
    most def. that's where I'm trying to figure out what files I need to touch:
    FROM THE PATCH
    /arch/arm/mach-s5pv210/Kconfig
    +config FORCE_FAST_CHARGE

    /arch/arm/mach-s5pv210/Makefile
    +obj-$(CONFIG_FORCE_FAST_CHARGE)

    /arch/arm/mach-s5pv210/fastchg.c *new file
    +#include <linux/fastchg.h>

    /arch/arm/mach-s5pv210/mach-herring.c
    +#ifdef CONFIG_FORCE_FAST_CHARGE
    +#include <linux/fastchg.h>

    /include/linux/fastchg.h *new file

    FOR VM670
    /arch/arm/mach-msm/Kconfig?
    +config FORCE_FAST_CHARGE

    /arch/arm/mach-msm/Makefile?
    +obj-$(CONFIG_FORCE_FAST_CHARGE)

    /arch/arm/mach-msm/fastchg.c *new file
    +#include <linux/fastchg.h>

    /arch/arm/mach-msm/???.c
    +#ifdef CONFIG_FORCE_FAST_CHARGE
    +#include <linux/fastchg.h>

    /include/linux/fastchg.h *new file


    I don't know if I need to go into the makefile & kconfig in \arch\arm\mach-msm & edit those or arch\arm\mach-msm\lge\ to edit them
  21. #21  
    sammyz's Avatar

    Posts
    825 Posts
    ROM
    OV:quattrimus OM:BACKside

    Default

    Try one, build, flash, if it fails, try /lge, build, flash...

    Sent from my LG-LW690 using Tapatalk 2
  22. #22  
    sammyz's Avatar

    Posts
    825 Posts
    ROM
    OV:quattrimus OM:BACKside

    Default Re: kernel mod to enable USB fast charging

    Quote Originally Posted by sellers86 View Post
    Should be at github.com/thekraven

    Sent from my VM670 using Tapatalk
    test15 is actually on bitbucket.org......compiling test15 now
    Link to test15:
  23. #23  
    sammyz's Avatar

    Posts
    825 Posts
    ROM
    OV:quattrimus OM:BACKside

    Default Re: kernel mod to enable USB fast charging

    look further in this thread for flashable and sources
    Last edited by sammyz; 08-16-2012 at 06:09 PM.
  24. Thread Author  Thread Author    #24  
    jawz101's Avatar

    Posts
    155 Posts
    ROM
    MiRaGe ROM/jawz101 kernel

    Default Re: kernel mod to enable USB fast charging

    schweet. I just got done doing it for my kernel though I haven't tested it yet.
  25. #25  
    sammyz's Avatar

    Posts
    825 Posts
    ROM
    OV:quattrimus OM:BACKside

    Default

    Anyone test mine??? Btw jawz, I added patch to /arch/arm/mach-msm/lge and for the something_Herring.c I added to device_lge.c I think it's called.

    Sent from my LG-LW690 using Tapatalk 2
Page 1 of 5 1234 ... LastLast

Posting Permissions

B