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

sammyz

Well-known member
Dec 15, 2011
825
190
0
Visit site
Re: kernel mod to enable USB fast charging

look further in this thread for flashable and sources
 
Last edited:

sammyz

Well-known member
Dec 15, 2011
825
190
0
Visit site
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
 

sammyz

Well-known member
Dec 15, 2011
825
190
0
Visit site

anon(235100)

Well-known member
Mar 20, 2011
155
50
0
Visit site
Re: kernel mod to enable USB fast charging

i'm having trouble with yours rebooting my phone before I can test it.
for what it's worth this version of his patch seems to match up more with the content of the files on our phones considering it's for another msm7x27 & cdma model phone (he has 7 versions of the patch on separate threads on the xda forums but the one below is the only one I saw for our chipset).

[KERNEL PATCH] Force AC (fast) Charging - xda-developers

following this version of the patch I was modifying
Code:
/arch/arm/mach-msm/lge/Kconfig 
    +config FORCE_FAST_CHARGE 
 
/arch/arm/mach-msm/lge/Makefile 
    +obj-$(CONFIG_FORCE_FAST_CHARGE) 
 
/arch/arm/mach-msm/lge/fastchg.c 
    +#include <linux/fastchg.h> 
     
/drivers/usb/gadget/msm72k_udc.c 
    +#ifdef CONFIG_FORCE_FAST_CHARGE 
    +#include <linux/fastchg.h> 
     
/include/linux/fastchg.h
when I try to enable it on my version with the commands:
Code:
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
On mine I get "cannot create /sys/kernel/fast_charge/force_fast_charge: directory nonexistent"

Well, when in doubt I'm messaging the creator of the patch :p
 
Last edited:
  • Like
Reactions: bigsupersquid

sammyz

Well-known member
Dec 15, 2011
825
190
0
Visit site
Well, I'm gonna try for my phone (MS690) when it works correctly I'll upload source and try to patch VM670 as well, or if you get VM670 patched correctly I'll patch MS690 the same way and give credit to you jawz, and the original guy who made the patch.

Sent from my LG-LW690 using Tapatalk 2
 

whiteflash

New member
Aug 25, 2012
1
0
0
Visit site
Re: kernel mod to enable USB fast charging

i ha ve same problem : sh: cannot create /sys/kernel/fast_charge/force_fast_charge: No such file or directory

you have find a solution?
 

sammyz

Well-known member
Dec 15, 2011
825
190
0
Visit site
Where's the source at for the working mod??? I wanna do this for some OM kernels :D

Sent from my LG-LW690 using Tapatalk 2
 

sammyz

Well-known member
Dec 15, 2011
825
190
0
Visit site
When I click here's the commit, it takes me straight to github homepage....I'm on tapa so idk what the problem is...

Sent from my LG-LW690 using Tapatalk 2
 

sammyz

Well-known member
Dec 15, 2011
825
190
0
Visit site
I get this error while building:
Code:
drivers/built-in.o: In function `usb_chg_detect':
lowmemorykiller.c:(.text+0x6f124): undefined reference to `force_fast_charge'
make: *** [.tmp_vmlinux1] Error 1
any idea?

and this is almost the end of the building process :(
 

ThatGuyLurkin

Well-known member
Jun 4, 2012
2,155
665
0
Visit site
Im a bit lost. I flashed it a couple days ago, everything's still milky smooth on GingerDX. But, this patch, is always on? And does it only work via USB?

Sent from my LG-VM670 using Tapatalk 2