yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] pengus77:
Experimental Release - 126

At last... :D

Guys, this will be the last kernel in a while. Holidays call and i really need some disconnection from the computer :P

Anyway, this update builds on top of 125 and has only two major changes:

1) Reverted the modem changes introduced in 119. After weeks of testing they seem to be part of the data loss problem.

2) Added timer coalescence/slack code ! Thanks to [MENTION=4615478]boype[/MENTION] for the 3.X patch, i added a load of options in the 95kowalski init.d file. Play with them at will and see the results. Basically this code groups together the background apps that want to wake up, and allows them to wake the phone all at the same time. As of now it's configured to limit the wakes once every 500ms. The init.d file contains all the goodies (last line is the one you want to play with). This lowers drastically the wakeup counts in the phone... and battery is happier :D

Documentation here: https://github.com/pengus77/lge-kernel-star/blob/exp/Documentation/cgroups/timer_slack.txt

As usual, the kernel is up in my XDA File Server folder linked in signature, in the Nightlies subfolder.

Have fun ! ;)
[LG Optimus 2x] sgspluss:
Thank you Pengus for this next good update :good:

Enjoy your holliday :)

BTW: a little question, the values in init.d script are the best (recomended values) or have we found the best for ourself?
[LG Optimus 2x] calav3ra_de:
Hi,

i was talking to pengus about this. Actually, the current 500ms value is quite good, but of course you are free to try other values. But

DON'T

come around the corner with crazy ideas like 1 minute - the best and safe is to start with a value of 600ms at first, which is quite large already, and see how it goes.

Actually it works this way:

the battery driver places alarms - and you don't want to know it hit 0% after 1 minute.

if you don't need notifications, for example, you can raise it quite a lot and be safe (a too high value will result in missed wakes)

Now happy testing, i think timer coalescing is one of the greatest ideas pengus had yet - why wake the phone randomly every x times when it can wake once, and satisfy all wake-requests? :good::cool:
[LG Optimus 2x] x_justin:
Wow very nice one Pengus! Is 3g apart from the modem changes still battery friendly? Thanks a lot, however, are you enjoying your holidays enough? dont spend too much lovely summertime on our phones hea? :thumbup::p:D

erstuurd van mijn LG-P990 met Tapatalk
[LG Optimus 2x] pengus77:
Yeah 3g is still battery friendly, the changes were a bit more hardcore than our phone could handle. Nothing to worry about ;)
[LG Optimus 2x] tonyp:
the battery driver doesn't shut down properly anyways, no need to worry :D

I've played with values up to 5s - while I didn't see an improvement in battery life I didn't notice any problems either.

but the original intention of this commit is for small values in the ms area
[LG Optimus 2x] kaspar737:
I haven't followed this thread for weeks. Does this data loss problem mean problems with 3G? Because my phone has such problem that when 3G is enabled and I close the screen and re-open it after some time it shows that the 3G connection is up and the icon is blue but I can't use the internet. It does come back after 2-3 minutes or when I disable and re-enable 3G. This could be my problem only because when these problems started I had just changed my service provider.
[LG Optimus 2x] Gainer5:
Have a nice holiday pengus :)

http://www.youtube.com/watch?v=cepZIk0PlvM
[LG Optimus 2x] Kyrandialegend:
Pengus probably you have reached the perfection with this kk126 and our p990 has now reached the maturity.

Thank you for all your work over latest months.

Have great holidays ;)
[LG Optimus 2x] dimedevil:
I never have this great battery life before 126, even on idle ...

I usually got at least 8-11%/hour ... the Timer Coalescence work flawlessly on my phone... Thanks Pengus :) :good: :victory:
[LG Optimus 2x] kaspar737:
Hey pengus, do you know why can't I use internet when another person shares his phone's internet via Bluetooth? I can pair just fine and enable "use this bluetooth client for internet" but when I go to browser, no internet.
[LG Optimus 2x] pengus77:
Sorry, no idea, but it's a rom thing - not kernel related at all - and you should ask in the appropriate thread for your rom ;)
[LG Optimus 2x] sudden36:
Hey pengus,

I am struggling with my bluetooth keyboard. I can pair i t just fine and if i use "hcidump" in the terminal i can see data being transfered when i press keys on the bt-keyboard.

I have narrowed it down so far that i can say there is no event device under /dev/input/ for my bt-keyboard ( it is there on a sgs2 with cm10.1 from my brother).

So my question is, is this rom or kernel related?
[LG Optimus 2x] bugadani:
Rom related, bt keyboards work fine with tonyp's builds compiled with gcc 4.6
[LG Optimus 2x] x_justin:
I will try it here later, have a bluetooth keyboard and both stock and CM10 look ma.
[LG Optimus 2x] sudden36:
Mine does not^^

I had this problem with all of tonyps builds since t-build 3 and the testbuilds, PA10-PA12 and some build of pengus.

Maybe my keyboard is some sort of special^^ but it works with other devices running cm
[LG Optimus 2x] Gainer5:
The idle battery life got much better on my phone. Also the drain while listening to music is much less. Tested the kernel on Dohvakiin Ics rom.
[LG Optimus 2x] dieghen89:
This morning for the first time after months I didn't need to switch off the data after the airplane mode (to 2g).

Inviato dal mio LG-P990 con Tapatalk
[LG Optimus 2x] hotte001:
Good Morrning.

I have the problem with kk126 that when i switch off wifi, I have no connection over 2g or 3g. When I reboot phone everything is alright. Anybody else facing this issue. No problem under kk125 with t05 build

Hotte
[LG Optimus 2x] BS86:
Rtfm... That's a known cm10.1 problem mentioned in the op of the t-builds
[LG Optimus 2x] pengus77:
Ok, you need to have at least a 4.6 gcc to compile that, or you change the cflags to adapt... also you need graphite support, but if you don't know what i'm talking about maybe it's best if you study a bit before compiling a kernel :D
[LG Optimus 2x] pengus77:
Same thing happened yesterday to an ICS user during testing. He said that a dalvik/cache wipe solved it.
[LG Optimus 2x] tonyp:
build.prop:

sys.mem.max_hidden_apps=4

That's the value you're looking for. And yes, it's already preconfigured as 4.
[LG Optimus 2x] pengus77:
... on cm it is, what about ics ? ;)
[LG Optimus 2x] hyyuga:
Re: [KERNEL][CM10/CM10.1/ICS - OLD/NEW BL][010 - 2013/01/19] Kowalski Kernel

I feel incredibly stupid :eek:

Thanks for pointing that out..then it was just a placebo feeling lesser lags when setting that option to 4
[LG Optimus 2x] KingMGT:
Well, maybe I should learn more :highfive: or can you build one kernel for SU660?
[LG Optimus 2x] Luk_Optimus:
AW: [KERNEL][CM10/CM10.1/ICS - OLD/NEW BL][010 - 2013/01/19] Kowalski Kernel

I already did this, but it didn't help. weird.

but i will use the old one, it is working very good :)
[LG Optimus 2x] -SONNY-:
AW: [KERNEL][CM10/CM10.1/ICS - OLD/NEW BL][010 - 2013/01/19] Kowalski Kernel

What's the PowerManagerService? And why are there so high wakelocks?
[LG Optimus 2x] CVonV:
wiped dalvik, wiped cache, installed temasek 10.1 v8, installed 010old, installed 010p1default (also tried 010p1psp), reboot

wifi enabled but my home network just doesn't connect

reverted to 010old and it connects fine
[LG Optimus 2x] pengus77:
Uhm, weird because yesterday we tested and worked. It's difficult for me to test for 3 different operating systems (4.1.2, 4.2.1 and 4.0.4) because i only have one phone and it's on 4.1.2. I'm relying on external testers to guarantee that the fixes i make work on all versions, but it can happen that sometimes we get some "false positives". Everything now is fully functional on all three operating systems, but wifi is weird because the user space implementations differ. I definitely need more testers for 10.1 and for ICS... or three phones to test in parallel (really unlikely lol)...
[LG Optimus 2x] sobaquete:
Exactly the same situation for me.
[LG Optimus 2x] cuttysark76:
I've just installed the kowalski-kernel-010-newbl.zip on top DjangoManouche ROM.

Everything quite perfect!!!

But..When I push the Home Button to get the latest tasks, I can't scroll them.

Sorry...[Solved] ---->> Wiped Dalvik Cache
[LG Optimus 2x] CVonV:
it's okay mate.. that module fix is just for the wifi not automatically reconnecting right? it's not a big deal to me because i disable wifi when i'm not at home anyway
[LG Optimus 2x] pengus77:
Guys i need to trace a map of what works on what android version. As i said it's a mess to maintain a single kernel for three operating systems, so when you report a bug, a problem, a question, whatever else, i need you to state clearly what rom you are using (including maker, version and date) otherwise i can't do anything at all. I just found out that the wifi fix i posted has been tested on 10.1, mivv's one, and apparently temasek's differs from it... it's becoming a mess and, unless i find another phone or someone able to flash all 10.1 versions out there, i think i'll drop support for it for now. This kernel ships already with Django Manouche and wifi works fine, ships with a bunch of 4.1.2 based roms and wifi works fine, and i can't waste my time trying to track down the differences between 10.1 builds. So until 10.1 is unified and there's one, and only one, way to handle it i won't guarantee that anything i ship will be compatible. Too much fragmentation does this. Sorry guys.

---

Update to the previous rant: i attach two wifi modules to this post. Please test these and report if it works on 10, 10.1 and ics. These ones, if they work for all of you, enable low power background scan so wifi will be even more gentle on your battery. Don't just report "works" or "doesn't work" please, i need your help to give you something that works as it should, so be explicit and state in what situation works/doesn't and on what rom/maker/date. I tested it on Tonyp's PA and works quite fine. Went out with wifi on, phone lost connection, came back and it reconnected automatically right away. For whoever decides to help out testing this, thanks :)

Update to the update: added another test module called "pno_noscan". Please help me on this :)

I need to know exactly which of the two modules works/doesn't and under which configuration.
[LG Optimus 2x] MetaIIica:
@pengus77

many user forget to wipe cache and dalvik before flash any Kernel and have and report errors. Why integrate not wipe cache and dalvik directly? I have made a little template was can used by you and other. So its can first wipe and then flash.

That resolve many problems...

Downloadlink:

http://d-h.st/1th
[LG Optimus 2x] pengus77:
Because it's not necessary to wipe anything when flashing a kernel. Dalvik cache is only for java/userspace stuff (dalvik vm cache), and the kernel doesn't use the system cache at all. The only reason you would want to wipe them is to delete the wifi access points cache.
[LG Optimus 2x] Kinimod01:
could you put that in your first post? I personally find it kind of useful =)
[LG Optimus 2x] MetaIIica:
that i mean. I think its better to wipe so have resolved many problems
[LG Optimus 2x] darka9:
pengus you have something in mind for charging/1000 mhz bugs on old bl or not?Now I consider going to the new one because of them but if they are going to be fixed why reinstall the whole system for nothing, right?
[LG Optimus 2x] pengus77:
It's not a kernel problem the 1Ghz thing on the old bootloader. Lots of people use Tonyp's PA on the old bl and it comes with my kernel. Very few have this problem, so i can't say for sure what causes it. What are you using to monitor the cpu speed ? Change app and test again. Try Antutu Cpu Master for example or CpuSpy.
[LG Optimus 2x] 4lph4:
The coalescence/slack code has halved the awake time of the phone :good:

I have never seen such good number in the battery stats!

I'm wondering how long the battery will last now.
[LG Optimus 2x] tonyp:
You're saying that you don't have data after disabling wifi with kk126 but do have with kk125?

That's definitely not a known problem - and shouldn't happen. I can't reproduce any issue like that with kk126.

But the answer to this issue usually is a wipe of the cal data (see instructions e.g. in my baseband thread faq).
[LG Optimus 2x] antec123:
try this solution, it worked.

http://xdaforums.com/showthread.php?t=2075564&highlight=transition+wifi+data

and change the ril if needed from this site. please change the ril according to your bootloader (old/new)

http://goo.im/devs/tonyp/P990-stuff/Basebands/RIL
[LG Optimus 2x] hotte001:
Problem solved

Thanks very much for this very fast answer.

After checking my imei by calling *#06# and it showed my correct imei , I tested it and again and what can I say

now it works like a charme. Sometimes I think my phone is a myrical.

Anyway thanks for the fast help

Hotte
[LG Optimus 2x] Norlam:
Hi,

is the ril installed along with the rom or kernel? I am using kk exp 126 + tonyp cm10 b13 PA rom right now so my ril is

"liblgeril-CM-newbl.so" I assume? Its named "liblgeril.so" on my phone. Do I need to rename "liblgeril-CM-newbl.so" to "iblgeril.so"?
[LG Optimus 2x] antec123:
backup your existing liblgeril.so incase the new ril having a trouble.

ril is on rom, it's called liblgeril.so, you have to rename it in /system/lib/ and set the permission same like existing liblgeril.so. after rename and set permission do reboot.
[LG Optimus 2x] liquor:
Same here; KK126 + Greenify and my phone can now run for 2 days without reboot or charging! Thanks
[LG Optimus 2x] thorstenhirsch:
I can also confirm that this kernel in combination with t-build 04 gives us the most usable P990 ever. My "stress test" is Ingress: fast GPS detection, lots of data with 3G, smooth/fast graphics and a better battery life than my colleague's Samsung Galaxy S2.
[LG Optimus 2x] Memhis:
Great work and great kernel. Its unique solutions remind me on some other great kernel dev back in gb days...

It seems that my battery stats won`t reset after charging, it just continue time on, now it is 6 days... I have tried restart, wipe cache etc. Some advice?

And from day to day battery goes quick. One charge cycle is ok, battery is lasting for 36h, then next day it goes for 20h with same usage pattern. Assuming that apps are culprit, but they are all non active, greenified...
[LG Optimus 2x] imayoda81:
battery weirdness is still there

is still stock ics driver or pengus reworked one in latest release? i missed the info along the way :S
[LG Optimus 2x] x_justin:
This one is the very very best ever! Every aspect is mentioned yet, this one is rock solid! I think the Next stable.
[LG Optimus 2x] calav3ra_de:
This kernel seems to have reduced the wakelocks by a huge amount, which made me enable syncing accounts again.

So far i can use sync+3g without any doubts anymore. :)

Still, while my rom is now configured quite perfectly to my liking, i find my battery draining quite a bit but on idle and in use. I dont have real numbers, but it is quite a bit more than back on PA13+14 (iirc the rom build number), nowadays i'm on cm10.1 tbuild05.

i use the same oc+uv settings and cpu adjuster of course.

So maybe we can hope for a 4.3 rom, i think i won't switch roms before that happens.

thanks pengus and tonyp for everything :cowboy: :good:
[LG Optimus 2x] beakolang:
my phone hangs in 1.2ghz.. is the default clock of this kernel is 1.2? bcoz my phone hang and didnt even boot on jb always hang on cyanogen boot animation
[LG Optimus 2x] Kyrandialegend:
No def clock is 1GHz. Wipe all (system top) and try again

---------- Post added at 05:05 AM ---------- Previous post was at 05:04 AM ----------
[LG Optimus 2x] beakolang:
im using lg su660 btw.. i use the kernel for su660? any advice to make this working to my su660? i successfully flush the rom but if i did not use a kernel for su660 the touch did not working lol
[LG Optimus 2x] angel_boulevard:
Finally i have played candy crush.many thank to pengus.yeah yeah!!!!!!!!!!!!!!
[LG Optimus 2x] head_banger:
How? Mine justs flickers on loading screen
[LG Optimus 2x] vpaulve:
How??
[LG Optimus 2x] Peppe91:
I waited to be sure if everything was ok.. And i should say that kk126 it's really stable for me under all aspects, it's really perfect! Even data seems to work perfectly!(I'm on pengus cm10 rom) Thanks very much to pengus and all the testers that works even for us! Really thanks to all of you! Have great vacation pengus!
[LG Optimus 2x] angel_boulevard:
i downloaded and install with full wipe cm10.1 GCC4.8 [MENTION=3605868]tonyp[/MENTION] then i install kk126.i try candy crush..booom..no problem
[LG Optimus 2x] CGabry:
Me neither....

:p

Everything working good in my P990 with testbuild 22/07 @ 1.3Ghz.
[LG Optimus 2x] kaspar737:
Hey pengus, do you have any idea why dynamic fsync in Kowalski Manager doesn't stay on? I enable it, close the app, reopen it and it has turned off.
[LG Optimus 2x] DrummerMuppet:
Works for me. What's your current battery level?
[LG Optimus 2x] noob424:
Sir,

My phone screen turns on automatically without pressing power button I am on tonyp # 4 kk 126
[LG Optimus 2x] bugadani:
Try removing Focal (and restart afterwards), that caused my screen to turn off all the time.
[LG Optimus 2x] salisbury_steak:
I'm so hipster... I play bejeweled.
[LG Optimus 2x] head_banger:
Sorry I have kids that like that game, personally, I won't change kernal due to Peggy's latest kernel is the best, thanks and good hols
[LG Optimus 2x] noob424:
Thanks for reply but i dont what is FOCAL can u explain plz :(
[LG Optimus 2x] black_mamba99:
can anyone tell me the default value for speaker and headphone volume in kowalski manager??
[LG Optimus 2x] Farsx:
It should be 53 for both if I remember correctly.
[LG Optimus 2x] rugglez:
It's the new cyanogenmod camera app. Check if you have an app named "Focal" in the app drawer, if so, that's the one he's talking about.

I tried the game and started playing only after people were reporting problems with it, in threads and in PM :D
[LG Optimus 2x] aftermath85:
how can u play that game?(its not working in our smoothest device for awhile)..

yah me too.. & you can't play this game if u want it to..

...because its not working! no dev is capable of fixing it..^^

hopeless case, & there are plenty of games that we can play with
[LG Optimus 2x] rugglez:
By temporarily using a non ramhack kernel.... As said in many discussions. But that's not a long term solution because it means sacrificing all the tweaks and features of kowalski kernel.
[LG Optimus 2x] tomsi91:
Devils page number 666. Nice.
[LG Optimus 2x] Javiern:
Can you provide a link for the non ramhack kernel? there's some strange behaviours that i want to know if they're rh related... Via PM

Thanks.
[LG Optimus 2x] aftermath85:
i see.. yes, i cant stay on the rom without the kk, the bugs are killing me.. :)

its just ashamed whenever someone say to me"you have the sweetest setup of rom & kernel yet you cant open that stupid candy crush"

:banghead

sorry for the OP here :)

anyway change topic before someone fishslap me.. :D:D:D
[LG Optimus 2x] imayoda81:
now that temperatures are really high, battery won't even charge with screen on, but slowly depletes remaining charge :(

is there a software temperature protection in kernel?

oh yeah, and "666 the number of the yeast" :D
[LG Optimus 2x] DrummerMuppet:
Yep, there is:
[LG Optimus 2x] imayoda81:
Aye, thanks for reminder :) .. I'd kindly ask [MENTION=3783116]pengus77[/MENTION] to raise those values a bit or to make them disable-able trough userspace..

today at the office it was a real pain mantaining it in On state.

(our original battery has thermal protection as well on battery head for really extreeme situations included in bms... compatible ones may vary)
[LG Optimus 2x] 4ever1lov3:
Pengus decided to use those number (45C and 50C) because they are good for your battery. If the battery goes hot for a long time then it may decrease the battery life and even explose :p. my phone can be charged fast with that implementation in KK and it still remains cool. :laugh: it's weird that your phone gets so hot while charging like that. are you using a stock charger?
[LG Optimus 2x] kaspar737:
Hey, there's a fstrim app on GPlay store, but its says in the description that it will brick O2x (temporalily ofcourse). Does this only affect only stock devices or all O2x-s, no matter ROM and kernel?
[LG Optimus 2x] imayoda81:
there was no protection in ginngerbread and nobody got hurt at all.. as i said thermal protection is already part of your battery hw.. try to stay in a hot place like Italy, to charge phone and use it meanwhile, you'll have a bad time tring to not exhaust it... too easy trying to charge it in standby :)
[LG Optimus 2x] sunblade:
In my P990 (ROM: CM10.1 - tonyp - T-Build 04, kkernel126) I have issue with setting volume level on external audio amplifier. I am trying to set volume level over 56 - with no luck (up to 56 is fine). When I set 57 music player pauses after about 1s.

In addition when phone has active notification sounds, setting of volume level causes playback of notification sound on external speakers (temporary stopping music playback). In this case setting volume level over 45 causes 1s boost of playback volume level and just after that, value will be set to 45 (their default).

Please investigate this issue. I hope my post will be helpfull.
[LG Optimus 2x] 4ever1lov3:
of course there wasn't thermal protection in GB kernel and we got no hurt. But if we have it then it would be better huh? Hot temparature causes decrease in battery life, i think.

You're right that i don't usually use my phone while charging it so it doesn't get really hot and i can charge it easily. (Though i'm living in a tropical country (Vietnam if you want to know :D ) and the weather is always hot here. :p ).

May be in the future Pengus will take some time to think about some method to change the maximum temp values dynamically (may be as you said that through user-space...) but now i think Pengus wants to use his time on some much more interesting next-big-things. :laugh:
[LG Optimus 2x] TheBlackCat:
Just a question: did this cable works with kowalski kernel?
[LG Optimus 2x] predicted:
What do you want to do with this cable? I don`t understand why it should not work?
[LG Optimus 2x] JordanRulz:
The LG 2X does not have hardware support for USB OTG. civato tried implementing it a while ago, but it didn't work properly.
[LG Optimus 2x] imayoda81:
it has otg but not power into it, so it's quite a pain to get it working without external supply for usb and losts of cable
[LG Optimus 2x] TheBlackCat:
Because i don't know if this kernel supports otg feature. ;)
[LG Optimus 2x] dr.lube:
OTG is in the wishlist
[LG Optimus 2x] xander59:
Hey pengus,

I don't know if it told yet, but for me, the main head of data drop is the "single core mode".

With the "single core mode" turned on (3G+Data), I can stay from 3 to 5 (+/-) hours of uptime without data drop.

With the "single core mode" turned off (3G+Data), I can stay over 100h d'uptime without data drop.

And if i stay in the "single core mode" turned on (+2G), but that I switch Off it when I need to switch on 3G+data, I can stay longer than the first situation without data drops.

I'm with your CM10 20113-05-14, the KK126 and BB v30A
[LG Optimus 2x] predicted:
You should attach a log for pengus, with this information I guess he couldn´t help you that much.
[LG Optimus 2x] xander59:
of course ! :)
[LG Optimus 2x] sgspluss:
Which governors and shedulers are in this kernel?
[LG Optimus 2x] DrummerMuppet:
Governors:

Interactive

Dynamic Interactive (a.k.a. dynteractive)

Conservative

On Demand

Schedulers:

Noop

Deadline

CFQ

ROW

BFQ

ZEN
[LG Optimus 2x] sgspluss:
Thank you [MENTION=4416262]DrummerMuppet[/MENTION] for the list :good:

Maybe you can say me too which are the standard governor and scheduler?
[LG Optimus 2x] flopower1996:
Interactive and row

Gesendet von meinem Amazon Kindle Fire2 mit Tapatalk 2