yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] Diechel:
NEW APP MADE :P

Finished it because I could not sleep....

It's called AutoTrim

the idea is simple, set the time you want to trim.

When that time has been reached it will be waiting for screen on event and wait 5 seconds.

This is just a fast sketch like BETA.

DON'T REPLY IN THIS THREAD BUT THANK THIS POST IF YOU LIKE THE APP.

When reached 30 likes I will make thread and make the app better. Good luck.

EDIT: 5-12-14@8.17 BUILD 8 ONLINE CRITICAL BUGFIX. Set time was reset to 0.0 on app startup

EDIT: 30+ thanks reached, thread here http://xdaforums.com/lg-g2/themes-apps/app-autotrim-t2963334
[G2 Android Development] kennguy:
I have a issue like deep sleep. Sometimes I can not turn on the phone then I have to hold down power button to turn on. I am D802 v20H with dori 9.1. Any solutions guys?
[G2 Android Development] fhk:
+1. Seems sod issues have come back with 9.1. Hadn't had a single problem since 8.9.
[G2 Android Development] briketica:
I tried what you said but didn't change nothing except i had sod latter while phone was in my pocket... So it is not governor. I will try with SuperSU (older)

... Other people that report SOD, PLEASE GIVE FULL INFO TO DEVELOPER( what ROM, kernel version, SuperSU, STweaks setting and post debug file from kernel)

I will post debug when i come home from work...
[G2 Android Development] Tinchoska:
Using v20h and cero problems
[G2 Android Development] Computoncio:
And any mods that you use, trim mods can cause sod if trigger when phone is sleeping.

I'm using crossbreader Dex edition, Dorimanx must icon theme, G2tweakbox and xposed, and got no sod or any issues.

If you are having issues, use default stweaks settings, just to remove user wrong settings.

Phone: LG G2 D805

Kernel: Dorimanx kernel v9.1

1st ROM : Pardus HD RoM™ Sensation Black v3.2

2nd ROM : Waiting for custom recovery ;)

MODS: Still searching
[G2 Android Development] briketica:
Debug

Here is debug for the last SOD...
[G2 Android Development] Computoncio:
I quoted you but my post wasn't for you ;)

My post is too all users that post issues without testing if the issue is in the user side.

Phone: LG G2 D805

Kernel: Dorimanx kernel v9.1

1st ROM : Pardus HD RoM™ Sensation Black v3.2

2nd ROM : Waiting for custom recovery ;)

MODS: Still searching
[G2 Android Development] Ganjax:
12hour deepsleep at night eat 1% battery, awesome! :)
[G2 Android Development] Diechel:
We have reached the 30+ thanks on the first post about AutoTrim :good:

So thread has been opened.

In that thread:

- Let me know what you think about it, useless or good :)

- Do you have suggestions?

- Bugs?

The app will not be so advanced as the OTA updater of course, it should be a simple good working app.

Also there will be no PRO version of it! so its free and will be free in the future.

Maybe when its good enough i will place it in the Play Store to make updating a lot easier.

Hope to see you here:

http://xdaforums.com/lg-g2/themes-apps/app-autotrim-t2963334
[G2 Android Development] vPro97:
Dorimanx kernel makes the phone perform like a beast, stay alive like a champion and sleep like a baby!

I can't wait for what 9.2 will bring, but I know it's gonna be awesome.
[G2 Android Development] briketica:
I switched back to SuperSU 2.35 fully charged phone and left it 40min more on charger, after unplug i couldn't reproduce SOD... I will try tonight to leave it whole night (so it can stay longer in deep sleep)...

So after all it can be related to SuperSU....
[G2 Android Development] russtyd:
No, I think its an older issue (I've seen it before 9.0, on 9.0 and today on 9.1)- for me it happens when I leave the phone on charge overnight using mains charger (fast charge) - I then get an SOD when I try and wake, but can't remember if I unplug then try to wake, or just wake plugged in! Debug file attached from last week (v9.0), but happened again today on v9.1 (damn, didn't capture the debug from that one). I thought it may have been an issue where the brightness went to 0% (but can't be sure as no way of getting back from 0% brightness!) - when I reboot brightness is at 24% (normally I have around 80%) so could that be related?? Using CloudyG3 2.1 and SuperSu 2.37.
[G2 Android Development] Alexander1988:
Bumped everything and it seems to me that on 9.1 the sound is kinda broken/crackly, on calls and normal audio. Is it just me or has anybody else noticed this ?
[G2 Android Development] Tinchoska:
On phone call set to 1 on stweaks.... And problem solve. But yes it's a little distortion... And on music playing there's a static sound on the back...
[G2 Android Development] xNotta:
I think I had my first SOD today.

Happened this morning.

Is there any way I can still get my logs from it?

On 9.1.
[G2 Android Development] RegMaster:
I just noticed that the gyroscopes are much more accurate, (they now don't blink) at least in google sky, and I think it has been thanks to KK bootlader.

Can anyone confirm something like this?
[G2 Android Development] glacies:
Stweaks - Kernel stuff - Kernel bug (button)
[G2 Android Development] blastagator:
[MENTION=2376110]dorimanx[/MENTION] - My revised flashing scripts:

rename /tmp/loki.sh to /tmp/panelfix.sh

lcdmaker=$(grep -c "lcd_maker_id=1" /proc/cmdline)
if [ $lcdmaker == 1 ]; then
echo "JDI panel detected"
find /tmp/panelfix/recovery.img -type f -exec sed -i 's/console=ttyHSL0,115200,n8 androidboot.hardware=g2 user_debug=31 msm_rtb.filter=0x0 mdss_mdp.panel=1:dsi:0:qcom,mdss_dsi_g2_lgd_cmd/console=ttyHSL0,115200,n8 androidboot.hardware=g2 user_debug=31 msm_rtb.filter=0x0 mdss_mdp.panel=1:dsi:0:qcom,mdss_dsi_g2_jdi_cmd/g' {} \;
elif [ $lcdmaker == "0" ]; then
echo "LGD panel detected"
find /tmp/panelfix/recovery.img -type f -exec sed -i 's/console=ttyHSL0,115200,n8 androidboot.hardware=g2 user_debug=31 msm_rtb.filter=0x0 mdss_mdp.panel=1:dsi:0:qcom,mdss_dsi_g2_jdi_cmd/console=ttyHSL0,115200,n8 androidboot.hardware=g2 user_debug=31 msm_rtb.filter=0x0 mdss_mdp.panel=1:dsi:0:qcom,mdss_dsi_g2_lgd_cmd/g' {} \;
else
echo "lcd_maker_id doesn't exist. Something went wrong."
fi

# Flash

dd if=/tmp/panelfix/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery || exit 1

rm -rf /tmp/panelfix
exit 0

Delete /tmp/loki folder

Create /tmp/panelfix folder with dummy EMPTY_DIRECTORY file inside

Edit updater-script

package_extract_dir("tmp", "/tmp");
package_extract_file("recovery.img", "/tmp/panelfix/recovery.img");
set_perm(0, 0, 0755, "/tmp/panelfix.sh");
set_perm_recursive(0, 0, 0755, 0755, "/tmp/panelfix");
assert(run_program("/tmp/panelfix.sh") == 0);
delete("/tmp/panelfix.sh");

(only the relevant part)

bye bye loki!
[G2 Android Development] briketica:
I just finish testing and i can confirm that i can't reproduce SOD after downgrading SuperSU from2.37 to 2.35...

So i guess it was SuperSU in my case

I will test a bit more but with 2.36-2.37 i could reproduce SOD regularly..

(kernel 9.1, stweaks all core and hot plug alucard gpu 200-533 rest default, pardus 7.7, no mods and exposed)
[G2 Android Development] Formhault:
How does a gyroscope blink?
[G2 Android Development] dorimanx:
Finally :) i keept the loki name to make less changes, but in bumped recovery in my mirrors there is no more loki patch :)

Now i will follow you with the rename. :)

Sent from my LG-D802
[G2 Android Development] Garfield3333:
Sorry for the stupid question....but any chance to format data to f2fs....?
[G2 Android Development] Tinchoska:
Dori will you bumped new twrp recovery? If no, I should use the bump open source thread to bump it?
[G2 Android Development] blastagator:
When I drop the new build, it will be bumped already. :)
[G2 Android Development] reddsmokee:
what can i do for the return JB bootloader and try another rom?

-- install autorec and then normally flashing the any rom?

-- flash the dorimanx's JB bootloader, after install new rom without dori's kernel?

-- or other way that i don't know?
[G2 Android Development] Tinchoska:
Thanks a lot dude. By the way, using the open source bump I will be able to bump whatever I want right?
[G2 Android Development] Nigglenuts:
Correct
[G2 Android Development] 6ril1:
About Bump, no credits for those who find the original LG key (team codefire) ?

http://www.xda-developers.com/android/bump-lg-g3-bootloader-workaround/

http://xdaforums.com/lg-g3/orig-development/bump-unlock-lg-g3-twrp-d852-d852g-f400-t2900614

What about the next bootloader ? We'll need to downgrade too, no ?
[G2 Android Development] SPBoss:
I think he means stutter. When i use google sky the gyroscope isn't updating in proper intervals. Its causing everything to be very shaky. On my galaxy s2 the movements are smooth as silk. Not sure if it's lg stock rom problem, the kernel or maybe the gyroscopes in the G2 are just bad.
[G2 Android Development] vPro97:
Hello. I'll assist you and answer your questions, but please ask in the Q&A thread next time :)

The thread is located right here: http://xdaforums.com/showthread.php?t=2645748

Now to your question(s):

I'm assuming you already have installed dorimanx kernel and KK bootloader.

In that case you don't need to use autorec because you already have a working custom recovery and Dorimanx BUMPED recovery is newer than the one that comes with autorec.

Yes. It is indeed that simple. You don't have to change recoveries or anything, just flash the bootloader and your new ROM.

I hope this helps :)
[G2 Android Development] Formhault:
Google Sky?! Oh, you mean Sky Map. I just opened it and saw "Google Sky Map" on the splash logo... weird, as I was expecting it to be from Google Inc., not Sky Map Devs, lol.

Anyway, so I ran that app and I can confirm, it is shaking everywhere. Even if I place the device flat on the table, it still stutters (jump around).

Oh, I'm on LiquidSmooth 3.2 (final LiquidSmooth build based on KitKat 4.4.4) with RenderBroken kernel, so... not LG, lol.
[G2 Android Development] reddsmokee:
Thank you so much for your help. I read the thread carefully. But i guess we can't use kk bootloader without dorimanx's kernel. Am i right? [emoji4]

Maybe you think this is silly question :)

I answer my own question. I think we need bumped kernel other roms' for kk bootloader. Only dori's kernel support kk bootloader.
[G2 Android Development] leald:
Not too bad for my first test of intellimm governor. Almost 6 1/4 hours of sot with a full movie and multiple netflix sessions. Might be worth officially adding to the kernel [MENTION=2376110]dorimanx[/MENTION] ?
[G2 Android Development] darknessmessiah:
Just had to hard reset... Was switching apps and the phone became unresponsive. Attached log from stweaks
[G2 Android Development] dorimanx:
I have good news. it's seems like i have finally found what cause strange SOD "black screen but all works!"

after TRIM or long charge, or if discard set to partitions.

well problem was in MMC code, that added from 5.8 to 6.6 kernels.

i have spent 5 hours seeking the parts that create the BUG. and removed them. :)

now all OK, i can TRIM and add disacrd to /data or long charge, no longer can reproduce this BUG.

so it's one nasty BUG less in the system :)

New release will be UP after more tests.

So hold on :)
[G2 Android Development] philliedbz:
Yeah 9.1 really SOD alot and had one random reboot. Hope its 99.9% SOD free heheh!!
[G2 Android Development] dorimanx:
News Update!

07/12/14

Kernel 9.2

*Updated with 3.4.105 main line patches, major update to many drivers.

*Merged fixes for USB and NET.

*Merged updates to Alucard Hotplug from DEV.

*Removed IRQ code check that may cause SOD on charge.

*Disabled ASYNC code from HTC, no longer needed.

*Cleaned my changes to WIFI suspend, seems it's has already same suspend code.

*Removed some MMC updates that brake LGE structure and create SYNC bugs and hang the MMC, (SOD's that people reported.)

Now should be OK.

*Merged Intellimm CPU GOV, by @faux123 it's based on ondemand. + adapt to kernel and cleanups + tuning.

*Possible fix for L2TP VPN.

Have fun and report if any problems.

for info about new CPU GOV, ask developer :) he is a nice guy. (busy! but great DEV)
[G2 Android Development] lambo98:
how to settings stweaks to save battery?
[G2 Android Development] dorimanx:
Ask in Q&A Thats why we have it.

For questions not belong to dev thread.

You can use thread search.

Sent from my LG-D802
[G2 Android Development] lambo98:
okay, i'm sorry
[G2 Android Development] merlin21:
First one [emoji16] -> Flashed v9.2 without errors since near 2h with new intellidemand - thanks for that new toy [emoji106]
[G2 Android Development] henrylar:
just installed the bumped twrp kernel 9.2 and 20H boot loader. Works flawlessly on Cloudy G3 2.1. Thank you for the good work!
[G2 Android Development] Alexander1988:
Updated the 3 components to latest. Sound is crystal clear again. Thank you mighty [MENTION=2376110]dorimanx[/MENTION] code God ! Have a great weekend.
[G2 Android Development] Tinchoska:
Going great with new governor. Where can I find info about it?
[G2 Android Development] Steephig:
Slow charging

It seems the Fast Charge Manual setting is not working.

Have set it to manual and 500mA, but it charges at full amperage.

This was with 9.1 though, will check 9.2 and will post results.
[G2 Android Development] xdocvetx:
Unplug the cable and plug it again. That works for me
[G2 Android Development] MB525:
It's even faster here. With a 2.4A loader I get full charge in 90 minutes at manual charge 300/500mAh. :( It's nice when you're short in time though.
[G2 Android Development] duki994:
Hey Dori. I've also got some Fast Charge issues. After charging for long time ~5h (300mA or 500mA). It charges to 95% then stops and doesn't charge to 100%.

Like the code for turning off fast charge at 95% is bugging or turning off charge completely. I looked at code fast but did not see any problem. Maybe you'll find it. Maybe it was because of bugged mmc. Will test now.

Also hotplug min cpu issue is still present (only for MSM hotplug). Same as I reported earlier. When changing from other hotplugs to MSM it doesn't obey min cpus that i have set.

Example: if min cpu is 1 and using intelligent or alucard hotplig, then changing it to MSM min cpu is still set to 1, but MSM works with 2 cpus in idle. Or when set to min 2 cpus and changing to MSM then it works 3 or 4 cpus.

It's like MSM doesn't want to obey my min cpu setting. Maybe something in #define's is not same like with other hotplugs. Or CPU Boost feature in MSM bugs.

Otherwise works great :)

9.2 is less drainy than 9.1 and performance is great (with intellimm and MSM hotlplug set to 500Msec boost). Gaming is smooth, and browsing is better.
[G2 Android Development] fhasovic:
Any link to 20H boot loader?
[G2 Android Development] Adinaky:
Dorimanx has uploaded it to his mirror. You can download it from there.

Sent from my LG-D802
[G2 Android Development] schwem:
What hotplug are you using with new governor? Just curious!
[G2 Android Development] fhasovic:
Thanks! Have you installed 20h baseband too? What is your opinion?
[G2 Android Development] Adinaky:
Not yet, but I'm going to do it right now. I'll let you know how it goes after I install it, but in the Q&A thread, not here.

Sent from my LG-D802
[G2 Android Development] sheikhramnuj:
Can use this latest 9.2 update on my d802 tru ota app without bumping it? Thanks!
[G2 Android Development] dorimanx:
Yes. Answered many times.

Its works also with jb bootloader. Same as was.

Sent from my LG-D802
[G2 Android Development] blastagator:
[MENTION=2376110]dorimanx[/MENTION] - I was looking at the partition zip you made for updating BL - You flash dbi, rpm, and tz. These three have corresponding backup partitions that you might want to update as well. Maybe do a two step zip instead of flashing the partition and its backup at the same time. (Not sure if the KK update updates both or just updates one)

I'm currently D/Ling the KK update for D800 to put out a similar zip as you.

Great work as always. 9.2 is awesome :)
[G2 Android Development] Nigglenuts:
That would be sweet. I've been attempting to make a flashable zip with everything for d800 but I simply can't find all the corresponding files that I would need. Many thanks [MENTION=5031300]blastagator[/MENTION] if you can create one for d800
[G2 Android Development] blastagator:
http://xdaforums.com/lg-g2/development/bootloader-flash-jb-kk-bootloader-t2965755
[G2 Android Development] Tinchoska:
I always use Alucard hotplug, doesn't matter which governor I use, I always choose Alucard, my tests tell me that Alucard got the perfect combination between battery and performance... It's awesome
[G2 Android Development] SPBoss:
I'm so paranoid about flashing the KK bootloader lol ? 9.2 running great on d80220h!
[G2 Android Development] Formhault:
Same here lol.
[G2 Android Development] jamexman:
Holly crap this new intellimm governor and hotplug are amazing! Was using alucard before but with this new one in getting amazing deep sleep times. 7 hours in sleep and still at 100% battery. Congrats to Faux and Dori!
[G2 Android Development] vPro97:
First off, there's no reason to be paranoid. I understand you guys, for everything that's new is pretty scary.

Now, the benefits aren't too obvious yet, but here's my personal point of view of the benefits to changing to kk bootloader. Please note that some of these might not be caused by the bootloader, but don't know what else could have solved it.

Overall stability. The last time I had a SOD was about one one and a half week ago. At least, once I changed to kk bootloader I never had SODS. BUT I also disabled CRON and updated supersu and that might have helped.

Touchscreen sensitivity. Ever since 8.x the Touchscreen sensitivity has been brilliant. But with the kk bootloader, the slight delay between my finger and the phone's action while scrolling has been eliminated. It feels much much better.

Bootup speed. Well it's a minor thing, but still a thing. Boot up is about 5 seconds faster for me.

If it runs great and you don't feel like doing it, then don't. But flashing the kk bootloader has been made something extremely dangerous and scary and people have made it sound like flashing KK bootloader will result in a unrecoverable brick. That's really not the case.

If you have a d802, flashing the kk bootloader is just as easy as flashing the kernel (without Diechel's fantastic app ofc) and reverting back is just as easy. There's really not much that can go wrong, so please, stop thinking of the KK bootloader as something scary and mystic, think of it as a natural progression of our device - for the better.

If this can't convince you - it's fine. Everybody in here says that JB bootloader works perfectly and some people live by the 'if it ain't broken, don't fix it' - mantra. That's also fine
[G2 Android Development] Nigglenuts:
Dude. You're the ****. Thank you so much
[G2 Android Development] schwem:
Do you or anyone else know if there is someone working on kitkat bootloader bump for VS980? It scares me as well but it seems like the wave of the future and I don't want to be stuck on JB when everyone else has moved on! I plan on keeping my G2 for a while and don't want to be left behind!
[G2 Android Development] blastagator:
The more annoying way is doing the OTA. That will upgrade it for sure but involves back to stock, rerooting, retwrping, reroming, etc etc. A huge PITA relatively but effective. I'd do other variants but I'm not really comfortable putting out a bootloader zip that I can't personally test.

God help me if I mess it up and brick other peoples phones.
[G2 Android Development] schwem:
Yeah I completely understand! I'm starting to really regret being on Verizon as this phone seems to give more trouble than any other G2 variants. If I knew more about this I would attempt it myself but I have never done such a thing as bump is relatively new and I am without much free/ alone time. Thanks though. Maybe if you hear of anyone releasing it for the VS980 give us VS980 owners a heads up! Thanks again
[G2 Android Development] njstein:
Nah bro. Look in Xdabbeb's stock rom thread. In the op he provides a bumped kernel and bootloader. I flashed the zip, then flashed dorimanx kernel right after. Zero problems, bumped and done!
[G2 Android Development] Mystique:
This is best Verizon device I have ever owned.

Thank you dorimanx.
[G2 Android Development] tholmes8291:
Did you use xdabbeb or blastagator TWRP?
[G2 Android Development] njstein:
I didn't reflash blastagator's so it had to be Xdabbeb's since it comes in the zip.
[G2 Android Development] krija:
Hi [MENTION=2376110]dorimanx[/MENTION]. Can you build one beta with C3 state enabled, please? Because no deep sleep here :(

Wakelocks checked, but nothing interesting. I can test it for you.
[G2 Android Development] Nigglenuts:
Why not just find a configuratiion that allows for deep sleep? My phone sleeps like a damn rock with my set up. Test some new governors and hotplugs...
[G2 Android Development] leald:
Do you know where in the kernel this would be enabled I have become intrigued reading about this but haven't found any real clear cut information about it. Thanks.
[G2 Android Development] dorimanx:
Its enabled already, C3 C2.

Device sleep as should. Nothing to enable.

Sent from my LG-D802
[G2 Android Development] leald:
That's what I began to gather after looking at source. Thanks for spending the time to respond.
[G2 Android Development] arvylas:
Edited,

Every time I try to get into recovery I get a message in the upper left corner for half second and the lg logo in the center and can't get into recovery. This happens when I try to reboot to recovery or trying to boot into recovery manually. Last time I did all the procedure to kk boot loader and everything was fine.
[G2 Android Development] schwem:
Hold power button and select power off and restart then a sub menu pops up and select reboot recovery
[G2 Android Development] arvylas:
Sorry I edited my post I'm not a beginner ;) thanks though.
[G2 Android Development] schwem:
I thought it was a pretty silly question! I'm never above answering even the obvious ones! Everyone overlooks even the easiest things sometimes!
[G2 Android Development] krija:
C3 state is disabled for me and i can't enable it. Phone reboot when i try it. Screenshot is attached.
[G2 Android Development] Nigglenuts:
Whoa! Your synapse app is way crazier than mine. I dont have any of those options
[G2 Android Development] krija:
I added few tabs for the check some settings. The C3 state in older versions (8.X) was enabled and deep sleep was OK for me.
[G2 Android Development] Kemby13:
Can you pls explain how you added those extra tabs in Synapse?

Thx
[G2 Android Development] bgx:
Universal Kernel Script I think!

http://xdaforums.com/android/software/zip-synapse-script-universal-kernel-t2736986
[G2 Android Development] arvylas:
That's the message I get every time I try to boot into recovery. Any ideas??
[G2 Android Development] ZeNiXxX:
install Or flash Kk bootloader... You can find it on Doris Download Page
[G2 Android Development] arvylas:
I have flashed the new bootloader and bumped kernel and bumped recovery and everything was fine. Next time I tried booting into recovery I got this message.
[G2 Android Development] leald:
Confirmed for me as well. If this is how we are to properly activate it
[G2 Android Development] ZeNiXxX:
thats how you have to install it.

1. install twrp

2. reboot recovery

3. install doris kernel

4. install bootloader

thats how it should work ! this mehtod worked for me ... i'm sure that doris explains that. Search for it, if my mehtod won't work
[G2 Android Development] arvylas:
That's what I did and worked until I rebooted
[G2 Android Development] vPro97:
Boot into Rom.

Download and install autorec for your device.

Let it install custom recovery for you.

Then, repeat the process:

Install bumped TWRP.

install dorimanx 9.2

Flash KK bootloader.
[G2 Android Development] sheikhramnuj:
Last night i flashed updated Dorimanx kernel 9.2 tru ota app without bumping and my d802 deepsleep is 98%, no sod or any issues . Its amazing! i only use intellim for all govs, msm hotplug and others default. Thanks [MENTION=2376110]dorimanx[/MENTION] for the awesome kernel! :) :good