12-31-2012 06:17 AM
112 123 ...
tools
  1. anon(235100)'s Avatar
    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

    chad0989 even made a little toggle app on the Google Play store
    https://play.google.com/store/apps/d...stchargewidget
    ... 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 Battery Monitor Widget to get the mA power draw.
    08-14-2012 11:04 AM
  2. sammyz's Avatar
    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
    08-14-2012 11:10 AM
  3. sellers86's Avatar
    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
    08-14-2012 01:27 PM
  4. ThatGuyLurkin's Avatar
    +1


    Isn't this built in on AOKP too?

    Sent from my LG-VM670 using Tapatalk 2
    08-14-2012 01:52 PM
  5. sammyz's Avatar
    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
    08-14-2012 02:22 PM
  6. anon(235100)'s Avatar
    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.

    +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
    08-14-2012 02:22 PM
  7. sammyz's Avatar
    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
    08-14-2012 02:30 PM
  8. anon(235100)'s Avatar
    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.
    08-14-2012 02:40 PM
  9. sammyz's Avatar
    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
    08-14-2012 02:44 PM
  10. Zakman's Avatar
    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
    08-14-2012 03:03 PM
  11. ThatGuyLurkin's Avatar
    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
    Encerspay45 likes this.
    08-14-2012 03:33 PM
  12. sammyz's Avatar
    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
    08-14-2012 07:57 PM
  13. sellers86's Avatar
    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
    08-14-2012 08:02 PM
  14. sammyz's Avatar
    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
    jonny5449 and Zakman like this.
    08-14-2012 08:23 PM
  15. sammyz's Avatar
    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
    08-15-2012 08:15 AM
  16. Zakman's Avatar
    error: device not found.
    08-15-2012 08:46 AM
  17. sammyz's Avatar
    error: device not found.
    Adb is not set up correctly ........anyone else?

    Sent from my LG-LW690 using Tapatalk 2
    08-15-2012 12:03 PM
  18. bigsupersquid's Avatar
    This patch is written to go into another device/board and needs modification to build for thunderc.
    08-15-2012 01:09 PM
  19. sammyz's Avatar
    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
    08-15-2012 01:31 PM
  20. anon(235100)'s Avatar
    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
    08-15-2012 01:46 PM
  21. sammyz's Avatar
    Try one, build, flash, if it fails, try /lge, build, flash...

    Sent from my LG-LW690 using Tapatalk 2
    08-15-2012 02:28 PM
  22. sammyz's Avatar
    Should be at github.com/thekraven

    Sent from my VM670 using Tapatalk
    test15 is actually on bitbucket.org......compiling test15 now
    Link to test15: https://bitbucket.org/thekraven/iscr...f197f73ee/arch
    08-15-2012 08:47 PM
  23. sammyz's Avatar
    look further in this thread for flashable and sources
    08-15-2012 09:31 PM
  24. anon(235100)'s Avatar
    schweet. I just got done doing it for my kernel though I haven't tested it yet.
    08-15-2012 09:54 PM
  25. sammyz's Avatar
    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
    08-16-2012 06:51 AM
112 123 ...
LINK TO POST COPIED TO CLIPBOARD