yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] Custom40:
Okay, I'll let Pengus take a well earned rest by answering a few questions for him.

First of all, as I have been on Look Ma myself, it is well known by Pengus that brightness on CM10 is buggy. Pengus got it fixed on CM10.1+ and haven't really looked into it on CM10 based ROMs (yet). Other than that, Pengus has previously suggested to use 3.1 on 10.1+ and 2.6 on CM9/10 - you don't really need SELinux and all that stuff in ics, you know.

About the camera, could a few of you try wiping gallery data/cache and then fire up the camera? If you're interested in the specific issue, then it is because hjunii missed porting the gyro orientation sensor configuration - it is being investigated too.

Regarding Kowalski Manager, mostly there is no support for the options you can switch on/off as of right now. After flashing the latest kernel, head to the apps list in settings, find Kowalski Manager and clear data/cache. It is suggested to use apps such as Trickster which is able to do most important things of Kowalski Manager.

Finally, please go gentle on the battery life. This is still exp. Even in spite of how fast it is, performance isn't even fully optimized at this stage.

All credits to king Pengus who is the mastermind behind most of this (never forget hjunii).
[LG Optimus 2x] rzlatic:
err... cm9 is ics while cm10 and 10.1 are jb... is there really no advantage of using 3.1 kernel on Look Ma (cm10/jb) rom? :cyclops:
[LG Optimus 2x] ivaneris:
Just testing it on jishnu jellycream rom...as far smoother than m1 but use of kowalski manager made it lag...dunno why...so i'm uninstalling kowalski manager for now...

Usb charging works fine...need some time to explore...

But it's really great job [MENTION=3783116]pengus77[/MENTION]

Sent from my LG-P880
[LG Optimus 2x] SuperSkill:
Testing it in T-build 5 by [MENTION=3605868]tonyp[/MENTION]. Seems great, but what I'm excited to see are if this kernel improves consumption so that the battery life will be better like it is on LG-E610 which uses 3.1 kernel :)

Anyway, thanks [MENTION=3783116]pengus77[/MENTION] for another step forward :)

PS! It runs stable in the device I sent you?
[LG Optimus 2x] Jishnu Sur™:
Looks like I will have to take the O2X back from my mom now :D
[LG Optimus 2x] SuperSkill:
Don't give to mom, only borrow, except one thing:love because she feeds you and formes your personality :)
[LG Optimus 2x] pengus77:
Ok, back. Took some time off after pushing alpha 12.

First of all, the alphas will be only for the new boot loader. At least until i can manage to kill all the bugs and annoyances that are still in there.

When the kernel will exit alpha stage, I'll provide an old boot loader build as well, as you're all used to.

[MENTION=1200697]DJNoXD[/MENTION] the alpha build is still using the bcm4329 driver. I'll switch to bcmdhd when the kernel will be completely stable and rom makers (especially [MENTION=3605868]tonyp[/MENTION] and you) will add support for it. Otherwise I could provide a flashable zip of a modded wpa_supplicant that will work just fine.

[MENTION=4148272]SuperSkill[/MENTION] hell yeah! Works perfectly fine here :D

[MENTION=5399879]echo_21[/MENTION] Trim is fully supported and I will include fstrim as a binary in the next zips, so that you can play with it from the terminal.

Kowalski Manager at the moment is only useful for modding the auto brightness settings and leds intensity. Don't try to set other options, they won't work.

Manual brightness on CM10 is quite a mystery to me. I'll flash my 10 tomorrow and look at the reason why it's failing to work (or someone with my 10 installed could provide a few logs so I can avoid flashing it).

I've fixed the gyro orientation for the P990, but the camera still has the occasional hiccup. Somehow clearing data/cache of the gallery fixes the problem. Please try to this as [MENTION=2813698]Custom40[/MENTION] suggested earlier and report here if it helped.

Anyway, as of now I'm more interested about speed, stability and battery life. All arguments about missing features and/or wish lists will be gracefully ignored. I decided to push an alpha kernel so that people interested in helping out could flash it. If you want stability and all the features, stay with M1 ;)
[LG Optimus 2x] torstenconrad:
With alhpa 12 on 10.2, no idea if this is good or bad compared to 2.6, long time since i did bechmarks.

Sent from my LG-P990
[LG Optimus 2x] dced:
Tried my hand at obtaining logs. Firstly, I switched to manual brightness from auto brightness and then tried changing the values from minimum to maximum. The second one would be the turning on of auto brightness, which works. Hope I got the right logs and let me know if there are any more I have to grab/regrab :D
[LG Optimus 2x] cuttysark76:
Alpha?

This is the best kernel ever!

Running it with OptiX 3.5A, ICS Stock Bases.

The screen seems to be more sensitive...

The text boxes rendering or behaviour from the browser looks... Different?
[LG Optimus 2x] new2city:
Saw fstrim supported, so tried this , this means Fstrim is working, right?

Edit: Sorry can't seem to upload a full screenshot
[LG Optimus 2x] SuperSkill:
In t-build 5 i could not turn on wifi. Will check on stock rom too :)

Edit: no wifi on stockrom by sgspluss either.
[LG Optimus 2x] ivaneris:
No wifi prob on me...on jc 1.4

Sent from my LG-P880
[LG Optimus 2x] pengus77:
Here all works fine on 10.2 and TheRom.
[LG Optimus 2x] k101d:
Also work fine with AVATAR 3.3.1 JB 4.2.2 DEC20 NEW BOOTLOADER VERSION and MiUi-P990-3.12.21.:good:
[LG Optimus 2x] ivaneris:
[MENTION=3783116]pengus77[/MENTION]

This alpha kernel really had a better android lifecycle memory management...but...if using swap...it's kinda lag than m1..is it the way kernel 3 or there's more implementation again for it?or because stock rom can't interact well with kernel 3?...we couldn't denied our lack of ram...so that we had to use zram/swap...as for me emmc swap is the best solution so far...thnx before :thumbup::beer::beer:

Sent from my LG-P880
[LG Optimus 2x] pengus77:
Switch to zram, it's way better in 3.1 than it was in 2.6.

Anyway guys, the alpha dev cycle will switch to a different target now. I have to support bluedroid for bt and bcmdhd for wifi. This means that ICS and JB 4.1.2 will be left out from now on. I will produce a 3.1.10 kernel for those roms (by supporting the old bluez stack and the bcm4329 wifi driver), but only when the kernel will get out of alpha stage. I can't focus on building different kernels for ics, old and new bl, while also testing for bugs and adding features. It will introduce too many variables to the debugging process.

So, sorry if someone feels left out, but for the testing phase it will be like this. Stick with M1 if you need a fully working kernel, or switch to a more recent rom if you want to help testing. It's up to you :)
[LG Optimus 2x] Slowdeath:
I have just flash that alpha kernel on latest clean 10.2 by Tony and for now every thing seems to be just fine.

WiFi - works fine;

2g/3g network - works fine;

Auto brightness - works fine;

Camera - works quite fine only some hickups;

HDMI - plugin HDMI cable kills the phone only removing battery helps :( but I know that is not a problem for most of the people;

Many thanks for your hard work pengus!

Wysyłane z mojego LG-P990 za pomocą Tapatalk 2
[LG Optimus 2x] ivaneris:
[MENTION=3783116]pengus77[/MENTION]

Thnx for your kind answer...i'll try your suggestion..

It's sad that ics will no longer supported...but i can said...this alpha kernel..without further add on...i can say it could consider as stock kernel for good

Sent from my LG-P880
[LG Optimus 2x] pengus77:
I will not support ics during the alpha stage. When it's features complete then I'll build a kernel for ics too.
[LG Optimus 2x] wucinac:
[MENTION=3783116]pengus77[/MENTION]

Does the kernel supports KSM?
[LG Optimus 2x] pengus77:
Yes
[LG Optimus 2x] ivaneris:
Great!!:thumbup::thumbup:

Sent from my LG-P880
[LG Optimus 2x] JP12:
Great work! :)

My sound doesn't work. I'm on TheRom build 26. It works for ringtones but not for music.
[LG Optimus 2x] SuperSkill:
I'll try again for sure, but it was weird because I dual boot and installed the kernel on both roms and the wifi would not turn on. I'll try TheROM too, which I would use unless I needed the bluetooth ;)
[LG Optimus 2x] echo_21:
As my wife's P990 is still on ICS, I would like to learn from you the advantages of ICS/Kernel 3.1 over ICS/KK M1 2.6 . What do you miss in the latter?
[LG Optimus 2x] Ryukenden:
i think [MENTION=3783116]pengus77[/MENTION] said that u should use M1 for ICS, and 3.1 for CM10.1 and later
[LG Optimus 2x] torstenconrad:
Now: M1 > 3.1.

After a month: 3.1 > M1.

I find lagg with scrolling in i.e. settings and lagg between swtiching apps. I find launcher redraws which was not on M1. All in all, loading just takes more time in 3.1 than M1 right now. But it ok since it is still Alpha. I could imagine after 1 month 3.1 would work 10 times (thats maybe too much, say 5 times) better than M1.

But I am impressed with the progress, this is amazing state for an alpha with all those things mentioned at the release still to be added!
[LG Optimus 2x] Kyrandialegend:
so just to recap :

kernel 2.6 -- Roms ICS or CM10 -- Swap o Zram settings

kernel 3,1 -- Roms CM10.1 CM10.2 CM11 -- Just Zram setting suggested

Right ?
[LG Optimus 2x] I.m.Tuga:
Ya, that's what I'm feeling right now in terms of scrolling...but damn...it's an alpha..and it's amazing.

Seeing how it works now, imagine how in Stable version
[LG Optimus 2x] pengus77:
Kernel Update (alpha 14)

Ok, fixed a few more things...

1) Thanks [MENTION=5600347]hjunii[/MENTION] for forward porting the star related bluetooth parts

2) Updated the bluetooth bluesleep stack with the one from Google's Grouper KitKat kernel (means full A2DP support, not voice though yet)

3) Forward ported Dynamic FSync and USB Fast Charge (can manage them in Trickster and/or Kowalski Manager)

4) Fixed gyroscope orientation. Camera doesn't really mess up anymore, unless you move your phone too fast around (still investigating why, but seems a "buffer filling too fast" problem)

Download link is here: http://d-h.st/L7B

Have fun ;)
[LG Optimus 2x] ivaneris:
This alpha for 4.2 and up?

Sent from my LG-P880
[LG Optimus 2x] pengus77:
Yes, bt 99% won't work on ICS or 4.1.X. I replaced bluez support with bluedroid support for 10.1+ roms
[LG Optimus 2x] Kenks:
i installed alpha 14 a few minutes ago. SELinux is disabled. is this about rom? TheROM Build25.

[MENTION=3783116]pengus77[/MENTION] camera seems fine but it has hiccups when starting first time or when greenified and restart happens. i dont use stock gallery and camera. instead, i use feav's v3 camera and quickpic as gallery.
[LG Optimus 2x] pengus77:
Yes, SELinux support is 100% enabled in the kernel. Now roms must support it :p
[LG Optimus 2x] apokit:
And what about Trim?It has to be enabled too?
[LG Optimus 2x] pengus77:
Again, trim is 100% supported in the kernel. Since android 4.2.2 the rom calls periodically fstrim, or whatever service it uses, to invoke trim. If you want to manually invoke it, compile fstrim by yourself and try... or download LagFix from play store and run it.

And, since this question has already been answered once... it's the last time i answer.
[LG Optimus 2x] apokit:
Thanks a lot for your answer and all your fantastic work!!!!
[LG Optimus 2x] Peppe91:
With 3.1 (the rom, new bl) the overall performance are a bit laggy but I understand that is alpha so I'm really satisfied! I will report any bugs or just help reporting experiences.. I'm trying to understand the differences between i/o schedule(row and cfq) .. Really thanks for bringing USB fast charge really fast! (I use it a lot especially in car) hats off incredible Pengus!

Then I wish to understand one thing especially from advanced users if possible: I know the 100% trim support, I wish to know if it's dangerous(brick bug) fstrim because I searched through Google and read that can be even harmful... I really don't know and I will really appreciate if someone can give me an answer about it....

Inviato dal mio LG-P990
[LG Optimus 2x] BS86:
its the missing RAM from ramhack that makes the 3.1 feel "laggy" - i removed the theme that i had applied and greenified one more app, now its fluid (wipe cache and dalvik at kernel flash ;) )
[LG Optimus 2x] bliizzz:
penguss a bug from the past is back, when connected to the charger the battery % updates on turning screen off and on.

kk-exp alpha 14, cm10.2 unofficial by tonyp
[LG Optimus 2x] I.m.Tuga:
Don't know if it's from the changes that Tonyp made into CM10.1 TBuild 5 on Bluetooth. But Bluetooth doesn't start with your latest 3.1 kernel.
[LG Optimus 2x] rktdi:
I wonder.. Will bluetooth (calls) work with kernel 3.1, on plain cm10.2 or TheRom?
[LG Optimus 2x] rzlatic:
just experienced black screen bug which pengus mentioned in pre-alpha phase. tonyp's the rom build 26 :-/
[LG Optimus 2x] Fíghter02:
As an utility, fstrim is not dangerous or harmful. It is simply used to mark unused blocks on flash storage as 'free', which may speed up your device since it doesn't have to keep track of those blocks anymore.

From what I can read about this brick bug, it seems to be caused by a bad chip that are reported to be in some p990's. The bug would then cause data corruption when trying to run fstrim, which according to this LagFix FAQ will brick your device. You will still be able to unbrick your device using something like the AIO Toolkit but your data will most likely be lost.

To find out if you have a bad chip you can use this Got BrickBug? app by [MENTION=631273]Chainfire[/MENTION].

Also, here is the BrickBug thread linked to by LagFix FAQ.
[LG Optimus 2x] tonyp:
In my CM10.1 t-builds I have replaced the bluedroid bluetooth stack with bluez, so it will be as incompatible with the 3.1 alpha versions as ICS and CM10!

It should work fine with my CM10.1-based TheROM build as I kept the new bluedroid in there.

Just in case: no, there won't come any updates from my side to CM10.1 anymore - the bluez code is extremely outdated and does still suffer from the speed-up bug, so I'd have to backport the CM10.2 bluez stack to fix that.

This isn't worth the time, as this would break BT phone calls as well - and if someone doesn't need them he can move on to CM10.2 anyways.
[LG Optimus 2x] House.m.d:
+1
[LG Optimus 2x] tonyp:
I guess you didn't refresh before posting, but I couldn't resist: :D
[LG Optimus 2x] SuperSkill:
Alpha 14 from [MENTION=3783116]pengus77[/MENTION] gives me working wifi and bluetooth in t-build 5! Thanks allot :)
[LG Optimus 2x] sudden36:
I just flashed alpha14 on CM10.2 from tonyp for a quick test. Wanted to share the results:

IT WORKS !!! ;)

The camera despite the occasional green flashes you mentioned feels more stable, now even the lockscreen camera works ( it didn't with the 2.6 kernel for me :)

GPS works

internet works and is as fast as with the previous kernels

brightness works

rotation works

The compass is off by about 90°, but I don't know if it's a hardware, rom or kernel fault

The brightness goes to max if the lightsensor is read, but again I don't know if it's even a kernel bug

The voltage reading from the battery doesn't work in gps status, it did in 2.6

as it was said the user interface feels a bit laggy in the default configuration, but when I choose dyninteractive it feels even faster than previous kernels with OC :)

My silly bluetooth keyboard again doesn't work, even with the new kernel, probably it will never work with this phone...

This kernel is definitely the way to go :)

Thanks for your hard work [MENTION=3783116]pengus77[/MENTION] and [MENTION=5600347]hjunii[/MENTION]
[LG Optimus 2x] House.m.d:
You are right, didn´t refresh...

Wiped cache and dalvik, flahed Kernel again, now Bluetooth is starting on T-Build05

Gesendet von meinem LG-P990 mit Tapatalk
[LG Optimus 2x] pengus77:
Yay! Got the latest bcmdhd driver from Google's Grouper KitKat kernel to work :D
[LG Optimus 2x] squall0833:
After read posts here, i cant wait to go back home tonite and switch my o2x to newbl flash these awesome works from our great developers
[LG Optimus 2x] ivaneris:
Just take a sip on tonyp's the rom..just because wanna taste new alpha..™ђёe..ђёe..ђёe..ђёe..™

Sent from my LG-P880
[LG Optimus 2x] DeeKay773:
I can confirm that most of the time the phone needs 2 presses of power button to work:

First wakes up the device (with headset music starts playing)

Second turns on the screen.

Do you guys experience this behaviour too?
[LG Optimus 2x] xperia u20i:
Yes, same here...
[LG Optimus 2x] andreilica:
+1 happens to me too :D Thought that it was my button that was dying. :))
[LG Optimus 2x] rzlatic:
+1
[LG Optimus 2x] ppino:
Same here, although my power button isn't in a perfect shape...
[LG Optimus 2x] Crazy32:
Nope, one press and the screen is on.

I´m on TonyP´s CM10.2 with Kowalski Kernel Alpha 14.
[LG Optimus 2x] dr.lube:
I had it once.. It happens because the phone is lagging.. Fresh install fixed it.. I don't have it right now and i'm on THEROM 26 + kk127
[LG Optimus 2x] House.m.d:
Here only one press, too.

T-Build 05 KK127

Gesendet von meinem LG-P990 mit Tapatalk
[LG Optimus 2x] pengus77:
Hey guys, I'll look into the double-click to turn the screen on problem... in case I can reproduce it. I don't think it's a major show stopper anyway, so it's in the last page of the book-of-things-to-fix :D

Anyway, wanted to share with you the results of the new wifi driver. I think a picture is worth a thousand words, right ? Remember, we're talking grouper's (N7 2012) driver, hacked to work on our phone...
[LG Optimus 2x] vb33:
Hi [MENTION=3783116]pengus77[/MENTION], [MENTION=5284861]stv0309[/MENTION], [MENTION=5600347]hjunii[/MENTION], [MENTION=4994548]Farsx[/MENTION], and all the others that support me:

It's finally solved! The problem was not with the toolchain, but with operating system ia32-libs. It seems that Ubuntu 12.04 64bits has some issues with it...

I have done a fresh install using Debian 7.3.0 64bits, and I was able to compile a bootable kernel. I will try to prepare a how to with all the packages and steps needed to do it.

Nevertheless, just let me know if you have similar problems.

--

vb33

---------- Post added at 11:18 AM ---------- Previous post was at 11:06 AM ----------

Hi [MENTION=3783116]pengus77[/MENTION],

Please keep the superb work. I have just donate for a wine bottle ;)

Confirmation number in private msg.

Merry Christmas and Happy New Year!

vb33
[LG Optimus 2x] Geordi2k9:
Looks awesome! :victory:

Continuate così!
[LG Optimus 2x] Selage:
Wauw. Guess i'm goin to ask my phone back from my mother! :o
[LG Optimus 2x] aritchie:
SELinux support

Quick question - you say ROMs must now support SELinux. What happens if SELinux support is not planned for a ROM - will it still be possible to use the kernel (I'm using TheROM build 23 from Tonyp and he's saying it isn't and won't be supported in the future)?
[LG Optimus 2x] sudden36:
Regarding the turn on issue:

I found out that, when I press the button a little bit longer than normal, the phone comes on much faster. Normaly i turn the phone on with just a very short press.

Maybe anyone can confirm this behaviour or it helps pengus to reproduce this problem.

Gesendet von meinem LG-P990 mit Tapatalk 2
[LG Optimus 2x] echo_21:
IMHO it is not mandatory that ROMs make use of SELinux for being compatible to pengus77's Kernel 3.1 . But if you want to make use of SELinux you have to use a ROM that makes use of SELinux. Kernel 3.1 is prepared for that.
[LG Optimus 2x] pengus77:
This.

Sent from my Galaxy Nexus
[LG Optimus 2x] aritchie:
Many thanks echo_21
[LG Optimus 2x] qqzwc:
deteted
[LG Optimus 2x] BS86:
but the hot stuff needs to be tested ;)
[LG Optimus 2x] ivaneris:
[MENTION=3783116]pengus77[/MENTION]

In tonyp's the rom except a bit slow wake up everything seems perfect...just using default 18 zram (eventough default the rom using m1 rh,means lost 32mb ram) but everything seems smooth...connect usb to pc,no prob...while moving data and chat altogether...far then on stock..maybe because better ram management from kernel and android 4.3

Will explore some more

Sent from my LG-P990
[LG Optimus 2x] cabral.bh:
P990H. Tbuild-5 Kk127-14

Extreme lag. Very extreme. Impossible the use.

Long press the power Burton to wakeup.
[LG Optimus 2x] xperia u20i:
do you try make full wipe?(factory,cache,system,data,dalvik).... wipe cache and dalvik after flashing ROM and then flash kernel
[LG Optimus 2x] Farsx:
Good to know! :good:

I wonder which library cause this behavior...

Anyway, I'm using Ubuntu 13.10 amd64 and I can build using Google's toolchain although if I use a different toolchain (Linaro or Codesourcery) the kernel doesn't boot. :confused:
[LG Optimus 2x] ivaneris:
Sorry if it's been asked...but anyone had tried lagfix app on newest alpha14?especially on tonyp's the rom?i try to take a visit on playstore..but it's said not compatible...

Sent from my LG-P990
[LG Optimus 2x] dr.lube:
I did it, and it works ivaneris

TheRom 26 - KK M1 - New BL
[LG Optimus 2x] apokit:
Lagfix works for me too-The rom build 26
[LG Optimus 2x] ivaneris:
sorry for OT but where did you download lagfix?can't download on playstore (it's said incompatible)

thnx before:highfive:
[LG Optimus 2x] pengus77:
Yeah most probably it's a terrible chipset... anyway max_pm==0 sets PSP Fast when awake and when asleep. If max_pm==0 and wake_pm==0 then you get CAM when awake and PSP Fast when asleep.

Oh btw, just checked and apparently our card shoots signal at 32dBm (1.6W) by default :eek: Lowered to 11dBm (32mW) with iwconfig and still all fine... but less battery consumption (a lot less). Also testing Google's Preferred Network Offload and seems to behave fine now with Combo Scan active. I'll post a test module soon, bundled with the iwconfig binary for whoever wants to test ;)

Oh, side note: "As defined in FCC part 15.247(i), the power transmitted by the transmitter can only have a maximum power level of 1 watt or 30dBm." <-- Good one LG/Nvidia/Broadcom !
[LG Optimus 2x] FatherJony:
Lately my hair (and eyebrows) were becoming curly, that explains it. Maybe it's a fashion statement by LG?
[LG Optimus 2x] pengus77:
Hahahaha yeah probably, just insane. Found out that also on Asus TF series the default is set at 32dBm and, guess what, same bcm card...

Anyway, i'll set a 19dBm default (which btw is the high setting for 99% of the routers out there) and allow users to slide it up/down in the --- SPOILER --- upcoming Kowalski Manager app wonderfully developed by wfd :D
[LG Optimus 2x] klappstuhl218:
I wonder what they are smoking. My router is working with 100 mW, which is (afaik) the maximum for the 2,4 Ghz band here in germany.
[LG Optimus 2x] FatherJony:
You've got an Optimus and a Transformer, the answer is quite of obvious. They both need the 32dBm in order to be able to communicate with Cybertron. Now you've gone and made me suspicious of my phone, what if it sends my pr0n, errmmm, my paper drafts to outer space? I have to be more careful from now on...

As for the Manager app, thank you Wfd :)
[LG Optimus 2x] pengus77:
Yeah, which is 20dBm, pretty much the same max value i have on all my routers/ap here (actually openwrt on my HG553 stops at 19dBm).

Insane that they shoot 1.6W in the ear of users, it could be seriously worth a legal action.

Update: I attached to this post the iwconfig binary. Just slap it in /system/xbin and "chmod 700 /system/xbin/iwconfig". After that you can check the values by just typing "iwconfig wlan0" and set a custom dBm value by calling "iwconfig wlan0 txpower 11dBm" (for example). Call "iwconfig --help" for all the options ;)

Second Update: http://www.cpcstech.com/dbm-to-watt-conversion-information.htm