yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] hamisgood:
I can hardly wait :D

I hope this resolves the SD card/wifi/reboot issue for the F320!

Cheers!
[G2 Android Development] RenderBroken:
Can you go into a little more detail and tell me what exactly doesn't stick? I know that PA Gain "does not stick" but that's just a false positive. Thanks!

I doubt it, I have not been able to find any real solution for yall yet. I have looked through the links provided awhile back but didn't find anything substantial. I will take another look before release. Right now I am just in testing phase.
[G2 Android Development] 4r44444:
Whats the best settings for Battery-Performance balance?
[G2 Android Development] bamonkey:
unfortunatly this will vary by "user" and "usage" so theres no real answer other than testing. I can tell you right off the bat it seems you can probably lower voltage by -25 *seems to be safe on most...even my last 3 g2's ive had*, You can probably lower your clock on core 0 and core 1 to 1.9 ghz...we have a beast of a phone and i havent seen really any difference when i lower the clock on the first 2 cores. After that you will just need to mess with governors..maybe try bacon or some of the others. You will probably not see anything immediatly so i always do a what i guess motorola calls a "soak" test. let it run for a day or 3 and see how it settles. If you see something immediatly wrong back off ..if you feel couragous try something different :highfive:

Also in unrelated news: just throwing this out for a whoop di doopie .. a couple days back i successfully converted a rom on the system to f2fs and got it to boot and.... as i suspected it was all wasted effort LOL:rolleyes: The performance was a bit spotty and after a couple days something really crazy happened and i somehow ended up stuck at the boot...not even recovery.. i could use the keys to force the screen to ask to go to recovery and it would boot the lg logo and then just go black..after messing around i got recovery back..only to say security error after the lg logo...so that confirmed something else. the chance for corruption using f2fs on system is not worth it either. It was a fun learning experience i guess:silly:
[G2 Android Development] hamisgood:
Bummer! Do let us know if you need any testers for the F320. I'm sure many of us would be more than happy to help out!
[G2 Android Development] darknessmessiah:
Thanks for the heads up... I've been a long time curious about F2FS... Guess I'll leave it behind :good:
[G2 Android Development] TaRsY:
Hi!

I just bought a G2 again, I was tired of my N5's battery life.

Does this kernel include the new KCAL updates from Savoca?
[G2 Android Development] samuele94:
[MENTION=5438598]RenderBroken[/MENTION] thanks for your kernel, is perfect. A curiosity: what do you think of undervolting? It can be a valid help to combat overheating or just creates instability? I have set to -25 mV but I have no slowing down or reboot. (RR 5.3.6 LP)
[G2 Android Development] MBurns2:
Between touch boost and the interactive governor , who consume more battery ?

i thought two strategies:

- tune down interactive governor and leaving touch boost activated

or

-make interactive aggressive and disable touch boost

i want to save some battery but i don't want any small lag on my phone.

Thanks for the suggestions
[G2 Android Development] phoenix_rizzen:
As many others, including myself, have reported, using F2FS for /data and /cache works fine, and you don't need ROM support to enable it (just an F2FS-enabled kernel like this one).

And, many have mentioned there's very little point in formatting /system as F2FS: ext4 is faster for reads, and /system is mounted read-only 95%+ of the time. Plus, you do need ROM support for /system as F2FS or bad things can (and will eventually) happen.
[G2 Android Development] RenderBroken:
For F2FS, I dont believe there is any real risk for data coruption or other phones like the Moto G wouldnt use it out of the box. I think the problem is messing with /system. I will say that I cannot tell you why it is so, just that many here have used F2FS inclding myself with no issue. That seems to be the only thing outside the norm that you have done. Still thanks for testing and reporting your experience! It shoes that it may not be worth forcing /system as F2FS right now. Thanks!

Not yet. . .His patches are created on CAF source so what works for him doesn't work for LG. I am trying to sort it out but its been a pita.

Thanks!I undervolt to -45 but that's me. You can try it and the worst that can happen is it reboots. It doesn't really hurt but don't report an issue if you do. Reset the voltage and see if the issue retains first before reporting.

I agree.
[G2 Android Development] samuele94:
Thanks! what interests me is to reduce overheating and then I'll try to warm up the g2 with -25mV then from there I will try to reduce the voltage without compromising stability. Spectacular Kernel, congratulation again!
[G2 Android Development] carlos67:
Guys,

if I wanted to overwrite /res/synapse/sqlite3 with /system/xbin/sqlite3 on boot up, would this work in an init.d script?

#!/system/bin/sh

cp -f /system/xbin/sqlite3 /res/synapse/sqlite3

Thanks.
[G2 Android Development] RenderBroken:
That looks good to me!
[G2 Android Development] TaRsY:
I don't know if this helps for you bud [MENTION=4684315]flar2[/MENTION] has an AOSP kerbel on nexus 5 with KCAL

https://github.com/flar2/ElementalX-N5/commits/ElementalX-2.00

[MENTION=3795148]neobuddy89[/MENTION] also merged into his kernel source (not sure whether in his caf os hibryd kernel)

https://github.com/neobuddy89/hammerhead/commits/lollipop

And [MENTION=3873953]eng.stk[/MENTION] also has it running

https://github.com/engstk/hammerhead-5.0/commits?author=engstk

Or maybe ask [MENTION=4316709]savoca[/MENTION] for help. I hope he will update his kernel too. :)
[G2 Android Development] carlos67:
Cheers!

I just ran it in a terminal window and it has indeed copied the file :) but has changed the permissions on the new file so I guess I need to add another command option to retain the permissions on the new destination file. In other words, I want the permissions on /res/synapse/sqlite3 to stay unchanged after the overwrite.

I wonder if I need to add a sleep timer too either before or after the command. What do you think would work best in terms of when synapse runs following boot up? Where would you put the timer (if any?) and for how long?

Thanks :)

Edit: Sorry for OT :o
[G2 Android Development] 4r44444:
Thx man! Tried your config... works fine, lower battery drain and same performance. Do you have any more tricks for tuning to the limit (savely)?

Greetings
[G2 Android Development] phoenix_rizzen:
[MENTION=3116537]carlos67[/MENTION]

You'll need a "chmod 777 /res/synapse/sqlite3" and, possibly, a "chown root:root /res/synapse/sqlite3" as well. Do an "ls -l /res/synapse/sqlite3" on an unmodified file (ie, after a clean boot without your script running) to see what permissions/ownership to use.

If the above two lines don't work, then you'll need to do a "which chown" and "which chmod" from a terminal on your phone to find the correct path to those binaries, and use the full path to chown/chmod.

Edit: checked ownership/permissions for the file on my phone, and it's root:root, 777. So your script would look like:

Typos courtesy of my Ice Cold LG G2 (D803).
[G2 Android Development] 4r44444:
How to lower LED voltage
[G2 Android Development] carlos67:
Thanks :good:
[G2 Android Development] phoenix_rizzen:
I updated my original post with more information.
[G2 Android Development] carlos67:
Hmm, when run from terminal it works. But when running as init.d script nothing changes. I've set right permissions on script file (rwxr-xr-x) and made sure no "extra blank spaces/ carriage returns in script (was done in notepad++).

I hate troubleshooting init.d scripts that don't run :(
[G2 Android Development] phoenix_rizzen:
When you say "nothing changes", do you mean ownsership/permissions remain unchanged, or the file doesn't get copied at all?

Most likely PATH issues (meaning, the script is running with a blank PATH, so it can't find the chown/chmod binaries).

Try updating the script with "/system/bin/chown" and "/system/bin/chmod" and see if that does it (although, one would expect /system/bin/sh to be in the default PATH).
[G2 Android Development] carlos67:
File doesn't change & permissions don't change. However, when I run the script from Smanager as root (su) it works and I get exit code 0 and both the file & perms change.

I'll try what you suggest with the full path to the chmod binary. Don't need to do chown because it doesn't need changing.
[G2 Android Development] phoenix_rizzen:
Hrm, I wonder if /system is mounted read-write at the point the script runs. If it's not, then the copy/chmod/chown would fail. And your file manager is probably mounting it read-write when you launch it.

You could take the blunt hammer approach and add the following above the cp:

And the following after the chown:

At least, I think that's right, just going from memory, completely untested, use at your own risk, etc, etc, etc. ;)
[G2 Android Development] carlos67:
I'll give it a try!

Thanks for your help dude.

Update: didn't work. Even when run as root from Smanager.
[G2 Android Development] RenderBroken:
Thanks, I have done some looking around already, just have to continue looking. Thanks for the links!

Yea, I have my script remount as rw. It runs after boot is completed. I am not quite sure how you could time it just right. What model phone do you have? I can give you a test build to see if the problem persists using the new file you sent.

Thanks for trying to assist.
[G2 Android Development] carlos67:
Ok, update - turns out that my script needed a "sleep 30" timer before it would work! I tried sleep 20 but it's not long enough, 30 does the trick though. I didn't need to mount /system as rw either. It seems to me that the Synapse file structure gets created somewhere between 20 and 30 seconds after boot.

Its been frustrating but I've learnt quite a lot tonight trying to get this script running on boot.

Edit: this is what works

#!/system/bin/sh

sleep 30

#mount -o rw,remount /system

/system/xbin/cp -f /system/xbin/sqlite3 /res/synapse/sqlite3

/system/xbin/chmod 777 /res/synapse/sqlite3

#mount -o ro,remount /system
[G2 Android Development] phoenix_rizzen:
Thinking about it, a better solution than sleep might be to loop until the file exists:

Again, not tested, and I'm not 100% sure the while line is syntactically correct. But the gist of it is: check if the sqlite3 file exists yet. If it doesn't, then sleep for 1 second before checking again. It it does exist, then copy/chmod the working file overtop.

OK, manually tested the while line via a terminal on the phone, so it should work during boot.

Typos courtesy of my Ice Cold LG G2 (D803).
[G2 Android Development] dorimanx:
While function will kill cpu with one sec sleep.

Set sleep 3 or 5

Syntax is correct.

Sent from my LG-D802
[G2 Android Development] carlos67:
Works perfectly with 3 sec timer loop and thanks again to you, Dorimanx and Render.
[G2 Android Development] phoenix_rizzen:
Yay! I'm a phone hacker! Lol

Glad it's working for you. Now I can put my name up in lights!

Typos courtesy of my Ice Cold LG G2 (D803).
[G2 Android Development] hamisgood:
I have this issue on R26 with the kernel and Viper4Android on the F320. I posted regarding it previously, but I finally gotten around to playing around with it.

The problem mainly lies with Viper4Android's sound drivers conflicting with the kernel's sound drivers while playing on Neutron Media Player. Neutron has a built in "generic sound driver" which has to be used with Viper4Android in order to get the effects working.

I wonder if anyone is having the same issue as me and has found a solution or workaround?

My solution was to disable apply on boot, but the microphone volumes are extremely soft especially in calls when people on the line can't hear what I'm saying clearly. Which makes me need to adjust the sound settings in Synapse, which also leads back to the aforementioned audio problems.

[MENTION=5438598]RenderBroken[/MENTION], I'm not sure what kind of logs to take for this, so if you have something in mind I'll try to do it
[G2 Android Development] :
Can anyone tell me whats wrong here? Have downloaded sources, altered build script to suit my system, downloaded the toolchain that [MENTION=5438598]RenderBroken[/MENTION] linked me to. (Its in a folder called toolchain in the source directory.) But when I try to build I get this,

Begin build now..(y/n)? : y

#

# configuration written to .config

#

scripts/kconfig/conf --silentoldconfig Kconfig

CHK include/linux/version.h

CHK include/generated/utsrelease.h

CC scripts/mod/empty.o

ccache: FATAL: Could not find compiler "arm-eabi-gcc" in PATH

make[2]: *** [scripts/mod/empty.o] Error 1

make[1]: *** [scripts/mod] Error 2

make[1]: *** Waiting for unfinished jobs....

make: *** [scripts] Error 2

make: *** Waiting for unfinished jobs....

/home/adrian/render/msm8974_G2_render_kernel/scripts/gcc-version.sh: line 25: arm-eabi-gcc: command not found

/home/adrian/render/msm8974_G2_render_kernel/scripts/gcc-version.sh: line 26: arm-eabi-gcc: command not found

/home/adrian/render/msm8974_G2_render_kernel/scripts/gcc-version.sh: line 25: arm-eabi-gcc: command not found

/home/adrian/render/msm8974_G2_render_kernel/scripts/gcc-version.sh: line 26: arm-eabi-gcc: command not found

adrian@adrian-GV329AA-ABU-SR5249UK:~/render/msm8974_G2_render_kernel$ arm-eabi-gcc --version

arm-eabi-gcc (crosstool-NG hg+default-069f43a215cc - DragonCore) 4.9.3 20141101 (prerelease)

Copyright (C) 2014 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

As you can see i've checked the toolchain is there, and it is so what on earth is going on? This whole toolchain business is confusing the hell out of me. Is there something else to add to my path?
[G2 Android Development] RenderBroken:
I will be releasing R27 in the near future with a "fixed" Sound Control Driver. Among other fixes that is. I would wait for that and test again to see if that fixed the Mic volumes for you.

Are you using my build script? Are you sure that the toolchain path is correct inside the script? Make sure it points the bin folder to the same bin folder in the tool-chain source. That's what it looks like to me.

Also I just received my one plus one and I have to say that I am thoroughly impressed. I hut 48.5k in antutu right out of the box. the device just responds much better. I thought the upgrade was going to be a small improvement but I am blown away. If any of you can, consider the OPO. For $350 for 64GB version that performs like this, its completely worth it.
[G2 Android Development] Bundizle:
psstt show off lol..
[G2 Android Development] RenderBroken:
Man it was hard work. I literally saved up from all my side jobs. but as I said, I will still be maintaining this thread and the G2 for the foreseeable future. Nothing really should change much.
[G2 Android Development] Bundizle:
i know man..just busting ur b..thinking of getting one but am soo afraid of their customer service and am really vain small things do bother me alot..like the yellow tint in their screens
[G2 Android Development] RenderBroken:
yea I was worried too but took the chance. The yellow screen issue has to deal with the CM11S software making the screen "warmer" when its already warm. Installing a custom rom or ColorOS fixes the issue. Just seems REALLY dumb that it got by CM. . . Support has come a long way but when you buy the phone, you buy it knowing there is not a real warranty. The forums are solid though if you can get over the fact that so many ppl beg
[G2 Android Development] chrisexv6:
I'll be all over one after you get vzw to carry it [emoji2]
[G2 Android Development] jesssiii:
So what ended up being the final

Script?

And what is the purpose of changing, what does it fix for you with synapse?

VZW LG G2
[G2 Android Development] Ace42:
You weren't waiting for a phone with LDDR4 or 64-bit CPU? Personally I'll wait another year before getting a phone since I only got the G2 last summer (although I'm sick of the rear buttons).

Sent From Capsule Corp.
[G2 Android Development] bigiuly:
What governor and i/o scheduler it's best for battery life on LP BlissPop?
[G2 Android Development] RenderBroken:
Nope, I thought to myself, Will there be a better deal/phone/specs for $350 in the next year and the answer I came up with is no. I wanted to get a Developer friendly phone that stands out. I wanted a bigger screen. I wanted a larger internal memory (64GBs). I just didn't see an alternative that would satisfy those desires anytime soon. Also know that I get my phone bill paid for by my second job and its Straight Talk. So I needed a phone that would be compatible with that too. I will just say that I am blown away with how much better this phone is than the G2. Also know that it does me know good to lie to anyone here. I am very happy with my purchase.

I quick search would have netted you a number of great posts telling you the answer you want. For me, I like the stock settings because I like performance a bit more than battery. As long as I can get to the end of the day I am happy, and I can easily do that with stock settings using Wifi, BT, and LTE all day listening to audiobooks and music. I usually get back home with 20% left.

Also, I wanted to let you guys know that I am close to being done with R11 for LP. I wanted to take another shot at Sound Control for VS980 users. I will also be updating the ramdisk. Once done I will release. So far the test builds have been solid.
[G2 Android Development] reemar:
you dont owe nothing to no one, thanks for dev as a great kernel, and i wish you to enjoy and maximize your exprience with your brand new 1+1, you mroe than deserve it, have fun with it..
[G2 Android Development] RenderBroken:
Its all good! I love this thread and the ppl in it. I would love for this to continue for as long as possible.
[G2 Android Development] :
[MENTION=5438598]RenderBroken[/MENTION] many thanks for the reply. I now have a nice fresh kernel on my phone. The problem wasn't the tool chain in the end. I learned some good lessons from this. Much more still to learn yet though. ☺
[G2 Android Development] MBurns2:
[MENTION=5438598]RenderBroken[/MENTION]

Hi mate! i use the same interactive values on every kernel but i noticed that with yours kernel, interactive jumps everytime from hispeed to max freq without respect above hispeed delay.

I set "above hispeed delay" to 20000 but here it seems to have another "timer", for having the same effect that i have on stock/others kernel i have to increase it to 100000. It seems that it bypass above hispeed delay or that the time here is different.

Is there something that i don't know, right ? :)

Your Bacon gov seems to respond better to "interactive stock rules", pls let me notice if i'm saying wrong things ;)

thanks for the clarification
[G2 Android Development] RenderBroken:
I will have to double check the source and take a look first. I will see what I can find out for you.
[G2 Android Development] jesssiii:
Thank you for this info, I've had that phone in my cart twice now, but just couldn't pull the trigger. Mostly because of how bad their website works- left me wondering about quality with the phone. Also, partly, being on Verizon with unlimited data and that phone wouldn't work I don't think. Not quite ready to make the switch to T-Mobile, especially now with work putting in better Verizon cable. I went from 2 to full bars there while no other carrier gets any signal. But I might get it anyway.

VZW LG G2
[G2 Android Development] RenderBroken:
I use it with Straight Talk (ATT Version Sim) and its only $50 for unlimited everything. I think LTE Data is limited to 3GBs a month though.
[G2 Android Development] carlos67:
Man this thread has gone very quiet:eek:
[G2 Android Development] TDSJR:
That's how it happens. lol
[G2 Android Development] tlxxxsracer:
I've noticed with r10 running bliss, after a week having the kernel flashed the phone begins to become sluggish and hangs. Initially it's fast and smooth. I use stock settings the kernel comes with. Any ideas? I love the battery life it gives though :)

Using d801
[G2 Android Development] RenderBroken:
Well, there is nothing that changes a week later within the kernel to cause that. The kernel stays the same no matter what, it does not accumulate anything, or change in any way. No the RAM is one thing that comes to mind, to me it sounds like you are leaving your phone on for long periods. Is that the case? Because the only thing that does change is the RAM gets full due to inherent memory leaks.

Can you go into more detail about your normal usage case? Also I will end with this, if this was a kernel issue, I would have a number of different ppl reporting the same thing. I am not saying you are wrong but that the issue may lie somewhere else or its something in conjunctions with my kernel. Either way I am glad you reported it. Thanks!
[G2 Android Development] BoostRoid:
Out of curiosity, what do you consider a long time? And must you reset if you have a memory leak? Thanks.
[G2 Android Development] TDSJR:
A simple reboot daily, or every other day does the trick.

You can't do anything about a leak itself.
[G2 Android Development] RenderBroken:
I agree, I usually reboot ever couple days or so. As I said, memory leaks are inherent. Even on the most perfectly coded environments, it happens.
[G2 Android Development] aToS88:
I also experience the same stuff with BlissPop, started about a week ago. Reboot fixes it though... Luckily I got used to it when I had the Galaxy S1 [emoji3]
[G2 Android Development] RenderBroken:
lol I remember my ol cappy days. . .

Yea Blisspop offers a metric crap ton of features. Also of the work has to be manually merged in and customized. Also LP is still pretty beta in some places. So merging in all of those features and sometimes not in the most elegant of ways, that may cause a proliferation of memory leakage when compared to straight AOSP for example.
[G2 Android Development] genesixxbf3:
I have the d802 with bliss but I don't have any lag or something, it runs even better than kk (personally view)
[G2 Android Development] RenderBroken:
It runs great, don't get me wrong. I had no issues running it on my G2. I like to give everything a try before judging. It runs great on my OnePlus One too. Thanks for the suggestion btw ;) I am just saying that LP is still working out kinks. For example, how long had the boot logo bug been around? lol So with that coupled with features that are not on any other rom, thus not mass tested with LP, there can be issues with things that worked well for KK.
[G2 Android Development] genesixxbf3:
Yeah of course it's buggy sometime. I've seen some fix about the boot animation lag I'll try soon
[G2 Android Development] :
I had modified a kernel (ramdisk really) on my old phone to allow for what equated to run levels at various key points throughout the boot process. I liked it, but didn't seem to be much interest in it.... Besides from myself. I used the method from here: http://xdaforums.com/showthread.php?t=1671670

If people are having issues though with timing in init.d scripts I could probably do it with this phone's ramdisk too.
[G2 Android Development] berryman13:
our beloved developer [MENTION=5438598]RenderBroken[/MENTION] has promised r11 soon but I wouldn't hold your breath beyond that. he upgraded the g2 to the OnePlus.