yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] echo_21:
Everybody please test dalvik.vm.heaptargetutilization=0.75

Yes I believe so and hope that is really correct. tonyp seems to be convinced, right? I'd like to ask all of the readers to test dalvik.vm.heaptargetutilization=0.75 and report results here.

The change of dalvik.vm.heaptargetutilization=0.75 into 0.25 was introduced on Aug. 7th 2013. Let me post the link to the commit of dalvik.vm.heaptargetutilization=0.25 again: http://review.cyanogenmod.org/#/c/47285/1

Please read this comment: "xiaoxi.meng	Aug 18 8:34 AM

Patch Set 1:

to my understanding heaptargetutilization = live objects / heap size 0.75 means 75% heap are used by java objects, 25% are ready to allocate new objects. here you set it to 0.25, this should be very inefficient. only 25% heap is used for allocated java objects. 75% are free memory for new allocation.. see also dvmHeapSourceUpdateMaxNativeFootprint() in HeapSource.cpp"
[LG Optimus 2x] tonyp:
Yep, it's a shame. Although not the first time CM merged something for outdated/lowmemory devices that holds more disadvantages than advantages.

Their focus has always been more on the highend devices - I guess I can't blame them, that's where the users are.

Anyway, note that for my recent ROM I went even further, it comes with the following changes:

dalvik.vm.heapgrowthlimit=64m \
dalvik.vm.heaptargetutilization=0.80 \

That's the recommendation I found for low memory devices, and so far I'm really happy with it.

I implemented a couple more changes (see recent changelogs), but they are deeper in the ROM so you can't just adapt that for older ROMs.

I think by now this ROM is quite optimized, note that by now I made the following changes which all target it's performance within lowram condiftions:

ARM modules compiled with Os

Adjusted Dalvik properties

OOM changes

Memory ADJs optimized

KSM tweaked

ROM compiled with GCC4.8

ZRAM increased

/data and /cache mountoptions changed

Set TARGET_ARCH_LOWMEM flag

Turned off dalvik bytecode verification

Disabled JIT

That might not be all, but that's what I remember :fingers-crossed:

Oh and regarding a Facebook app, there's another one I do like: Tinfoil for Facebook.

It's basically a wrapper for the mobile interface.
[LG Optimus 2x] head_banger:
Thanks for everything [MENTION=3605868]tonyp[/MENTION] you made having the p990 a joy having, hope the best for the future
[LG Optimus 2x] TheMysteryouse:
Buddy I was testing your latest build and i need to say, I'm impressed how good it is.Like it opens on the play store sites so quickly its unreal.I am mostly impressed with the memory managment.What you guys found out with the 0.75 was just...wow.Thank you all for it.It was really a big deal to be honest here of stability. :)
[LG Optimus 2x] NoDze:
In layman's terms for everyone:

So, one part of your RAM was always focused on the app that is currently running, and the other part was for the apps you are going to start. In this case, only 25% was allocated to the app currently running, in order to spare some more free RAM. With this new "thing", 75% (or in Tony's case, 80%) is given to the app currently running, so that the app you are currently using is "breathing freely" :) Or did I understand something wrong?

Anyways, nice thing to know, might be useful to some users.
[LG Optimus 2x] kennyFF92:
Thanks tonyp for all your works ;)

As you asked for fixes to apply in your last update i can't remember if the zram bug got fixed, that bug that set the zram at half of its value after every reboot if the "set after reboot" option is ticked in PerformanceControl.
[LG Optimus 2x] vanko11595:
One more thing regarding wifi tethering. When turn off wifi tethering after using it, wifi stops working. Can't start and connect to wifi network anymore. The phone needs to be restarted for using wifi.
[LG Optimus 2x] Robyer:
When I was trying this rom for last time (2-3 months ago) sensors (like magnetic sensor/gyroscope/... - i.e. compass application or direction on maps) were not working correctly. Is it fixed already or is there anything that I could do to make them work correctly? (Like different kernel or settings?)

I'd like to use this ROM as a daily driver again, but this was one of my biggest problem here.

Otherwise thank you tonyp and others for your whole support for this phone! :good:

EDIT: Yes, sensors are still broken. Metal detector doesn't work at all, compass shows wrong/random values,...
[LG Optimus 2x] amarprat87:
These are Kernel issues. Somehow motion sensors not working properly in 3.1 kernel
[LG Optimus 2x] njaywtf07:
anyone here had issues with checking internal and external storage in pc after flashing the latest build by tonyp (cm-11-20150130-UNOFFICIAL-p990)? Storage is recognized in recovery but not in normal operation mode.
[LG Optimus 2x] Frecciablu(2):
The yellow camera, go in crash :S
[LG Optimus 2x] vanko11595:
No problem when connecting to pc. External and internal sd card are readable and writable for me. Camera is also ok.
[LG Optimus 2x] DeeKay773:
Clean install latest version and yet I see in /sys/kernel/mm/pksm/run set to 0.

Is it by default? I can't find in performance settings option to enable ksm :/ but still good job :)
[LG Optimus 2x] pijas82:
Thanks Tony,

but I was happy, if you made one last ROM, lollipop.

Sent from my LG 2x
[LG Optimus 2x] giaptai107:
Can anyone give me a link to download "cm-11-20150130-UNOFFICIAL-p990"??? Thanks
[LG Optimus 2x] Slowdeath:
It is in Tonys post #1059

Anyway, here you go:

https://s.basketbuild.com/devs/tonyp/CM11
[LG Optimus 2x] echo_21:
I agree,

1. /sys/kernel/mm/pksm/run is 0. In this build most probably no KSM instance is running

2. there is no /sys/kernel/mm/ksm/ which is maybe the reason why performance control doen't show any KSM control entries.

for p(engus77)ksm instead of ksm see http://xdaforums.com/showthread.php?p=53072673#post53072673
[LG Optimus 2x] giaptai107:
Excuse me. i have installed lastest build with M1 but i can't turn on wifi. Help me!!
[LG Optimus 2x] pijas82:
Hi, you flash with full wipe? What kernel you used ,before flash

Sent from my A0001
[LG Optimus 2x] njaywtf07:
Thanks, got if fixed by unticking and ticking usb debugging mode.
[LG Optimus 2x] giaptai107:
Before, i used cm-11-20140716-UNOFFICIAL-p990-bcm4329.zip with kk M1. It work nomally.

But when i flash the newest build of tonyp with M1. Wifi doesn't work. I can't turn it on :crying:
[LG Optimus 2x] amarprat87:
That is a wrong Kernel combination. The Rom is only for 3.1 kernel.

So don't flash M1 kernel. A M1 specific rom may or may not come at a later stage.
[LG Optimus 2x] giaptai107:
Oh. Thanks you for the reply. I will try again with kk3.1 :)
[LG Optimus 2x] amarprat87:
Rom already includes 3.1 kernel from Firtecy. You don't need to flash a kernel. Just enjoy the latest build.
[LG Optimus 2x] giaptai107:
Haha. My device isn't p990, it's SU660 :D so i have to flash kk 3.1 for SU660 after flash this rom :P
[LG Optimus 2x] salmanfarisy:
same here.

LG camera is always forced close.

stock camera is under performing. no good autofocus and always blank white picture when flash is on.
[LG Optimus 2x] mbaier:
This work :

Camera JB+ 3.1
[LG Optimus 2x] salmanfarisy:
Tried several camera apps and still blank white photo when flash is on.

Fortunately i found this works without blank white photo:

Cyanogen Camera

It is originally stock camera of OnePlus One and it should works for any cm12 based rom. Works well in my test.
[LG Optimus 2x] Wooby:
How do you have working the cyanogen camera it works in the newest build? Cause i tried on older and it force closed
[LG Optimus 2x] vanko11595:
For me default camera app of Tony's cm11 20150130 rom (com.android.camera2) works like charm. Try to restart your phones.
[LG Optimus 2x] Wooby:
Ye it works great for me too but i want to try the oneplus one camera exclusive camera ;)

I installed it on pa 4.6 and it works

I would like to see the m1 soon hope tonyp will stay with us forever !!!!
[LG Optimus 2x] lulli1:
I'm on one of the last M1 versions. can I flash the 3.1 kernel version 20150130 from tonyp over this version without data wipe? has anybody tried that? what is the result? I'm not really satisfied with the M1 because of several Mobil network disconnections and always reboots needed to bring the connection back.
[LG Optimus 2x] qweewq22:
No ! You need full wipe, and other build .

P.s. last build tonyps is mega cool.. 30.1.15.
[LG Optimus 2x] salmanfarisy:
I saw the post here and downloaded and installed the apk from here.

Camera v2.0.004

Yes it works in newest build.
[LG Optimus 2x] giaptai107:
Is there camera rotation bug and wifi crash in the last build????
[LG Optimus 2x] echo_21:
wifi crash in build cm-11-20150130-UNOFFICIAL-p990

I had one wifi crash in 3 days of use of this build http://xdaforums.com/showthread.php?p=58524141#post58524141 based on kernel 3.1.

Toggling wifi or/and airplane mode did not help. I had to reboot to get wifi working again.

Wifi never crashed on any CM11 ROM that is based on kernel 2.6 M1.

Edit 01: Regarding the camera rotation bug I can't tell any results as I haven't tested so far...
[LG Optimus 2x] giaptai107:
how about camera rotation bug?
[LG Optimus 2x] salmanfarisy:
I find this annoying:

First Boot:

- wrong timezone

After Reboot:

- wrong date/time

After Aeroplane Mode:

- status bar has different date/time with system's date/time (setting, quick setting, widget, etc)

- both are wrong date/time

- clock in status bar disappear (hidden) when i tried to place it in center of status bar, but appear when i choose default.

About camera rotation bug, i think it's kernel related.

Some said it is happened in kk 3.1 but not in kk 2.6 (M1).
[LG Optimus 2x] DeeKay773:
+1 to wifi bug with clean install of latest 3.1 rom. I was restoring SMS from Gmail account (sms backup+), turned off screen, after 5 mins i got new messenger message but then nothing and after an hour i was unable to turn on wifi. Reboot helps.
[LG Optimus 2x] giaptai107:
It's wifi crash bug. You have to reboot to turn. It's kernel issue.
[LG Optimus 2x] dev>null:
Tested it and was experimenting heavy lags and phone's heating.

Then, after 4 or 5 of random reboots, it kind of adjusted itself !

Gps not locking on my su660 model...

overall the m1 kernel simply feels much more stable and accountable atm, so will test again when (if) a m1 version is released ;)

However, great work !!! Thank you.
[LG Optimus 2x] foober:
This rom is very fast and i don't have heavy lags. Sometimes wifi disconnected with my home network.
[LG Optimus 2x] lukino993:
Switched to cm11 m1 last gucky build(i think 112014)and all works decently now. waiting for the last m1 masterpiece by master [MENTION=3605868]tonyp[/MENTION]
[LG Optimus 2x] tonyp:
Whatever you do, this has to be on your end. My phone sleeps like a pro, I got 7 days of idle time :D

You're welcome, too. And I definitely agree, the current ROM wouldn't exist without the help of many many contributors :highfive:

And I wouldn't go so far to say it crippled all ROMs - I've always been quite happy with my CM10.2 and TheROM builds (although they might work even better with 0.75/0.80 of course).

I guess with Kitkat this just shows a lot more. And I think some other of my recent tweaks helped as well, like to free heavy apps earlier (via the adj adjustment).

As it has been said here this is a kernel issue, which I unforuntately can't fix in userspace (actually iirc the wonky camera is a result of these sensor issues).

But I will release a m1 version for my final version for all those who need the added stability for camera, wifi and sensors.

Yup, I got that, too. I checked the log but it doesn't tell me exactly what the problem is.

Seems like something changed internally which stops the ported LG stock camera from working.

Would be great if someone could check the LG camera ports if another one works, so I could replace it with another one.

If not I will just remove the ported LG stock camera for the final build.

As the ROM comes with Firtecys kernel we need to use pksm now. I had it disabled for testing but reenabled it a couple days ago for the next build.

Allright, this is important. I've made a change to my code which will fix automatic time for all SU660 and P990 Basebands starting from v28e.

See my Github commit here.

The routine to automatically detect the baseband and behave accordingly unfortunately never fully worked for some reason.

I believe that more people are using the newer basebands nowadays, am I right? Please confirm everyone.

Users of older Basebans will then be able to add telephony.test.ignore.nitz=false to their build.prop to fix it for them.

(same as every user with broken automatic time could just add telephony.test.ignore.nitz=true and will have a working automatic time....)
[LG Optimus 2x] MatteoB92:
[MENTION=3605868]tonyp[/MENTION] If you could change your mind on the decision to stop development, and help all of us to develop Lollipop together..

We know is a passion for you, and we need your skills :)
[LG Optimus 2x] salmanfarisy:
I added telephony.test.ignore.nitz=false to my build.prop and the problem is solved.

So it means i'm using older Baseband?

I live in Indonesia FYI.

Thanks for the answer, Tony.

:good:

Edit:

I tried f50.apk (jishnu's modded LG camera port for cm11) and it also crashed.

Edit:

Date/time went wrong again. I change the value to true and then date/time is right.

This is confusing LOL

Edit:

Now, date/time won't go right again even i keep switching value between true and false.

FYI, my baseband version is LGP990AT-00-V30b-ESA-XXX-DEC-18-2012+0
[LG Optimus 2x] tonyp:
Not gonna happen as I don't have the time. There's no chance at all that I will change my mind, this is settled.

I was talking about the next ROM, not the current one. Setting it to false doesn't have any effect in the current ROM.

In theory it should work for you by adding telephony.test.ignore.nitz=true (you have a v30b baseband, and v30b >= v28e) - don't forget to reboot afterwards.

But this can differ from provider to provider and I have no idea how it is handled usually in Indonesia.

If you still keep having problems just disable automatic time and install ClockSync. Problem solved. :cool:
[LG Optimus 2x] giaptai107:
Hope the last build in everyday :o it's can be the "lucky money" of tonyp for our in lunar new year :victory:
[LG Optimus 2x] salmanfarisy:
I did that and reboot.

Date and time are right but timezone is wrong.

Eastern Indonesia Time instead of Western Indonesia Time (2 hours difference).

I disabled automatic time zone and selected right time zone manually to solve my problem. LOL

Anyway, thanks for the hard work. Last build is fast and smooth. Bugs are minor and i can live with those. :good:
[LG Optimus 2x] MatteoB92:
I suspect it, also if I think you made much of P990 community and you could have done yet so ; however I respect your decision :)
[LG Optimus 2x] Robyer:
Does anyone has problem with deep sleep that is too deep that alarmclock doesn't work? I'm using stock cloc kapplication and it won't wake up my phone in the morning - alarm starts only after I manually press power button to wake the phone. What can be the cause/solution for this? :)
[LG Optimus 2x] echo_21:
Edit 2015/02/10: further experiments show that the reality is a bit more complex as written in "Sometimes (state #2) after re-boot the time display is in-correct (display of UTC time; only everybody who lives in the UK will be happy during summer) and remains in-correct at least until next re-boot." below. Sometimes the time zones is fine right after re-boot but after hours it switches to incorrect UTC time zone. For details see here .

Hi tonyp, there is a strange behaviour regarding the incorrect time (display of UTC instead of correct local time) I know now for long times: sometimes (state #1) after re-boot the time display is correct and remains correct at least until next re-boot. Sometimes (state #2) after re-boot the time display is in-correct (display of UTC time; only everybody who lives in the UK will be happy during summer) and remains in-correct at least until next re-boot. So to get a correct time display one needs to reboot as often as it is ok. Most often it takes just one re-boot. Just once I needed 3 re-boots.

In state #1 the display of Settings|About Phone|Baseband version is LGP990AT-00-V30b-ESA-XXX-DEC-18-2012+0

In state #2 the display of Settings|About Phone|Baseband version is 1035.21_20121130

A similar behaviour is with BB LGP990AT-00-V30a-EUR-XXX-NOV-30-2012+0 . The correlation between incorrect time display and BB short string display is 100% . Thus, I suspect more an interfacing issue between ROM/RIL and BB instead of a simple time synchronzation issue. What do you think?
[LG Optimus 2x] foober:
GPS working good? Rom it's fast but with GPS it's problem. Don't catch fix...
[LG Optimus 2x] kennyFF92:
My GPS fixes in about 5 minutes, more rarely 10, but always do with 3G activated.
[LG Optimus 2x] qweewq22:
+1 nitz dont work on last built tonip =/
[LG Optimus 2x] drakodga:
Thanks [MENTION=3605868]tonyp[/MENTION] for your reply. I have been trying with other 3.1 roms and my 2X has the same problem. With more details I discovered that the problem is when my phone enter in deep sleep. If it occours, it hang up and i must turn on.

It is very strange becouse thats behaviour is ok with 2.6 kernels.

Anyway, thanks for your time.
[LG Optimus 2x] pijas82:
With carbunaro ROM, no problema, fantástic battery life,GPS, fludity.....

Sent from my A0001
[LG Optimus 2x] echo_21:
Sorry what do you mean with "carburano ROM"?

---------- Post added at 21:32 ---------- Previous post was at 21:23 ----------

Check the size of the file \data\gps\gldata.sto. Initially after ROM installation it is less than 1kB. For proper GPS operation it needs to be larger than 9kB. Tip: place your P990 on a window shelf overnight powered by the charger and let google maps app run that time. Sooner or later It will find a GPS fix and fill up the file. Next day GPS should always fix withing 1 minute.

Make also sure that \data\gps\lto.dat is existent and not older than 5 days. If this is not the case reboot P990 with wifi in range and check again.
[LG Optimus 2x] lukino993:
I think he refers to djangomanouche
[LG Optimus 2x] mbaier:
DjangoManouche X 1.6.5 I guess
[LG Optimus 2x] foober:
I solved problem. I use top ntp from play store and set up the settings in app. GPS catch fix in 1 minutes . ;)
[LG Optimus 2x] tonyp:
What you found here makes a lot of sense.

Back in the day I wrote a little function to automatically detect the Baseband version and based on this either did or did not ignore NITZ.

See here: p990: automatic time nitz fix

(if somone might wonder why the code looks a little bit complicated, it's written like that on purpose to optimize it's runtime).

As you can see I specifically filtered on the Baseband code.

arcee wrote a little helper to extract the exact Baseband code, see this commit.

Apparently his code isn't failsafe and sometimes won't set the correct Baseband string, so my code isn't automatically detecting the Baseband.

I now added a case to check for 1035.21_20121130 in gsm.version.baseband (if I remember correctly v28e v30a and v30b all use the same version here):

P990 RIL: try to detect malread Baseband strings

Unfortunately I can't test this as my P990 doesn't have a SIM card anymore.

I'm not sure if gsm.version.baseband does indeed contain 1035.21_20121130.

I will compile a new testbuild and send you a download link in PM to validate.

If this doesn't fix it I'll add some debug code so we can use the radio log to pin it down further.
[LG Optimus 2x] echo_21:
Prior to flashing your test build that I already got I can tell that

at least my current BB LGP990AT-00-V30a-EUR-XXX-NOV-30-2012+0 sometimes also shows the same short string " 1035.21_20121130" as BB LGP990AT-00-V30b-ESA-XXX-DEC-18-2012+0 did from time to time.

the addition of the 2 lines

ro.telephony.test.ignore.nitz=true

telephony.test.ignore.nitz=true

to /system/build.prop prevents incorrect time zone. For the first time the clock shows correct local time even after I prepared Settings|About Phone|BB == 1035.21_20121130 (i.e. repeat shutdown, remove and re-insert battery, boot sequence until BB=="1035.21_20121130" appears)
[LG Optimus 2x] tonyp:
to 2.) Yep, by using the telephony.test.ignore.nitz property you tell the RIL to ignore the NITZ conversion, no matter what - so it will always work.

if (SystemProperties.getBoolean(TelephonyProperties.PROPERTY_IGNORE_NITZ, false)) {
ignoreNitz = true;
}

That's been around since the beginning of CM10.1 (when the new Basebands came and caused problems) and always worked, I guess a lot of people just forgot about it - that's why I brought it back up.

Btw the ro just stands for readonly, so there's no need to add the second line as well.

Apart from changing the build.prop you should be able to set it just by typing "setprop telephony.test.ignore.nitz true" in the terminal or adb shell.
[LG Optimus 2x] echo_21:
I've done some more in-depth experiments around the incorrect time zone issues in combination with incorrect BB recognition. As a result I have to revise one of my previous posts a little to prevent incorrect conclusions.

Test environment:

ROM: cm-11-20150130-UNOFFICIAL-p990.zip

BB: LGP990AT-00-V30a-EUR-XXX-NOV-30-2012+0

/system/build.prop:

telephony.test.ignore.nitz=false

ro.telephony.test.ignore.nitz=false

Preparation of "state #2": repeated boots after battery removal until baseband is not recognized correctly (i.e. Settings|About Phone|Baseband shows " 1035.21_20121130" instead of "LGP990AT-00-V30a-EUR-XXX-NOV-30-2012+0")

Observations:

Most often the clock shows UTC time instead of correct local time right after reboot

Sometimes the clock shows correct local time right after reboot, but after some hours later the clock shows time of incorrect UTC time zone. This is the new observation with respect to one of my previous posts and makes user ecxperience even more unsatisfying.

Conclusions:

Older CM11, CM10.2 and CM10.1 ROMs sometimes do not recognize BB correctly. Then they do not ignore the NITZ what may result in clock showing time of incorrect time zone. Workaround: Add the line "telephony.test.ignore.nitz=true" to /system/build.prop . ROMs that follow this setting will ignore NITZ and clock should always show correct time zone.

Use newer ROMs that handle the incorrect BB recognition properly. Note: soon there will be such a ROM publicly downloadable.
[LG Optimus 2x] salmanfarisy:
I have tried Kernel Adiutor app, looks good.

It has slider to set max cpu freq when screen off (default is 1000 mhz) and option to activate double tap to wake. Tried the last one and guess what, my touchscreen became irresponsive. Need battery pull. I know it is an experimental feature from firtecy, just wanna to test it. LOL

But it doesn't have zram option and dynamic fsync option. Cmiiw.

About zram vs swap and vm.swappiness, just read from here.

Conclusion: if your ram is enough for your activity, no need to activate zram nor swap. if you are running out of ram often, activate zram. if you are still running out of ram, activate both.

vm.swappiness at 60 (default) is ideal, and you can change it higher (even at 100) if you are using zram only without swap.

By the way, is 21 wake locks in 2h 25m normal? It was coming from system (sdcard) and media mostly. Drained my battery -5% when screen off.
[LG Optimus 2x] giaptai107:
Theme not working in setting.

Sorry, i have a problem. I apply some cm11 themes. First it work well but next time, the style in Setting become to stock theme (holo theme). I don't know why. Only setting, other is normal. Help me pls :(

P.s: sorry for my english
[LG Optimus 2x] Frecciablu(2):
Have you reboot?
[LG Optimus 2x] giaptai107:
Theme change to holo theme when i reboot :( only the style in setting. The statusbar, bootanimation, ringtone,...is normal.
[LG Optimus 2x] soulripper24:
Hi guys...

Were i can find last CM11 with M1? Thanks all....
[LG Optimus 2x] echo_21:
You will find 2 links to recent CM11 ROMs that base on kernel 2.6 M1 in this post: http://xdaforums.com/showthread.php?p=58076602#post58076602