yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] BLiNKT:
How make init.d script from that file 90_gamma.txt ??? Does i only open in notepad++ and go to save as and than delete txt and save??
[G2 Android Development] ORT14:
Amazing battery life. Was on my phone most of the day at work today and got 6 hours sot and only used ½ the battery.
[G2 Android Development] nexus_vl:
Strange that there is a .txt extension :eek:

Anyway, remove the extension first, open with notepad++, when saving it should always be as it should be.

Don't edit with other texteditors in windows, won't work.
[G2 Android Development] Tinchoska:
How you set stweaks? Can you please share? WiFi all the time? Or 3g?

Enviado desde mi LG-D806 mediante Tapatalk
[G2 Android Development] Fir3blade:
No offense, but I can't believe this... ?
[G2 Android Development] suhiiii:
Put apps usage too :D
[G2 Android Development] queerquirks:
Phone radio on for 11 hours and get 6hr SOT? Sure?

I'm guessing 2g only with screen set to never sleep, while the phone lay there with Max cpu at 300.:rolleyes:

Of course I may be entirely wrong and you use your phone like any of us.
[G2 Android Development] ziociccio:
Very very impossible...i can't believe it...

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development] :
Can you post your settings here?

http://xdaforums.com/showthread.php?t=2776555

Stweaks profiles for dorimanx LG-G2 Kernel
[G2 Android Development] switchgott:
Hi,

big thanks for best kernel.

Small question:

How can i set the undervolt with script inside init.d?

How can i set it with adb shell?

Big thanks
[G2 Android Development] ORT14:
Here it is at the 24 hour mark. Would keep going but have to throw it on the charger before work. I will say that I don't use my phone that hard, mostly tapatalk, gmail, photo browsing, etc.

Settings are as follows:

Governor: Ondemand

Touch boost: 1267

Powersave Mode

Max CPU: 2265

Intelli temp control

Msm hotplug

GPU max 389

Undervolt -12500
[G2 Android Development] SPBoss:
My best result yet.

7 hours SOT, 2 hours phone calls, 1 hour music (loudspeaker) and 1 hour wifi hotspot. All of this and using intensive gpu live wallpaper (pic provided). I can easily get over 8 hours with static wallpaper.

Dori this is kernel is a masterpiece! ????

Sent from my LG G2
[G2 Android Development] dondadah88:
what's your settings
[G2 Android Development] SPBoss:
Stock settings that dorimanx provided and using fauxclock to undervolt -25mv to -75mv depending on cpu frequency. Phone is stable i guess i'm lucky i got a quality chipset.

If your phone can't undervolt the alternative is to set profiles per app. For example set tapatalk profile to underclock to 1.7ghz and max gpu 200mhz. If you combine both (which I'll be doing soon) you'll get even better battery life than what i just posted. Hope this helps and sorry if I'm off topic dori

Sent from my LG G2
[G2 Android Development] BLiNKT:
Dori why settings restore after reboot i have set load on boot but every reboot i must set everything again?So this is not a big problem but anyway is not good ;)
[G2 Android Development] thevinh.btr:
It works fine with my rom (CloudyStock 2.2). Nothing change after reboot.

Check it again or Maybe, cause of your rom.
[G2 Android Development] BLiNKT:
Im on CloudyFlex 2.4 with latest dori kernel maybe i have problem with rom ;)
[G2 Android Development] suhiiii:
I am on CF and never had thath problem :D
[G2 Android Development] garywojdan81:
Could be something in your init.d folder that's overriding stweaks
[G2 Android Development] BLiNKT:
No i have only 09CloudyTweaks script which be included in rom but not problem it's not hard to set settings i make now backup of settings now if goes something wrong i can restore it ;)
[G2 Android Development] garywojdan81:
Move that out of the init.d folder and reboot. See if stweaks sticks
[G2 Android Development] dorimanx:
Your data partition has errors, every boot your journal of ext4 is restored and settings reverted to stock.

Wipe your data, install rom again, and all will work.

Or you can try to delete /data/.dori

Sent from my LG-D802
[G2 Android Development] Dragonhide32:
OK I solved my random reboots issue. Franco Kernel Updater get in the way of STweaks. I was using FKU to enchance my kernel and forget it was still on. I uninstalled it and everything is fine.
[G2 Android Development] orobas:
D805 + Dorimanx 5

i need know Dorimanx 5 working fine in D8052A Stock Brasil ?

In Rom port pro2 i have random reboots whit Dorimanx 5
[G2 Android Development] Manbot27:
[MENTION=2376110]dorimanx[/MENTION] ATT just updated the d800 to have knock code support "software version d80020u" could you include it in the kernel when you have the source or is it the rom developer who has to include it?
[G2 Android Development] dorimanx:
I will check, thanks for update.

Edit...

For now LG didnt released the source in there site...

I will wait for them.

Sent from my LG-D802
[G2 Android Development] dorimanx:
To all cooltool app users.

To see you current gpu freq add this to custom set in fine tuning.

Sent from my LG-D802
[G2 Android Development] PopaStefanx:
Done and working well

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development] EniGmA1987:
Wait so D800 isnt supposed to have knock on/off? Cause I am using this kernel and I can do it...
[G2 Android Development] Velogr1992:
Does xposed must be installed?

i get a permission denied on terminal and cool tool doesnt display anything :/
[G2 Android Development] markus4000:
Thx, seems to be the same value as:

"sys/devices/fdb00000.qcom,kgsl-3d0/kgsl/kgsl-3d0/gpuclk"

Strange thing I can't see any performance difference between 450 and 200MHz :/ I guess that's a good thing for battery life.
[G2 Android Development] Manbot27:
Knock code is different from knockon, Using Knockcode you can unlock your device using taps as a pin. Without knockcode you can wake up your screen with the double tap but then you also have to tap to input the code.

=( Hope LG doesn't take too long.
[G2 Android Development] NOSTALGIA:
kernel almost perfect. but mic gain is too low. huhuhu. any help???
[G2 Android Development] markus4000:
Hi,

I have tested different HotPlug drivers over the last 15 hours and I think there is a problem with all but MSM HotPlug (which seems to work fine all the time).

All other HotPlug Drivers (Default LG, Alucard HotPlug and Intelli HotPlug) seem to work fine when I select them in STweaks and check CPU activity with System Monitor, but after some time/event (maybe a couple sleep/wake cycles or a distinct time in sleep) only core #0 (first core) is active and even on high load no other cores are activated. I changed my Max CPU freq to 800MHz to see if the other cores become active after long high load times but that is not the case. The only way to temporarily fix this is to go to STweaks and either select a different HotPlug driver or select a different HotPlug driver (hit apply) and switch back to the old one (and hit apply again). I also tried to reset STweaks (removing /data/.dori, wipe app data, and reflash 5.0 kernel zip) and reenter my settings, but I get the same result.

My guess (without knowledge of the code) is that the HotPlug drivers somehow get stuck in the sleep state and only allow one core to be active, but I'm not the kernel dev here :p

Please [MENTION=2376110]dorimanx[/MENTION] could you take a look at that? I would like to use the Default LG HotPlug driver, but with only one core the phone is way slower. I'm surprised nobody else has mentioned something like that before, maybe it's a device specific problem but I highly doubt it.

I'm using a D-802 international LG G2. And if it matters I use Nightmare governor if this can affect the hotplug driver.
[G2 Android Development] Morts:
Yes, it works. Give a try.
[G2 Android Development] mehmet184:
Sir

What is this "Rwsem" ?
[G2 Android Development] Robshr:
[MENTION=2376110]dorimanx[/MENTION] Is there a way to get rid if stweaks I tried uninstalling it but it comes back after a reboot I also tried disabling it but it still wants to control the CPU I installed android tuner and would like it to have total control thanks for the help in advance Rob
[G2 Android Development] _Dennis_:
Incase anyone else was wondering, updating touch screen drivers and rolling back to 4.8 (the one that does not say No-knock-code) on the D800 does not give you knock ode (at least on CloudyStock 2.2)

I did not expect it to buy decided to give it a try lol.

Thanks Dori for the great work.
[G2 Android Development] Bornin:
It's a haicom HI-408BT Bro, and the app is simply called bluetooth gps. And your welcome haha
[G2 Android Development] fleeting_dreams:
No way to get rid of it. What you can do is prevent STweaks from applying its tweaks during boot. There is master switch at the very top of the first tab that controls that functionality.

From my experience, though, Android Tuner works just fine alongside STweaks. I have System Tuner Pro configured to load an init.d script that contains my cpu settings (governor tunables).
[G2 Android Development] nexus_vl:
Use "System app uninstaller" or "Root App Delete" in play srore to get rid of Stweaks.

Works, tried it before!
[G2 Android Development] fleeting_dreams:
It'll be reinstalled on the next reboot.
[G2 Android Development] linjes:
default 2.3, ondemand, touchboost@1.57, ondemand on powersave mode, 2260 and 300(i.e.stock).

thermal is intelli, with cpu cores control on and 76/72 respectively

hotplug is intelli as well, 2 cores boosted and all cores used

GPU settings are untouched as I don't game much

IO untouched as well, 1024kb read ahead and ROW

Auto OOM is enabled, default, aggressive, 20% and 25%

Cron is off but i occasionally go in there and do the jobs manually

i don't use init.d and android logger is off

I actually play with fast charge settings so it isn't set, it depends on how quick I need to charge my battery. All cortexbrain processes are enabled

I am using pardus 7.1, but I think you can try the LUX app to manage brightness as it increased my battery life by quite a bit I used to average 4.5 hours actually, not sure if the rom or lux makes the difference. Daily use easily reaches 5h now with LTE on
[G2 Android Development] johnbeetee:
"R/W semaphores: contention handling functions"

https://www.kernel.org/pub/linux/kernel/people/marcelo/linux-2.4/lib/rwsem.c
[G2 Android Development] dorimanx:
i am not sure it's global problem. it's can be CPU GOV! problem!

as it's supply the need for freq based on load, and hotplug enable cores based on freq need and load need.

so try to change the CPU GOV. i never seen such problem with ondemand.
[G2 Android Development] dorimanx:
i will check what i can do.
[G2 Android Development] poochewer:
---------- Post added at 05:16 AM ---------- Previous post was at 05:12 AM ----------

[/COLOR]

Your phone+sledgehammer=fixed!
[G2 Android Development] kosako17:
edit: deleted

Enviado desde mi LG-D802 mediante Tapatalk
[G2 Android Development] thiagofbrito:
Actually it's 4.1 changelog, that's why I didn't see it before.

Sent from my LG-D805
[G2 Android Development] marshygeek:
How do you recover root if im using stock 4.4.2 then used AutoRec to root?
[G2 Android Development] masri1987:
So is the 4.2 kernel working properly in terms of battery life frequency hotplug etc??

What kernel settings are being used? Thanks.
[G2 Android Development] HueyT:
What is your exact firmware number before trying Dorimanx 4.2?
[G2 Android Development] faithraze:
Back and forth

From kitkat I reverted to jb to benefit from stability and battery life of dori 3.6. Well, kitkat is tempting so, I flashed kitkat baseband (I extracted the modem.bin from my official kdz, renamed it to modem.img and put it in the flashable zip provided by [MENTION=270378]Cloudyfa[/MENTION], did it as an experiment) and wipeds evrything then restored my old back up of cloudyproII 2.0, no loss of root, everything functioning normally. Firt charge cycle. From 100% last night before getting to bed, after 8 hours, nothing lost yet as of now. Using tasker, on a sleep mode, no data, no wifi, cell on. Will report battery and performance later.
[G2 Android Development] Swetnes:
Yeah me too, I don't think it's compatible with AT&T's Kit Kat ROM. It works fine with other stock ROMs I've tried.
[G2 Android Development] thiagofbrito:
Go into Philz recovery and look for Restore root under Philz settings.

Sent from my LG-D805
[G2 Android Development] Andrew_han:
Best settongs for balanced performance and good battery life?
[G2 Android Development] marshygeek:
But I have TWRP which comes when installing AutoRec?
[G2 Android Development] thiagofbrito:
I'm not sure if it's what you need but here's a link of flashable Supersu. You have to flash zip on recovery. http://download.chainfire.eu/396/SuperSU/UPDATE-SuperSU-v1.94.zip?retrieve_file=1

Sent from my LG-D805
[G2 Android Development] marshygeek:
Ok. I got all information i needed. Sorry guys, but one last question. If i flash this do i have to wipe anything? I assume no. Just install zip then reboot right?
[G2 Android Development] iall5tar:
Just flash it with no wipes.

Don't forget to flash the one for your model.

Flashing kernels no need wipes.
[G2 Android Development] oTeMpLo:
Does WIFI hotspot works for you? Stock rom 20E. 4.2 kernel.. ?

It does not work :(
[G2 Android Development] Orvils:
[MENTION=2376110]dorimanx[/MENTION] LG released d802 Kernel source with knock code in it. Hope to see this in your Kernel soon.

P.S. Your Kernel is awesome. Thanks.
[G2 Android Development] iall5tar:
Any link for the source?
[G2 Android Development] Orvils:
https://www.lg.com/global/support/opensource/opensourceList?types=ALL&search=D802
[G2 Android Development] marshygeek:
Seems legit! If somehow our masters did it then it will be the time to flash custom rom for me. :D Share it to [MENTION=270378]Cloudyfa[/MENTION] also so he can check it.
[G2 Android Development] FAFE ANDROID:
Lg g2 32gb d802

My friend why you took so long..... awesome work, simple the best... so many things to control, and presets whith the job done.... very good.

I only dont see were we can overclock the adreno 330, is not possible?

Thanks again....
[G2 Android Development] dorimanx:
sure, same path different door :)

with such powerful CPU and GPU there is not much different from 200 to 450 when using phone as PHONE...

when play heavy games, then it's the FPS that get lower on limited GPU...

if not playing games it's SAFE to set max 200Mhz and gain battery power.
[G2 Android Development] dorimanx:
hmm, use stock kernel.

i dont support my kernel without stweaks.

it's not what you want, i will not hold you here against your will.

come back when you ready to accept my work as is.
[G2 Android Development] dorimanx:
why you ask? are you looking for something? or just found kernel control that you want to tweak?

any way it's default, and best to stay that way.
[G2 Android Development] dorimanx:
thanks for report.

LG should release kernel update for that, out Knock Code is for D802

it's also not working on F320! but LG released F320 Knock code update

i have merged it, and now F320 + D802 have working Knock code on screen OFF.

just wait for them to release :)
[G2 Android Development] Alexander1988:
Using FauxSound the mic gain doesn't stick. I'm not sure if it's kernel related but just thought you should know. The mic volume is too low.

Edit : never mind, my bad. Everything is as it's supposed to be. Sorry.
[G2 Android Development] Chikko:
i unistalled this kernel beacuse it use much battery for me, but now i have no knock on! knock off works perfectly but not knock on. I had restored old backup too, but nothing is changed. Any idea how to solve? Try an hard reset?
[G2 Android Development] beggar23:
Try updating your touchscreen firmware. You might want to use the search function for how to go to the according service menu.
[G2 Android Development] mehmet184:
I was just wondering.
[G2 Android Development] Chikko:
Thank for the suggestion. Solved installing right kernel with knock code.

Inviato dal mio LG-D802
[G2 Android Development] Robshr:
Man it was just a simple question you're the one who suggested android tuner in the first place you don't have to be so touchy maybe you you should think about working for Apple they also like total control

Hmm maybe furnace or simple kernel
[G2 Android Development] garywojdan81:
His thread, his rules. And he's justified in his approach in a lot of ways. Devs get blamed for a lot of user error and kernel devs even more so. He's had enough of over-eager casual users flashing his work, screwing it up, and then jumping on here and blaming him and anyone else but themselves when it's bricked.

If you've had the g2 for any amount of time you know it can be fairly touchy with boot.img and flashing issues and very particular with kernel settings. So take it as his way of trying to save you a headache by thoroughly vetting an app that's safer to tweak thing with.
[G2 Android Development] markus4000:
I compared performance in games ONLY and not flappy birds... I tested Dead trigger 1 and 2 on a scene where I get only about 30-40 fps with 450MHz (so full GPU load) and it was no different on 200MHz. Still the same average fps. that's what makes me wonder if there is any effect at all, but I use 200MHz now as default because I can't tell the difference and even if it doesn't save battery it doesn't hurt as well.
[G2 Android Development] dorimanx:
maybe some more small games dont need more, try some 2GB games, and car raising or some heavy shoter, then it's has a difference...

but CPU also HOT and locked to 1.7Ghz most of the time.

other wise it's will blow up HAHAHa :)
[G2 Android Development] markus4000:
Same results as I mentioned before. Only one core is active all the time (after some time in use)

STweaks settings:

Ondemand governor

2.0 GHz Low Freq

Performance Mode

Touch Boost disabled

LG Default Hotplug driver
[G2 Android Development] dorimanx:
i use android tuner and happy with it, + stweaks.

i dont see any problem, and apple already asked me to be there DEV in Israel development company.

guess what i answered???!!!

see you when you will accept my way of control.
[G2 Android Development] dorimanx:
did you enabled cpu core control in Stweaks?

it's will lock cores from online when device is HOT...
[G2 Android Development] reas0n:
hahahahaha, this

oh! [MENTION=2376110]dorimanx[/MENTION] I saw that You were making a 3.12 kernel on SGS2, is it possible to go higher than 3.4 on G2? just being curious
[G2 Android Development] markus4000:
No, default Temp Control and no CPU core control.

All default, Core max heat 80°C and CPU max heat 75°C (so lower than core)

Intelli Eco is set to All Cores used (but that shouldn't effect LG Default Hotplug should it?)

Edit: btw you can see the cpu temp in the right upper corner of the screen (above 2g reception)
[G2 Android Development] teamacc:
Wouldnt be needed if they used intelli temp control...
[G2 Android Development] markus4000:
Now the other Cores work again! Didn't change any settings in STweaks, had the app open and closed it (just to check current values). Then the phone was in sleep for a couple of minutes. Temperature is the same.
[G2 Android Development] Bornin:
Isnt't that strange? Yeah I got the same D802 m8. Pairing with other BT devices works fine for you?

Man I don't know but this is clearly not a rom nor a kernel issue I'm afraid.

Goodluck with it and don't hesitate to shout for help. I don't think a lot of people own a BT GPS dongle nowadays so if you need logs or any just ask. But I think you need to seek in help in Troubleshooting threads my friend, Kernel and rom were ruled out ;)

Edit: could this be a baseband issue or so? I don't know just cracking my mind with you here

Don't know what else could differ besides some hardware issue, but then you should have problems on JB too
[G2 Android Development] d_Schizzo:
[MENTION=2376110]dorimanx[/MENTION]

Hey,:)

just looked in your github and saw this!

So, no more low incall volume?! :victory:

Man, you are the best dev around!

I think, i love you.... (not gay meaning..haha):laugh:
[G2 Android Development] Clauu:
Hi and thank you for your work, 4.4.3 when it will be available?
[G2 Android Development] markus4000:
Sry for spamming the thread a bit :/

I'm pretty sure my problem has to do with sleep/wake cycles or display on/off or something similar. I can temporarily fix the issue if I lock and unlock my device a couple of times (until multiple Cores are active).

Currently all 4 Cores are working again and I didn't change settings or had STweaks open. Just lock and unlock and read posts in Tapatalk.
[G2 Android Development] XxZombiePikachu:
d800 knock code

Hey [MENTION=2376110]dorimanx[/MENTION] today the official knock code update started dropping via ota for the d800(att variant) and before I go through the shenanigins of returning to a stock no custom recovery unrooted state I would like to know if you will be releasing a knock code version of your kernel for d800 since AutoRec installs the 20c kernel and it breaks knock code
[G2 Android Development] jaidev.s:
U should ask this question to LG
[G2 Android Development] Clauu:
Uh i forgot that firstly it must be released by lg.. :) just curious does anyone knows till when lg with release updates for g2, max 4.4.3?
[G2 Android Development] demilenos:
i haven't heard anything but lg didn't likes minor update.

btw if kernel upstream to 3.12 brench, we may use f2fs. i can't wait to see it cuz we korean made it lol;)

from LG G2 - F320S
[G2 Android Development] fuxmen:
What the hell, this phone battery is better then pre Smart phone era...

4 full days of use, 5h sot, over 2h sports tracker with GPS with music over bluetooth. 1h talk. 1.5h kakao talk texting. Over 40 min Plex... Bunch of sms... God damn.

Dori You are God of kernel...

Ondemand battery, GPU max 300 and lux auto brightness. Else is stock. Just to share my happiness ☺
[G2 Android Development] dorimanx:
:) thanks for report! looks great! :)

New version is boiling hard! :) i will release as soon as i will test all i can.
[G2 Android Development] dorimanx:
LGD800	LG-D800(G2)_Android_KK_V20c	LG-D800(G2)_Android_KK_V20c	LG-D800(G2)_Android_KK_V20c

nothing NEW from LG in there SOURCE site.

so you will have to wait for them to give us the source.
[G2 Android Development] dorimanx:
there was a lot of changes to hotplugs and cpu code in my test build (5.1)

so wait till new update. any way did you tried different app to see cores online???

maybe app is bugged?
[G2 Android Development] dorimanx:
it's always possible!

and my SG2 is 3.15.y :)

but it's hard work, we are good for now.

just updated to 3.4.93 :) so we are not behind main line for 3.4.y :)
[G2 Android Development] nexus_vl:
I was thinking if it would be beneficial to select cpu/gpu settings like min/ max freq and govs etc...

apart for screen off, screen on.

Is this possible?

Can remember something doing like that many years ago with my old HTC Disire.

Just a thought :)
[G2 Android Development] dorimanx:
yep no more low mic gain.

if you have faux sound app, you will see that when you set 0 for mic gain and exit the app and load again it's will show 24!

as our driver need 0 <--> 24 <--> 40 value!

24 is middle! i have set 30 on boot! :)

calc is simple ---> 24 is what we need, app have from 0 to 10 range.

code set to take app value + 24, so if you set +6 in app it's 30 for driver!

and your friend hear you perfectly.

faux sound control will show 30 for mic and 24 for camera mic by default.

Now people hear me loud and clear.

also gain is set even if you dont have faux sound app. but only mic/speaker.

on boot by my kernel.

all the rest of the cool controls you will have to support the DEV :) and get his app.
[G2 Android Development] d_Schizzo:
Thanks for the explaintation!

If i get you right, others hear me now louder. But what about speaker gain on call? So, that i hear the others louder? Is it now also louder?

Oh, and btw faux sound is already bought. ;)
[G2 Android Development] johnbeetee:
...try Tasker :) ...