yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] PitSchnass:
Nice Kernel Pengus!

I have changed the ALC table a little bit to my own.

LUX_0=5

LUX_50=8

LUX_100=11

LUX_130=14

LUX_160=17

LUX_200=20

LUX_250=23

LUX_300=26

LUX_400=29

LUX_500=32

LUX_650=35

LUX_800=38

LUX_1000=42

LUX_1400=49

LUX_2000=53

LUX_3000=70

Can I add more valves on the left side? For example between LUX_0 and LUX_50 LUX_25?

Gesendet von meinem LG-P990 mit Tapatalk 2
[LG Optimus 2x] pengus77:
Unfortunately no... it's what the aat2870 panel handles in hardware. "Only" 16 steps allowed.

Btw wow! That's bright :D
[LG Optimus 2x] imayoda81:
unmounts with a screen error ? if so try to clean a little the card's contacts.. i was plagued years ago with such a situation :)

---------- Post added at 12:18 PM ---------- Previous post was at 12:16 PM ----------

just a little question pengus :)

we were told that sensor had only 2 states in gb times... what happenned then? now 16 :eek:

ics drivers were better written by lg or what ?

thanks :)
[LG Optimus 2x] pengus77:
You were told a lie hehehe also in gb there were 16 states, it's the hardware that handles and manages them. In the gb backlight driver there are 16 states as well...
[LG Optimus 2x] pengus77:
Bad News Everyone...

Today my P990 fell from the pocket on the ground, hitting on the lower right corner, which caused a massive shattering of the touch panel and of the bezel... already ordered the replacemement on ebay, but it will take 3 to 5 days to come here. In the meantime all development is temporarly stopped. Sorry for this guys, but without a device i can't test, and if i can't test i won't push out anything. Hopefully 122 is already pretty stable for you all so i'm not worried you're left with a broken kernel :p

On a funny note, my gnex is in service and my p990 is without a touch screen. Someone from above wants me back to a plain nokia ? :D
[LG Optimus 2x] tavoc:
122 runs super stable (far more than the LG software ;) )
[LG Optimus 2x] tr@p:
Maybe you can improve that one on some level... :D

Sorry to hear about all the bad luck with smartphones. Hope that replacement part will come soon. :fingers-crossed:
[LG Optimus 2x] Zanbee77:
Sorry to hear that Pengus but rest asurred kk122 is stable as far as I can see.

But about that Nokia any chance we can flash your kernel on it :D

Verstuurd van mijn LG-P990 met Tapatalk
[LG Optimus 2x] pengus77:
I just hope i'll be able to put all back into phone shape when the panel arrives... i opened up the p990 and took out the panel and uhm... it's a mess lol
[LG Optimus 2x] Kyrandialegend:
Hi Pengus sorry to hear that ! Anyway i changed my bezel+touch ( already built together) just for scretches and it's really really easy ! Be aware of dust when you put LCD in contact with touch and do not touch the touch :p Just use guitar picks and not screw drivers during disassembly and all will be fine. PM me if you need other advices :)

PS : use the complete tutorial on youtube

Inviato dal mio LG-P990 con Tapatalk 2
[LG Optimus 2x] pengus77:
Yeah already all in pieces. Need to find a cloth to remove some dust that found its way on the lcd, but all good so far. Waiting for the frame+panel to come :D
[LG Optimus 2x] Kyrandialegend:
Great ! I even used air spray bottle :D

A clean room would be useful :D
[LG Optimus 2x] machoman1337:
Damn, you should've taken my P990, haha, if not for stupid customs :(

Hope you get it repaired without any issues and get 100p6 up sometime!
[LG Optimus 2x] 60nine:
lol great :)

reminded me of "guns don't kill people, people kill people - toasters don't toast toast, toast toast toast" :) :)
[LG Optimus 2x] extreme79:
I suggest to assembly LCD and glass in a free dust environment. In home a good room is the bathroom after an hot shower :)... High umidity, low dust ;)

It's good also to put in place protective films!

Inviato dal mio LG-P990 con Tapatalk 2
[LG Optimus 2x] Fíghter02:
Thought I would share my ALC table as well. :) Works fine with light colors.

LUX_0=5

LUX_50=5

LUX_100=6

LUX_130=6

LUX_160=7

LUX_200=7

LUX_250=8

LUX_300=9

LUX_400=11

LUX_500=13

LUX_650=15

LUX_800=18

LUX_1000=24

LUX_1400=30

LUX_2000=42

LUX_3000=60

Looking forward to be able to use 3 as min. value. :)
[LG Optimus 2x] forforce:
Hi, great kernel , I would like to know if there is a posibility to implement lulzactive governor in this kernel..I find it to be the best .
[LG Optimus 2x] pengus77:
Experimental Release - 123

Well, considering that i'll be without my p990 for at least a week, i decided to push the current work in progress as-is. This is a kernel i've been using for a while now and it works just fine. Changelog is minimal and mostly made of small fixes... actually only three fixes...

- Lowered min auto-brightness to 3 and implemented a better sensor system. Now the light is read every 2 seconds and the scale is based on a log increase/decrease, instead of being linear. This should give a better feeling overall.

- Added a wake lock for the torch. This is something that's been asked a lot since i started coding the kernel and it was due time to implement it. For people on my rom, you can long press the menu key on the lock screen and then turn off the screen via power menu. The torch will stay on :p

- Refactored the pm-irq code so now it works as it should. LG should really get an hint here...

And that's all for this. I just couldn't stand having this kernel laying silent here and not sharing it ;)

As usual, kernels are up in my XDA FileServer Folder (link in my signature next to the kernel thread link). Have fun :D
[LG Optimus 2x] proyatzu:
What is " pm-irq " ?
[LG Optimus 2x] BS86:
Nooooo .... just hit 150 hours uptime ... don't want to restart ... have to ... stop ... urge to ... flash ... ;)
[LG Optimus 2x] darkrulerz:
irq stands for "Interrupt Request"

pm is probably "Power Management"

Seems the 'small fixes' Pengus had lying around might be worth breaking my uptime record ;)
[LG Optimus 2x] pengus77:
Yep exactly that. Basically when the kernel enters LP0/LP1 it places some IRQs in active mode. These IRQs are those used to trigger a wake up in case an hardware key is pressed (power), or wlan receives a packet, etc, etc... LG "forgot" to shut them down on wakeup... and they drain battery. The awesome battery gain you noticed in 122 was due to this mostly. Now it's fixed even better and battery should reflect this. I manage to constantly have my phone in 3g+wifi and drain <1.7% hour. While on 3g only i'm around 2.2% hour ;)

Update: i also would like to share a small hint on how to lower the drain during phone calls -> Setup a profile for "phone calls" in CPUA and set max cpu @608 and governor Conservative. Save and tick the checkbox. When you start or receive a phone call CPUA will make that profile active and you'll see a way lower drain and the phone will stay cool. I'm investigating why the phone pushes the cpu to max freq during a phone call and i'll see if i can resolve it.
[LG Optimus 2x] bugadani:
What, you have less drain with wifi on? How? :)
[LG Optimus 2x] petervanooyen:
U lose less battery with wifi&3g on instead of only 3g?
[LG Optimus 2x] BS86:
that is the case since pengus stopped the wifi drain ages ago ;)

WiFi even consumes a bit less then "2G only" on my phone ;)
[LG Optimus 2x] calav3ra_de:
I think you did not realize yet that Wifi disables 3g-data. :) Pengus was just implying that he is not turning on the 2g-only mode.

He left 3g active (having probably still the 3g voicecalls), but Wifi for data(internet).
[LG Optimus 2x] pengus77:
Because when wifi is on, the 2g/3g modem is unused for data, because traffic flows over wifi. This means that the power management for 3g i implemented keeps the baseband in idle state until you get or make a phone call (or receive/send an sms).
[LG Optimus 2x] tonyp:
Radio drain

This should be the drain table:

airplane < airplane+wifi < 2G+wifi < 2G < 3G+wifi < 3G​

Note: this requires the wifi powersaving modes from the kowalski app of course.

And a special tip for an app I've used in the past:

The Toggle 2G app is capable of auto switching from 3g to 2g when wifi is connected, for some of you it might be worth a look.

It does a lot more, check out this list:
[LG Optimus 2x] pengus77:
... it actually drains less on 2g + wifi than on 2g alone... :p

In 2G (gsm + data mode) the modem is used on-demand, so it basically enters idle and exits it continuously. In 2g + wifi you'll be using only gsm for calls/sms (a plain old nokia) with power managed wifi connection :D
[LG Optimus 2x] petervanooyen:
Thanks :) your the man :p

Mm having trubble with unlocking sometimes.
[LG Optimus 2x] Fíghter02:
Do any of you guys have very different wifi drain at home vs at school? I have almost no drain at home at all but at school I can always save battery by deactivating wifi.

My environment at school is typically a lecture with lots of different AP's and many devices connected to them. Do you think switching between AP's can be the reason?

I have seen this pattern with all versions of kk so far.
[LG Optimus 2x] elderap:
Sorry to ask, I'm new to this phone, this is for ICS kernel or CM10?
[LG Optimus 2x] SWTR:
both

Gesendet von meinem LGP990 mit CM10.
[LG Optimus 2x] Wenzo2:
http://xdaforums.com/showthread.php?t=1525226

I don't know if this is possible to implement in the kernel (or in any rom). But it's very cool!

PS: i write it here because don't work! (or i'm stupid)
[LG Optimus 2x] darka9:
[MENTION=3783116]pengus77[/MENTION] As our phone is already more than 2 years old can I suggest a feauture that in my opinion should be added. Let me explain- my power button(as I believe some others` ,too) started to die slowly(example:2 times works/1 time-not). Can you add something like the mentioned in some of tonyp`s posts "swiping over the LEDs to wake" or waking with volume buttons?
[LG Optimus 2x] CVonV:
yes we've been doing this since the days of temasek + vadonka on cm7.. you could also set the same parameters for a screen off profile (ie max 608 on conservative) if you want

and as tonyp posted, Toggle2G is a great app! do you use it pengus?
[LG Optimus 2x] seriousia:
OR something like this

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

:rolleyes:
[LG Optimus 2x] UserMe1:
122exp pa 13 battery problems

android version PA 13

Kernel 122exp

Overclock: 1300(set on boot)

Issue: The battery life was very poor, in less then 4 hour without full use of the phone, my battery drop from 100% to 15%. After i put to charge the battery still continue to drop and not to charge. Usually my battery life is around 12 hours with medium to hard use of the phone. After reboot everything worked perfectly. Please see attachments.

Thanks for your work! :good:
[LG Optimus 2x] qweewq22:
hello2all

tell me. if I have everything working well on -100mV|1100Mh, -70mV|1000Mh *etc.. , while power 3g + data + sync. but if I turn on the bluetooth or wifi, I get a freeze periodically, it is because of the lower voltage?

i'm on newBL, su660_bb420, OC@1100, dyninteractive, zen..
[LG Optimus 2x] calav3ra_de:
With exp123 last 16hours in idle resulted in loss of 0.2%/h :cool:

3g on, sync off
[LG Optimus 2x] x_justin:
I can confirm that! It's amazing! What is changed? That thing that really should hint LG?

Verstuurd van mijn LG-P990 met Tapatalk
[LG Optimus 2x] imayoda81:
Help meeee, it's getting insane.

The strange thing is that , at that rate of discharge, the phone should get quite hot or at least warm... it's cold instead.

(i'm on latest cm10 and exp122) :'(
[LG Optimus 2x] MinoochX:
Dont use WIFI, use 3G.

And for your info, I get that too. But mines 3mins/1% because i heavily rely on 3G for every minute xD. And well, I bring two mobile boosters(5k mAh ea) to help in the power needs xD trust me, if you use heavily like me, you need at least one pack :) For your info, i use my phone from 6:30am to 6pm daily. So well, 2 packs is to play safe :)
[LG Optimus 2x] petervanooyen:
Q: wenn i push power button sometimes screens flickers. U have that to? Or is it only me?

Think something with cpuadjuster? If i disable default profile the bug is farr less. Maybe i need tweak that?
[LG Optimus 2x] UserMe1:
I have this problem to. Also sometimes the screens don t turn on immediately after pressing the power button.
[LG Optimus 2x] pengus77:
That's been discussed extensively already in both pa and 10.1 threads... it's because the rom disables auto brightness and sets the default brightness before going to sleep. Fact is that the brightness value in the rom is never changed because the kernel handles the auto brightness values and doesn't inform the rom. Quick trick to avoid flickering is to go to settings -> display -> brightness and turn auto brightness off, slide to max and then back to min, turn auto brightness back on. That fixes it for me.

About the slow off (with flickering and blah blah) it's mostly due do dynamic fsync enabled. It's tradeoff you have to live with, because when you press the power button, the kernel performs a forces fsync. That slows down the rom for a second and the lockscreen lags.
[LG Optimus 2x] pengus77:
Please guys stop posting stuff related to rom development here. This is a kernel thread, not a general discussion place. While i consider lovely some off-topic chat here and there, i really get bored when people start posting unrelated questions. Switching between 2g and 3g is a rom thing, turning data on/off too. Thanks.
[LG Optimus 2x] UserMe1:
computer restart when i plug my phone to usb 123exp

Hello,

I have a very strange problem, i just flashed 123exp today , after that my battery droped from 100% to 0 in less then 6 hours and i wanted to charge thru usb , and after less then a minute my computer restarted, again and again.

After a while my phone charged a bit( i didn t had my charger at work) and I manage it to change the kernel version to 121exp. Now with this version my computer didn't restart suddenly anymore with the error message "irql less or not equal".

Any ideea why this was happening ?
[LG Optimus 2x] extreme79:
Hi guys!

I'm experiencing another strange issue (I'm actually on 122, I'll install 123 soon :P ):

I've the second core always off!!

Reinstalling kernel has no effect.I've checked with trickster Mod, CPU Adj (where I played the cards of forcing 2 cores active in the standard profile).

Already rebooted with a spring cleaning :P , already checked with cat /sys/devices/cpu/cpu1/online (not found.. cpu0 is ok).

Already checked with CPU adj, that is unable to show infos about the second core.

Already played the card of forcing one core only from Kowlaski manager, reboot and disable one core only from kowlaski.

No way.. my second core is off. And I'm experiencing a big lag, apps not responding and so on.

(I'm on the latest CM10 release from pengus :) , new bl)
[LG Optimus 2x] pengus77:
Fun, do you have usb fast charge active ? If yes, [MENTION=2666848]tr@p[/MENTION] where are you ? :D

Fast charge on pc could damage your ports and it's clearly stated in OP...

Uninstall CPUA and Trickster, clear data for Kowalski Manager, reboot to recovery, reflash kernel. Boot and check. Something's messing with the cores. Also consider that when screen is off the 2nd core sleeps (it's off) by design. If you enabled single core mode in Kowalski Manager the 2nd core will sleep also when the phone is awake. I suggest you don't use both Trickster and CPUA because they may conflict, i only use CPUA and have never seen this problem.
[LG Optimus 2x] x_justin:
Pengus, It's a shame you can't enjoy your newest kernel right now. I have nothing development-wise to talk about, just want to say that I clearly see improvements of battery and now enjoy the torch wakelock. I lost my ring yesterday under the couch and I imediately enjoyd the forever awake torch:laugh: My batteryconsumption is VERY low, clearly lower then on kernel 122. I am using your latest rom and it drained only 0,3% per hour using only 3g. I left sync on. This sounds impossible isn't it?

I also have one question. I like WiFi, but 3g only drain is good now too. Do you recommend to turn wifi off when screen off after some time? I never considered this option before on this phone, because it used to suck my battery down.

It's not for when I am at home, but I know that WiFi starts to drain a bit when you leave home and you leave WiFi on without beïng connected.
[LG Optimus 2x] extreme79:
Ok. I'll try with your suggestions.

If my second core stay off, I'll post my logs then I'll use the bigest hammer I have over my LG O2x :P
[LG Optimus 2x] shabantheguitarholic:
hi, I need to setting up 95kowalski every I flash the new version of this kernel. Can you add 95kowalski for brightness setting to kowalski manager? so I don't need to setting up 95kowalski again after reflash the kernel or upgrade the kernel. :eek:
[LG Optimus 2x] pengus77:
It's coming...

Make a backup of the file in the meantime using any file manager or adb...

adb root
adb remount
adb shell
cp /etc/init.d/95kowalski /sdcard/
.... flash new kernel when it comes out
adb root
adb remount
cp /sdcard/95kowalski /etc/init.d/
reboot
[LG Optimus 2x] rajdoll:
I'm facing this problem too. With Exp123, 9 out of 10 times, screen does not turn on on the first press of power button but gets turned on always on the second press. I have tested this on both Tony's 10.1 and PA. With Exp122 these is no such issue. Any suggestions?

I'm on dual boot with old bootloader.
[LG Optimus 2x] stevens_kenneth:
I have this issue with the exp122, not with the exp123, i love the exp123 because less battery drain.
[LG Optimus 2x] tonyp:
I've just asked pengus to add a short delay before flushing the buffers, will receive a test kernel any minute.

Edit: Seems to work fine, will be in 124 and does hopefully fix the issue for most of you :)

Edit2: apparently only works on CM10.1, not CM10 / PA :(

Apart from that I don't think there's any point in more "I have this problem, too" posts.
[LG Optimus 2x] LarsPT:
This is what most companies need... inter-department communication. You guys rock, thanks! :good:
[LG Optimus 2x] kekks:
The issue is quite resolved for me by flashing 123 at times its there but still bearable than the previous one. Good to hear that 124 resolves it.

This kernel battery seems to be much better. Pengus your every kernel gets tempting. Man you both do a great job. Hats off to you guys. :thumbup:
[LG Optimus 2x] mas2112:
I have a theory with regards to high battery drain and the phone getting hot. I think it's baseband related. The wireless code gets into a bad state and starts sucking power. Maybe turning airplane mode on and off will kick the wireless stuff back into a good state. Or a reboot. Does this sound plausible? I'm waiting for my phone to get into this state to test it out.

I also observed that with airplane mode on, even with Wi-Fi on, the battery can last 2 times longer. I didn't realize the wireless itself could use as much battery as the rest of the phone.
[LG Optimus 2x] Wenzo2:
the battery with kk123 and tonyp's cm10 is "wooow"!!

14 hours with battery!

max freq. 1,4ghz

boost pulse 600mhz (and for some time 1ghz)

3h 30m with screen on

i've game for 1h!!

navigation for 30min...

wifi 8h...

some messages...

facebook ecc ecc...
[LG Optimus 2x] Kyrandialegend:
Is the persistence of the speakers volume in plan for future releases of KM ?

(I can't remember if it's a feature or not)
[LG Optimus 2x] extreme79:
Finally I caught the "bug", I think.

Not Trickster or cpua direct related, but something similar.

If in cpua profile I force single core, it switch off the second core.. Forever!

No way to resume. Only a spring cleaning of cpua, cache, dalvik, kernel reinstall can resume the second core.

In my case I had to reinstall the rom too.

Force single core from kowlaski manager and next re enable it does not work.

Can anyone of you make a test? Run a cpua profile that forces the single core.

Inviato dal mio LG-P990 con Tapatalk 2
[LG Optimus 2x] pengus77:
I'd say it's a CPUA bug. In Kowalski Manager i can switch between single and dual core without any problem. Never tried using CPUA to force single core mode though. You should post the bug in the CPUA thread ;)
[LG Optimus 2x] Dru79:
When I disable one core then my phone will be work longer?
[LG Optimus 2x] Medizinmann:
Whith less load in theory - yes...

But when the single needs to run at full speed all the time to get job done I would assume it won't bring much help.

But most time the CPU sits and waits anyway - so most of the time it should work...

Ich would say - just try it.
[LG Optimus 2x] mrQQ:
pengus77, are you having any success with the battery driver thingie? will that mean we'll get 15% of battery free? :)
[LG Optimus 2x] extreme79:
Done! :)
[LG Optimus 2x] dorwoo:
A log regarding brightness change after phone call.
[LG Optimus 2x] SWTR:
My battery is fully empty. When I want to charge it, the animation comes and it charge maybe 3min. . But after an time the display goes off and the animation comes again but whith an warning. (yellow triangel) So I can't charge it. The battery is fully working (3days old)

Gesendet von meinem LGP990 mit CM10.
[LG Optimus 2x] pengus77:
Rom problem.

Uhm, is it an original battery or an aftermarket one ? The yellow triangle means that the kernel receives some bad readings and sets the status of the battery to bad... or maybe it wa overheating?
[LG Optimus 2x] SWTR:
Yes its an original battery. The battery gets hot but why? The phone wasn't on, only the charge animation comes. The strange is on the old bootloader I can charge it normally with the GB animation.

I have 3 other original batteries. There its the same when the battery is fully empty.

Gesendet von meinem LGP990 mit CM10.
[LG Optimus 2x] dorwoo:
Well,it's your rom,any idea what might cause it?
[LG Optimus 2x] Crazy32:
Hi Pengus,

in Kowalski Manager we can activate the Single Core Mode. If will adjust the single core mode only with Kowalski Manager, so which option have I to choose in CPU Adjuster? The option “Don´t Update” ?

Thanks for your great work again!
[LG Optimus 2x] mind_challenge:
To me, 3g is still draining battery massively, and battery gets hot when on 3g. Don't know why, maybe something with BB, or RIL.
[LG Optimus 2x] blumenkasten:
This is the kernel thread.
[LG Optimus 2x] extreme79:
Are you on V30a or V30b ?

I still have massive 3G drain, but I'm on V30B that's originally for Asia.

Probably using v30A do the trick.

You can try.
[LG Optimus 2x] mind_challenge:
I'm using this BB, 1035.21_20121130. I'm not sure if it is V30a or V30b.
[LG Optimus 2x] sgspluss:
Use new kowalski kernel exp 123 as default in my OpGaNex Rom and all work fine. Thank you Pengus for this good work :)

Sent from my LG-P990
[LG Optimus 2x] imayoda81:
i've installed some diagnostic software to understand where does my juice go ...

meanwhile i've done some voltage checks and battery seems to be still over 3,7V when phone declares it under 14% ... i can use my phone longer with screen on rather than in standby, as in this state it drains circa 33% battery in 25 minutes.

still investigating

[MENTION=3783116]pengus77[/MENTION], could you please tell me an older exp kernel where battery driver was the old version, just to test this votage thing. Thanks a lot
[LG Optimus 2x] filarod:
I guess thats a Gingerbread baseband, because if it was V30a ou V30b you would see that.. At least, my P990 shows LGP990AT-00-V30a-EUR-XXX-NOV-30-2012+0

The better thing for you guys to do is try diferent basebands and see which works the best for you before posting any complaint in the Kowalski thread..
[LG Optimus 2x] BS86:
20121130 means 30 Nov 2012, so it is V30A ....
[LG Optimus 2x] pablo86ht:
Wonky battery reading after updating to 123.

Logcat: http://db.tt/ryuBktzx

Enviado desde mi LG-P990 usando Tapatalk 2
[LG Optimus 2x] akash.mahadeshwar:
I'm on tonyp's cm 10.1 build 1 but when I installed the latest kk 123 the brightness was too low

While I was using the old version 120 I din't had the issue.

Thanks if any 1 could help me with it I tried searching ^_^
[LG Optimus 2x] Gainer5:
You mean auto-brightness, don't you? If yes:
[LG Optimus 2x] calav3ra_de:
I meant the same. If you are using autobrightness, it's normal. And i cannot even think you haven't read about the new kernel features. So please, look at your phone :highfive: