yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] orion1208:
For those who use a recent version of CM11 M1 and encounter lags, please try the following settings:

Change the default minfree taskkiller values to (15, 20, 25, 35, 40, 70) in Performance Control. If the change is lost after reboot, you may use the "Auto Memory Manager" app from play store to do the change.

Apply the following settings in build.prop, which were found/tuned by echo_21 and tonyp:

dalvik.vm.heaptargetutilization=0.80

dalvik.vm.heapgrowthlimit=64m

Enable ksm.

Of course, always freeze all unused packages. For me, CM's theme engine (and the related/similar packages) consume quite a bit of memory and were frozen (since I don't use theme or live wallpapers).

Use an app like "Manage Android Autostart" to disable all unnecessary execution of apps (e.g., on startup, connectivity change, etc.).

In my case (I am using 20141113), (1) and (2) alone were enough to remove the huge lags, while the other steps gave a little more boost. Now the phone is almost as fast as tonyp's CM 10.1 (or even a bit faster when loading some demanding apps).

For those who encounter battery drain, you may change the governor to dyninteractive (for both CPU cores) and set the "Wake up" and "Keep awake" privileges of Google Play Services to be "denied" in Settings->Privacy Guard (note: this setting should not affect email/calendar sync).

And for those who haven't installed CM11 M1 but plan to, you might like to wait a little longer as tonyp may release a new version in the future. For me, the 20141113 version is also fine after applying the above settings.

Hope these help. If the friends here have other optimization techniques, please also share. :fingers-crossed:

Big thanks to all the great developers in this 2x community. :good:
[LG Optimus 2x] soulripper24:
"... and set the "Wake up" and "Keep awake" privileges of Google Play Services to be "denied" in Settings->Privacy Guard (note: this setting should not affect email/calendar sync)."

Where i can find this option?! I can´t see that option!!!
[LG Optimus 2x] orion1208:
Sorry, it should be Settings->Privacy->Privacy Guard.
[LG Optimus 2x] Bogazicili90:
Bcm4329 with Kernel M1 have some problems at my O2X. first of all when I want to apply themes system.ui crash and style doesn't change and the icon styles in notification bar doesn't change. 2. When installing some apps on Google Play it doesn't respond and screen goes black. 3. There are some random reboots. I did a full system wipe and then flashed CM11 by Temasek with TWRP 2.8.1.. I use latest M1 kernel. I realized that in the phone info it says it is v1 for temasek build. I think this build is the first kitkat build. Are there any more stable one?

---------- Post added at 03:17 PM ---------- Previous post was at 02:23 PM ----------

Guys I changed my mind and want to return to Django Munich 4..0.4 since I just want a fast and stable one. There are many bugs reported and I have many too. Can I go back to 4.0.4 without any problem. I have a nandroid backup with cwm but I am on twrp now. Do I have to change bootloader to old? Help please.
[LG Optimus 2x] Frecciablu(2):
Just flash a cwm recovery.

Then reboot recovery and restore backup ;)
[LG Optimus 2x] amarprat87:
Did a dirty flash of Tonys latest build over Guckys build from Nov'14. Everything working good so far. Saved me tons of time. Just in case someone else is wondering about it.
[LG Optimus 2x] tonyp:
The CM11 M13 sources (which I want to use as codebase for my final ROM) seems to still take quite some time, so I decided to make two more builds with the current M11 codebase in the meantime.

Yes that's right, there's a 3.1 and M1 kernel one ;)

It contains my new attampt to fix the RILs automatic time behaviour on the new ICS basebands.

[MENTION=5399879]echo_21[/MENTION] didn't get back to me, yet - so someone else needs to test if it works more reliable now (without changing anything in the build.prop)

Additionally pksm should be enabled now in the 3.1 kernel version by default.

I didn't test these builds, so it's possible that some things aren't working as expected. If so make sure to include a log with your bug report.

I'd like to know especially if everything that used to work in the last M1 version of this ROM (that wasn't compiled by me, just from my sources) still works.

Download here: https://s.basketbuild.com/devs/tonyp/CM11

And now have fun :fingers-crossed:
[LG Optimus 2x] wals46:
[MENTION=3605868]tonyp[/MENTION]

Your last CM11 M12 with M1 kernel is fast and smooth (after few tests). Maybe the first one so usable in these CM releases.

Smart the solution to add /sdcard and /external_sd to the usual sdcards cm mounting points (I already found these options in DJNoXD slim roms).

Just added CM11 LG G3 theme and [MENTION=3430536]trocopassu[/MENTION]'s Xperia keyboard.

Will continue tests next days (camera overall).

Good work. Thanks
[LG Optimus 2x] Frecciablu(2):
Gps is ok?

Can you say me if you do particular process to get it work?

In rom b4 august gps was alway fine to me. In my actual rom i have not get it to work properly... :$
[LG Optimus 2x] wals46:
Not yet tested, I work with sim Vodafone, bb Vodafone 30B Germany and Sygic. I'll let you know.
[LG Optimus 2x] tonyp:
Allright, I think [MENTION=5399879]echo_21[/MENTION] and I finally tracked down a fix for the automatic time issue. The current implementation is still flawed but it should be gone for good with the next builds (no ETA, might take some time but rest assured it will come) :good:
[LG Optimus 2x] echo_21:
Regarding the "performance" (minimum lag, task switch without app restart and quick first start of any app after boot) I don't see any significant differences between CM11 ROMs based on kernel 2.6 M1 or based on kernel 3.1

This is of cause only true if all settings are correct. For older CM11 and CM10.2 ROMs e.g. make sure that

dalvik.vm.heaptargetutilization=0.75 or 0.8 (and not 0.25!)

ZRAM enabled; swappiness 60%

KSM (2.6) or PKSM (3.1) enabled

OOM killer medium (start killing below 64MB,...) or a little more aggressive (start killing below 71MB,...)

Regarding stability I definitely prefer kernel 2.6 M1 as these were the issues I observed with kernel 3.1

sometimes hot reboots

sometimes WiFi drops; reboot needed to get WiFi working again

LG camera ported by feav with yellow icon did crash immediately

stock camera is working but is slow, has poor autofocus, and shows sometimes color bars

long GPS time to first fix

Only fstrim feature works fine with kernel 3.1 and is not supported by kernel 2.6 M1.

Thus, for me kernel 2.6 M1 based CM11 clearly provides a much better over all user experience.

echo_21
[LG Optimus 2x] wals46:
In my quick test gps did not fix.
[LG Optimus 2x] foober:
You can try using topntp from play store if gps not work.
[LG Optimus 2x] echo_21:
GPS is working fine on cm-11-20150216-m1-p990.zip

If you have GPS problems please report here with telling your ROM, kernel and BB. Also tell the file date and size of /data/gps/lto.dat and /data/gps/gldata.sto. I will ignore all posts that keep this info secret.

My baseband is LGP990AT-00-V30a-EUR-XXX-NOV-30-2012+0 . /data/gps/lto.dat with size 51kB is from today. /data/gldata.sto is from today and has a current size of only 7kB.

:good: :good: :good: :good:

After cleanest possible wipe (repartition of /system to 800MB and /data to 2000MB using AIO toolkit 6) and flashing of cm-11-20150216-m1-p990.zip (kernel 2.6 M1) GPS is working out of the box. No special process except letting the P990 take the very first GPS fix outside.

I did not install top NTP app from the play store nor any other tweak!

It took 2 minutes to get a fix. with 3-4 sattelites After additional 2 minutes 6 sattelites were found. After ten minutes 8-9 sats. Then I got inside up to 2 Meters from the windows and it kept the fix with 5-6 sattelites.

After switching GPS of and restarting GPS again the P990 gets a fix inside 2 meters from the window with 5 sats.

:good: :good: :good: :good:

Keep fingers crossed that this GPS performance will not get worse over time!

In principle it should get even better as out of the box there is no sattelite database /data/gps/gldata.sto . Once the database is fully build up it has a size of approx 10.3kB. GPS normally does not work at its best possible performance if the size is less than e.g. 9.5kB. Note: the database will be filled only while there is a GPS fix. The filling can take several days of GPS operation. Tip: put your P990 with a GPS fix powered with the charger on a window bench and let it fill the database over 3 nights.

Note: during GPS operation the database is kept in RAM. The RAM database will only be saved to /data/gps/gldata.sto if you stop GPS operation.
[LG Optimus 2x] Frecciablu(2):
Here you are :)

I used gps fix. Tryed maps n waze. Have wait an hour, but nothing.

What app you use?

Anyway ill change with this last m1 rom. Mine have already near 5month and starting get heavy xD
[LG Optimus 2x] echo_21:
Thanks for sending the info (see below)!

gldata.sto is too small. Should be at least 9kB. From the large size 81.28kB it seems that lto.dat has been downloaded from here. Normally it should have a size of approx. 50kB and should have been downloaded from here.

I use mapfactor navigator only. No gps fix, no top ntp, no other tweak. I don't even use Google location service. GPS fix is even fast with WiFi and mobile data off!
[LG Optimus 2x] Frecciablu(2):
Ok thanks you :D

Ill report about newest rom as i have time to flash it :)
[LG Optimus 2x] echo_21:
BTW: as your baseband has been mis-recognized as " 1035.21_20121130" you should reboot your P990 as often as it shows something else like e.g. "LGP990AT-00-...". Otherwise (poor-working) NITZ is used resulting in incorrect P990 time. Incorrect time makes it much harder for GPS engine to fix. I would not recommend to try to work-around this by top NTP app or any other tweaking app. KISS! Keep it simple and stupid!

[MENTION=3605868]tonyp[/MENTION] wrote that he may release a ROM (no ETA!) that ignores NITZ even if BB is recognized as " 1035.21_20121130".

Until then I recommend to make sure after re-boot that BB is not mis-recognized as " 1035.21_20121130". Sometimes it needs 3 or 4 reboots :mad: . You may test if telephony.test.ignore.nitz=true makes GPS fix even if BB is mis-recognized as " 1035.21_20121130". But the latter is definitely no KISS.
[LG Optimus 2x] Frecciablu(2):
This is an important info ;)

I rebooted since get this

So i have test gps with only data and i have get very approximate position.

Then i have test wifi+ data on maps and i have get perfect position.

After half hour, with opened maps and pax precision, i have test again with only data and i have no get position, tryed with wifi too and no position.

In all this ldto no raised data.

:S

Anyway that build prop change would at last give me more working times?
[LG Optimus 2x] wals46:
About gps fix

I'm operative with stock LG 30B rooted and initded by [MENTION=3986004]civato[/MENTION], my bb is Vodafone 30B germany 12/2012, my sim is Vodafone and I have gps fixed in 10" without lto.dat nor gps.config (I have same other files as [MENTION=5738974]Frecciablu(2)[/MENTION]). In APN vodafone.mobile.it I have "supl" in APN Type option in addition to "default", I understand that this can help.

Honest, I didn't expect that any rom could fix gps so fast like this rom does without any manual editing.

When I'll restore the last [MENTION=3605868]tonyp[/MENTION] m1 build I'll verify again gps fix.
[LG Optimus 2x] Frecciablu(2):
Ofc ics get fast fix.

But with first kk rom i was have a fix in seconds too, since august builds.

Now ill see what to do for a good gps. Im sure other guys with kk have it working, do no mind what process ill hv to do :)
[LG Optimus 2x] echo_21:
How long does it take for the really first GPS fix after you haven't used GPS on your P990 for one or two days (so called GPS cold start)?

IMHO, /system/etc/gps.config is known to be useless on P990.

IMHO, /system/etc/gps_brcm_conf.xml is the important configuration file P990.

To my best knowledge, without /data/gps/lto.dat there is no GPS quick cold start possible on P990 (time to first fix will take longer than 20 seconds).

IMHO, APN settings are completely irrelevant for GPS performance.

With only correct /data/gps/lto.dat and /data/gps/gldata.sto (and of course unchanged /system/etc/gps_brcm_conf.xml) I get a GPS cold start time to first fix within 15 seconds indoors 1 meter away from the window, with wifi and mobile data switched off.
[LG Optimus 2x] wals46:
Now I'm using gps maybe every two or three days and the fix is always 5-10 seconds outdoor (gps status or my tracks app).

Of course, /system/etc/gps_brcm_conf.xml is present.

Never tested gps witout mobile data, never use wifi outdoor.
[LG Optimus 2x] messi_007:
Hi Tony,

Thanks for creating build with M1 and 3.1,both builds are very smooth.

I did a full wipe and installed latest builds

Issue with M1 (cm-11-20150216-m1-p990)

1.Unable to use Gmail getting error "Unknown issue with google play service"

I double checked google play service installed on my phone are latest one.

2.Time zone fix broken

3.Google now broken when tried to give voice commands

4.Tried to play songs from phone to a bluetooth speakers and it doesnt work

Issue with 3.1 (cm-11-20150216-3.1-p990)

1. Wifi tethering is broken.

2. Time zone fix broken

3. Google now broken when tried to give voice commands

4.Unable to use Gmail getting error "Unknown issue with google play service"

5.Tried to play songs from phone to a bluetooth speakers and it doesnt work

Discovered new things

Double tap to wake is working great however when device is in deep sleep it doesnt awake on double tap!

Whoever gets time please look into above issues..no ETA expected! appreciate the way you guys put your hard work
[LG Optimus 2x] Frecciablu(2):
About google now voice imput, it no work cause of missing libraries to our dual, no way to adjust it.

About double tap to wake up, what you mean? O.O
[LG Optimus 2x] messi_007:
Just double tap on screen and phone will turn on (we don't have to use power button to awake phone).it is enabled by default in 3.1 and works amazing !!!
[LG Optimus 2x] echo_21:
workaround for "Unknown issue with google play service" on Gmail

I can confirm this issue on all 2015 CM11 builds I tried so far. Other ROMs on other devices seem to be affected as well. There is a workaround that works for me.

In English: Using Titanium Backup convert Google Play Services system app into user app and Gmail works again (at least until next reboot).
[LG Optimus 2x] Frecciablu(2):
Owh

But just 3.1 eh? Anw nice features :D no tought we could get it work on our dual, i guess it use much battery?

And i somehow missed the annunce of this feature @,@

Anw ill keep stay in 2.6

Nice workaround :)

But still temporally ummmh, i think ill keep use stock email also for interactive notification option "delete"
[LG Optimus 2x] lukino993:
just install this to solve play services problems with the latest roms
[LG Optimus 2x] giaptai107:
How about m1?

It's enabled default in 3.1 so can i enabled it in m1?? :confused:
[LG Optimus 2x] salmanfarisy:
I read firtecy's thread, it said that double tap to wake is experimental feature and only works when phone is not in a deep sleep mode. I think it is disabled by default, not sure though.
[LG Optimus 2x] messi_007:
Well,i got nice workaround for this gmail crashing issue. All i did was downloaded gmail apk from CM11 gapps package and it works great however If I update that app from play store issue still persits! but if we use it without updating its working nice so unitil it will be fixed by someone stick to gmail from gapps package!

http://wiki.cyanogenmod.org/w/Google_Apps

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

There is no issue with battery even if double tap to wake is on bydefault. In fact phone is snappier and looks like on steroids after making below changes suggested by great tonyp!

CPU: Min: 120Mhz, Max: 1400Mhz

(your device might be unstable with these settings! Test it properly!)

Govenor: interactive (snappier) / dyninteractive (better battery)

Shed Power Savings: Max

ZRAM: keep default at 110MB

SDCard readaheads: 512KB (scheduler: row)

Settings - Wifi - Menu - Advanced:

Make sure the following options are disabled: Network Notification, Scanning always available, Avoid poor connections

Keep Wi-Fi on during sleep: only when plugged in

(m1 Kernel needs Wi-Fi optimization to be off)

Memory Killer (OOM) Settings: I'm using the default ones, but as I'm not using the 2x a lot you might want to try around with Middle / Aggressive, too

Settings - Lock Screen - Clock widget - Weather panel - Disable weather

Do NOT use Facebook or Chrome, they're both extremely memory hungry.

Last but not least: Dynamic Fsync gives the device a nice performance boost, but you're risking data corruption (aka: you might have to do a full wipe).

So make sure the ROM runs stable and you have a backup ready before activating it.
[LG Optimus 2x] amarprat87:
1. Only Hot spots without passwords work. Incase wifi driver crashes, you will need to restart phone.

2. Use buildprop ignore Nitz command

3. Google Now will not work because it uses Neon instructions

4. Use Gmail 4.8 It works flawlessly
[LG Optimus 2x] messi_007:
I don't find that option under setting ,i will keep you posted if I find anything in Kernal manager.
[LG Optimus 2x] salmanfarisy:
I think double tap to wake is experimental feature in firtecy kernel added by Firtecy.
[LG Optimus 2x] dev>null:
cm11 20150218

There's a new rom dated 18 Feb from [MENTION=3605868]tonyp[/MENTION]

It may solve all these problems...just testing 3...2...1...now !

All hail the king :D

Download here: https://s.basketbuild.com/devs/tonyp/CM11
[LG Optimus 2x] Frecciablu(2):
Endly you tested gps on latest m1 build? :)

Would be awesome have it in m1 [emoji7] [emoji12]

Anyway its really cool we have also some improve on kernel side :)
[LG Optimus 2x] dev>null:
[MENTION=5399879]echo_21[/MENTION]

Yes ! I'm banging my head against gps since the early releases of CM11 by hjunii.

Can't find the reason why it used to be so fast and stable on stock...up to tonyp's cm10.2 and now...it's totally f***ed up :(

Wishing you good luck to find the technical reason mate ;)

PS: did you try manually pushing a new lto.dat file to check if it gets corrupted in the download process?
[LG Optimus 2x] echo_21:
Luckily my wife has a P990 too. It runs on CM10.2 Dec. 2013 and I use it often as reference counterpart system to mine. Unfortunately it seems to have the same lto.dat problem by whatever reasons.

Yes I did. No success.
[LG Optimus 2x] dev>null:
[MENTION=5399879]echo_21[/MENTION] Slimbean 4.3 has a good working gps !

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

I remember ONLY some releases of tonyp's 10.2 had it working good. Not all of them ! Yes it's like 2 years of gps testing on every rom...I guess I need a new phone :D
[LG Optimus 2x] messi_007:
Can you confirm it has code base CM11,M12 ?
[LG Optimus 2x] echo_21:
Thank you for remembrance! This is potentially good news. The "only" thing we have to do is to find and flash those GPS LTO working CM10.2 build to see if you are really right and GPS really works with "maximum performance". Then we have only to identify the difference between last GPS performant CM10.2 and first GPS non-performant CM10.2 build.

Do you remember a GPS performant CM10.2 build?
[LG Optimus 2x] dev>null:
Sorry I don't...it's been a while :(

Just checked one thing...the scripts getting the remote lto.dat file are the same, but since cm11 they're downloading to /sdcard/data/ and not /data/gps/ so it must be some problem in the way the lto.dat is parsed from the system I guess.

Older stock based roms (i.e: opti-thrust) have cold fix in 20 seconds ! damn it !!! why? :crying:
[LG Optimus 2x] echo_21:
Sorry I don't understand. It sounds like witchcraft to me if the same script (without ROM dependent if clauses) on CM11 does different things than on other ROMs ;)
[LG Optimus 2x] dev>null:
[MENTION=5399879]echo_21[/MENTION] haha I know :D however, since testing roms requires alot of time and patience, I was just going to write a flashable script to automate modifications to build.prop ... but I found this existed already and works really great: http://xdaforums.com/showthread.php?t=2664332

Just linking for all testers here to save some time ;)
[LG Optimus 2x] tonyp:
I can confirm that :)

The build from yesterday is using the same codebase (M11 stable) as the previous one but includes my new reworked RIL Baseband detection commit.

Hope it works now as intended!
[LG Optimus 2x] echo_21:
GPS performance survey

As you may know our P990 was able to work on GPS with maximum possible performance. Maximum performance means:

GPS Fix inside buildings (not too far away from windows; not in the cellar) in less than 20 seconds

GPS Fix with 8-9 sattelites inside buildings and 10-11 satelites outdoor

Without wifi and without SIM card (or with SIM but in air plane mode) GPS cold start fix after battery removal in less than 60 seconds

As you may also know many CM10.2 and CM11 ROMs do not show this maximum performance anymore. I would like to bring back this performance to all ROMs again.

All I first need is to know wich CM11 or CM10.2 ROM versions still work perfectly fine in the sense of GPS performance written above.

So please answer here if this is the case on your ROM. Do not forget to tell ROM name, date and kernel .

Please also reply here if you are unhappy with GPS..

Best regards echo_21
[LG Optimus 2x] kennyFF92:
In my experience no CM11 (3.1) version had GPS fix in less than 5 minutes ;)
[LG Optimus 2x] fabiodelaplazia:
Thanks for update :)

cm-11-20140713 to 18-02-2015 full wipe or wipe cache?
[LG Optimus 2x] vanko11595:
I also suffer poor GPS connection. The positioning is very slow and sometimes my phone never connects to GPS. (cm-11-20150218-3.1-p990)
[LG Optimus 2x] dev>null:
Please ROM name & date ? Any tweaks?
[LG Optimus 2x] wals46:
Maybe you should create a specific thread
[LG Optimus 2x] echo_21:
Sorry, I mixed up things. Please see corrected post http://xdaforums.com/showthread.php?p=58076602#post58076602
[LG Optimus 2x] Supreme_One:
It's not the case if it should be enabled or disabled. I want to know if it is battery friendly or not to have it enabled. It says WiFi optimization but also minimize battery usage?
[LG Optimus 2x] SWTR:
[MENTION=3605868]tonyp[/MENTION] which phone do you have now?:)
[LG Optimus 2x] lukino993:
See his signature..nexus 5

Inviato dal mio LG-P990 utilizzando Tapatalk
[LG Optimus 2x] Surplus:
It reduces wifi's battery drain, which means that it is battery friendly. It should be fairly obvious.
[LG Optimus 2x] vikicurup:
thanks tony for everything you did for this awesome p990:highfive:
[LG Optimus 2x] Lorddoener:
Yesterday I install the new CM11 with bmhcd

After that I install firtecy Kernel with 32MB RH

I went to the Settings and activated Wifi Thetering (only for watching) and it worked !!!!

I had my laptop connected !!!

But after an reboot the Bug is here...

Very mysterious....
[LG Optimus 2x] AndroAndroxda:
Thank you for the info, I was not aware. So, on this side of it is good;)

So I'm trying to flash with TWRP 2.6.0 and the result is the same :(

Then I tried to reinstall an older backup ICS 4.0.4 (from Optimix ROM) and apparently, I do not have these problems stall 3G/Wifi network when I surf and off after that ends with indefinite reboot.

The problem must come from CM11, but where?
[LG Optimus 2x] vikicurup:
i dont know what happen to my phone now,

after fullwipe and install this rom, it suddenly freeze more often.

when in lock screen, while playing game and etc, it force me to remove battery and restart.

and the battery goes crazy too

M1 kernel btw

edit--

now phone stable, after i do dirty flash, swap from m1 to 3.1 back again to m1 and some how its stable!

very light, no need greenify, with free ram up to 100mb!! with bbm WA, Line have been installed,

thats freakin awsome man!