yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] jackwu:
gps fixing and time offset

hello tonyp,

saying thank you doesn't express my appreciation enough for your efforts. so I come here to provide my solution for slow gps fixing and time offset. this works on CM10.2 and CM11 as I tested. The slow gps fixing problem is that Agps doesn't function properly. If it does with internet connection, gps should find your location within 10 sec. ok, I cut it short for the time offset problem. it needs a ntp server to get your time which is more likely to be accurate than the time from cell towers.

the file need to be replaced is /system/etc/gps.conf

NTP_SERVER=pool.ntp.org

XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra2.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra2.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra2.bin

# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# ** 4 - Debug, 5 - Verbose
DEBUG_LEVEL = 3

# Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=0

# supl version 1.0
SUPL_VER=0x10000

# Error Estimate
# _SET = 1
# _CLEAR = 0
ERR_ESTIMATE=0

# GPS Capabilities bit mask
# SCHEDULING = 1
# MSB = 2
# MSA = 4
# ULP = 0x20
# default = MSA | MSB | SCHEDULING | ULP
CAPABILITIES=0x07

# Accuracy threshold for intermediate positions
# less accurate positions are ignored, 0 for passing all positions
# ACCURACY_THRES=5000

################################
##### AGPS server settings #####
################################

# FOR SUPL SUPPORT, set the following
# SUPL_HOST=supl.host.com or IP
# SUPL_PORT=1234
SUPL_HOST=supl.google.com
SUPL_PORT=7276

# FOR C2K PDE SUPPORT, set the following
# C2K_HOST=c2k.pde.com or IP
# C2K_PORT=1234

################################
# Sensor Settings
################################

# Needs to be set explicitly based on sensor
# There is no default value.
#GYRO_BIAS_RANDOM_WALK=

SENSOR_ACCEL_BATCHES_PER_SEC=2
SENSOR_ACCEL_SAMPLES_PER_BATCH=5
SENSOR_GYRO_BATCHES_PER_SEC=2
SENSOR_GYRO_SAMPLES_PER_BATCH=5

# Sensor Control Mode (0=AUTO, 1=FORCE_ON)
SENSOR_CONTROL_MODE=0

# Enable or Disable Sensors for GPS use (0=Enable, 1=Disable)
SENSOR_USAGE=1

# Choose GSIFF sensor provider (1=DSPS, 2=Android NDK)
SENSOR_PROVIDER=1

################################
# Indoor Positioning Settings
################################
# 0: QUIPC disabled, 1: QUIPC enabled, 2: forced QUIPC only
QUIPC_ENABLED = 0

################################
# EXTRA SETTINGS
################################
# Enable or Disable Wiper (1=Enable, 0=Disable)
ENABLE_WIPER=0

####################################
#**LTE Positioning Profile Settings
####################################
# 0: Enable RRLP on LTE(Default) 1: Enable LPP_User_Plane on LTE
LPP_PROFILE = 0

the file found in your roms has only XTRA_SERVER_1~3 defined. I pulled this file from a nexus4 with 4.4.2 and added a ntp server. The ntp server in the 1st line can be change to any ntp server that close to you. You may also add more than one ntp servers.

reboot and try!

remember to check auto update time/date and timezone.

with this file replaced, I don't need to install time syn and gps tools apps. hope this can be helpful for you and poor o2x users!
[LG Optimus 2x] FPSAUS4EVER:
One of my problems is that when i connect my phone to my PC it doesnt come up with an option to Mount my SD Card it just charges the phone and i have turned off the fast charge setting.

Plus whenever i select some thing in the settings menu my phone goes into a boot loop :(

Now i getting alot of boot loops :(

Any Help would be Good, Thanks :)
[LG Optimus 2x] BS86:
Please do a little searching, especially in the TheROM - thread. Excessive testing showed that our phone does not even use the gps.conf - it needs a valid lto.dat in /data/gps - thats why there is a autodownload for that in the location settings, but it only works over wifi. The lto.dat is only valid for 7 days.
[LG Optimus 2x] jackwu:
Hello bro,

Have you tried?

If it doesn`t work, I apologize. Sorry for wasting your time!

If it does, can you switch back to original gps.conf? Just kidding!

in case it does work, don`t need to thank me but tonyp. I posted the file for him.
[LG Optimus 2x] BS86:
yes, i have also tested the lto.dat, and even with a completely new ROM after fullwipe you get locks in no time with an lto.dat present.

with a modified gps.conf, it still took minutes.
[LG Optimus 2x] tuncay_93:
Problems with USB in latest update. Connects with USB only one time for 2nd time should reboot phone.

Can someone confirm that ? or it is only me...
[LG Optimus 2x] grimmyrippy:
can i use pengus 3.1 kernel on this ROM?
[LG Optimus 2x] oneearleft:
nope - http://xdaforums.com/showpost.php?p=48968076&postcount=7683
[LG Optimus 2x] torstenconrad:
There is no lto.dat in this ROM I think - I looked in data/gps but couldn't find the file.. Shall I just copy the file from another ROM that has it, set permessions and done? I wonder if it needs any other support than just that lto.dat file - like does gps.conf need to be edited too then? :)

Hope to find some help on this, I am completely lost :confused:

Edit: Once I find out how to make this work properly, I will make a flashable zip for everyone to use :D
[LG Optimus 2x] murdas:
cant download the rom, site is down :s
[LG Optimus 2x] echo_21:
GPS really works fine here (9/9 sattelite wihtin < 10 seconds even indoors!) after I deleted gps.conf! But you have to have \data\gps\lto.dat. This file will normally be downloaded by tonyp's CM10.2 or CM11 at least after reboot but only if Wifi is available.

See this post.

If, by whatever reasons, the ROM did not download \data\gps\lto.dat automatically you may want to do it manually by the method described here.

[MENTION=4679307]torstenconrad[/MENTION], collecting the above links I found that you still seem to have problems with GPS. I found many many many GPS posts by you. Your post I quoted above is just another trial of yours to get GPS running. I am sorry to read that! But finally please believe:

1. I really don't have any gps.conf and my GPS works fast and accurate. I can't understand why you still ask for proper changes in gps.conf!?

2. You only need to have \data\gps\lto.dat that is not older than 7 days to get GPS working like a charm

3. It was stupid to deploy any \data\gps\lto.dat with a ROM. lto.dat carries satellite trajectory data. It has to be refreshed at least once in 7 days.
[LG Optimus 2x] torstenconrad:
Thanks for the links and help!

Honestly, I have been trying few times to get GPS signal when I moved to this ROM, even 10+mins nothing appears and I thought it had something to do with lto.dat not being in this ROM. Thanks to your links, I tracked down this thread: http://xdaforums.com/showthread.php?t=2523667

I had completely forgotten about that which does all the fixing thats needed :D

Once again, thanks for the helpful links! My memory isn't that great when there always happens so many different things on such forums as this, I better start bookmarking these threads :good:
[LG Optimus 2x] Floating Point:
I was able to get GPS signal many times thru many tests I did with CM10.2 installations.

I used the FasterGPS app. from market to set my continent and country, after a few minutes in open air I always get lots of GPS locks.

Btw, I'm using Navitel as GPS navigator, but it's the same in Google Maps.
[LG Optimus 2x] jaris93:
Wifi Connection drops

Hi,

I have been using this rom for sometime and its been great :) ! I have 1 issue which bothers me though. My WiFi connection drops when left unused for a small amount of time. I then have to switch off and switch on the WiFi for it to start working again. I did search on the thread which didn't seem to give me much help. Any advice?
[LG Optimus 2x] grimmyrippy:
i can't find which application is triggering the bluetooth, i saw it "ON" in betterbatterystat application, in the graphs it show that everytime i turn my phone on the bluetooth is also turning on in stealth mode?

is this normal?
[LG Optimus 2x] ilooze:
your phone is trying to hack the N.S.A. :laugh: sorry couldn't resist
[LG Optimus 2x] soulripper24:
Hi there.

I`m back to this amazing rom but have a dought. Yesterday i was back to clean 10.1 rom from Tonyp and mms worked even if the data was off, that is normal because my carrier provide that service, but after install this 10.2 mms doesn`t work anymore even with data on! Anyone have a sugestion? I`ve allready copy MMS.apk from 10.1 and replaced in 10.2 but not succeded, also replaced telephoneprovider.apk but phone got boot loop, so i install rom without "my" changes. Can anyone give a idea of how i can send or receive mms?

Another thing, is there a way to give a transparent bar to this rom?

Thank you all.
[LG Optimus 2x] oneearleft:
My mms-problems were always solved by checking/changing the APN in System settings>Wireless & networks>Mobile networks>Access point names. In there, you should find a profile of APN type mms (can be named anything). Please check with your provider if it is correct.
[LG Optimus 2x] DeeKay773:
And for transparent bar, you may try tonyp's theROM (also running on 10.2) or try some Xposed modules :)
[LG Optimus 2x] Hugo-PT:
Also happened to me.

I just needed to put the operator APNs. I can send and receive mms, but only with data on. Still do not know how to send/receive with data off.
[LG Optimus 2x] soulripper24:
I`ve already try all, but unfortunatly it seems that mms just work with data on ( vodafone told me that ). Weird is that with 10.1 data is not needed! But that`s ok, there´s nothing we can do :(
[LG Optimus 2x] Hugo-PT:
with other CM10.2 rom you solve this. ;)
[LG Optimus 2x] montresor60:
Could you perhaps elaborate? These "guessing game" posts are not very helpful.
[LG Optimus 2x] I.m.Tuga:
Yes montresor60 is right Hugo.

Could you explain which 10.2 doesn't have this problem.

"I'm on the same boat" with MMS on 10.2

Enviado do meu LG-P990 através de Tapatalk
[LG Optimus 2x] hd2000:
cm-10.2-20131213-UNOFFICIAL-p990.zip when I try to install in recovery reports bad zip file. Download twice still fails.
[LG Optimus 2x] Hugo-PT:
If the file is not corrupted, you can try with another recovery.
[LG Optimus 2x] hd2000:
Ok I'll give it a shot. Funny thing is I can flash CM11 fine. I'm using CWM 6.x. Thanks
[LG Optimus 2x] rzlatic:
anyone have the mirror of latest build?

found.
[LG Optimus 2x] lildjey:
Can u send me link plz ?
[LG Optimus 2x] rzlatic:
we should always use tonyp's basketbuild as it counts downloads - but until it's back online, use this.

keep in mind its my dropbox folder, so in case of excessive traffic they temporarily disable that folder, but it comes back soon ;)
[LG Optimus 2x] lildjey:
OK, thanks dude !
[LG Optimus 2x] Pete Rask:
And in case of emergency here's another link

cm-10.2-20131213-UNOFFICIAL-p990
[LG Optimus 2x] Erkaft95:
Is it working on P999?
[LG Optimus 2x] DrummerMuppet:
Nope. This is only for the P990. It won't work on your device.
[LG Optimus 2x] BS86:
this is the forum for your device:

http://xdaforums.com/lg-g2x
[LG Optimus 2x] FPSAUS4EVER:
Hi,

Well my keyboard disappears everytime i touch a key and takes about 30 seconds to come back,

So how can i fix it?

Thanks
[LG Optimus 2x] Hejkompas:
Install a third party keyboard instead of stock
[LG Optimus 2x] tonyp:
Seems like you didn't read the instructions in the OP and flashed an unsupported gapps package.

Format /system and rom reflash fixes it.

Or just use another keyboard. SwiftKey is now free anyways.

Enviado desde mi Nexus 5 mediante Tapatalk
[LG Optimus 2x] FPSAUS4EVER:
Ok thanks, I will try that :)
[LG Optimus 2x] ensboarder:
[MENTION=3605868]tonyp[/MENTION] are you developing for another device?
[LG Optimus 2x] tonyp:
No, I (unfortunately?) do not. My time is a lot more limited nowadays compared to 1-2 years ago. All my spare free time for development still goes into our beloved 2x.

Additionally, the reason I got into android development was the terrible support of LG for the LG Optimus 2x - if they would have provided stable software with rapid updates, I would have never gotten into it.

I wanted to use a ROM I was personally happy with, the crappy and outdated LG Stock ROMs couldn't fulfill that - so I had to start working on my own.

Nowadays I'm using the Nexus 5 with Xposed and GravityBox (+ a couple other modules like App Settings and ActivityForceNewTask) and am almost completely happy.

I do miss working on the code, as I always enjoyed that (or I would have never spent that much time doing it), but at least from the software side I'm quite happy.
[LG Optimus 2x] FPSAUS4EVER:
Well when i try to play music through Astro music player or apollo music player, a song plays for a couple of seconds then it exits and i cant listen to music untill i restart the app.
[LG Optimus 2x] Hugo-PT:
Have you tried: Clear cache of the apps? Another app in the market? Wipe cache and dalvik? ;)
[LG Optimus 2x] FPSAUS4EVER:
Yeah i have tried clearing the Cache but its still happens and i have tried another players from the market and it still does it
[LG Optimus 2x] Hugo-PT:
And also the cache partition and dalvik?
[LG Optimus 2x] FPSAUS4EVER:
No, i will do that now and see what it does
[LG Optimus 2x] Hugo-PT:
Delete
[LG Optimus 2x] Wooby:
Can someone upload the newest converted version for oldbl?
[LG Optimus 2x] atg2x:
Hi [MENTION=3605868]tonyp[/MENTION]! Thank you for the awesome ROM a lot, but there is a small issue. After 100 hours of uptime the phone becomes sluggish and the keyboard force closes. After a reboot everything is fluid and rock solid. Do you know what this promblem is? Is this problem related to fstrim support on kernel side?

Off-topic: I found a diagram in which the phone has 512MB LPDDR2 but it also has 512MB DDR SDRAM. I'm not talking about NAND here. From what I understand this SDRAM is used for MCP (Multimedia Communications Port) and I was thinking if it is used by camera for video recording or hdmi output. In our case the hdmi is already broken. What if we could use this MCP ram for swaping instead of sd card. It must be a lot faster than SD. Unfortunately I have not found any other documentation. I know this is a bit far fetched... Thanks in advance!
[LG Optimus 2x] I.m.Tuga:
Hello everyone! The ROM download page is no longer available. Can some one please add a link with the most recent CM 10.2 from master Tonyp?

Thank you very much!!
[LG Optimus 2x] Hugo-PT:
You have all the work of the Master tonyp here, provided by our friend trocopassu :good:
[LG Optimus 2x] KiD3991:
Link's dead. Any other mirrors?
[LG Optimus 2x] manix01:
Is working for me.
[LG Optimus 2x] trocopassu:
Links are good...almost for me too!!...

But if you can not, say what the ROM that you want and I will upload to another server:good::good:
[LG Optimus 2x] KiD3991:
Newbl thanks, probably my local isp bs-ing around. Last they even blocked devhost. Thanks a bunch mate.
[LG Optimus 2x] trocopassu:
Yeah, right! But ... which one ??! ... Maybe cm-10.2-TheROM-build27-bcmdhd.zip ??
[LG Optimus 2x] KiD3991:
Whichever the latest and the least buggy, I dont use camera, GPS and bluetooth.
[LG Optimus 2x] trocopassu:
OK...here you are, Buddy!

TheROM b26

TheROM b27 bcmbhd
[LG Optimus 2x] I.m.Tuga:
Hello Tony.

As it was already mentioned here i want to thank you for your work......and to blame you for not giving me reasons to change phone...:D

One little thing i just noticed is, on lockscreen settings, when i try to change the shortcuts the "system icons" they don't get saved after unlocking the phone.

Now that i'm trying to edit them again, the "system icons" (black and white ones) are gone.
[LG Optimus 2x] head_banger:
To get my GPS to work better, used fasterfix and set location then rebooted phone, 8 satalites without drop :o

Sent from my LG-P990
[LG Optimus 2x] MolecularConnector:
First of all, thanks for your work.

The GPS its working with V30B. Fix in 30 seconds in 9 satelites.

Changed NTP server to the Portuguese one.
[LG Optimus 2x] sudden36:
After some time of trying and rebooting gps does work for me too
[LG Optimus 2x] mbaier:
can someone explain how to make external sd as primary .Thank you
[LG Optimus 2x] alexcyb:
works without gps fix
[LG Optimus 2x] imayoda81:
For some reason after full wipe fresh install i had trouble with data connection... found out that there were no google services installed and after some time a message appeared that was asking to agree in downloading them... since then it works really flawlessly :D
[LG Optimus 2x] tonyp:
new build

Okay guys, I compiled another build with some cherrypicks which will hopefully increase the using experience:

cm-10.2-20130821-UNOFFICIAL-p990.zip:

dalvik/vm: Dalvik startup with a low memory footprint

(this gives us more precious free ram available for apps)

Add the possiblity of using external sdcard as application storage for user 0

(untested by me. add persist.sys.env.use_sec_storage=true to the build.prop to activate it)

added sys.mem.max_hidden_apps=4 to the build.prop

(limits hidden apps to 4)

back to CM10.1 stock GPS files

(I was using the patch by crypted before which worked great in CM10.1 but didn't seem to change anything for CM10.2)

Download etc. in the newly created second post.

The real reason I compiled this ROM is another though:

I compiled it from my newly set-up device tree at the p990-dev Github account:

https://github.com/p990-dev/android_device_lge_p990

Pull requests are very welcome, push access can be granted on request.

Everything seems to work like a charm, if you notice any major difference to the previous build just do a post here.

Additionally I set up a manifest and added build instructions how to do your own builds to the first post.

This is the easiest I can make it for other (potential) developers.

.
[LG Optimus 2x] BS86:
can't believe i managed to be in the first 3 downloads ;)

(taken after refresh after download started ;) )

Great work!
[LG Optimus 2x] I.m.Tuga:
What are the recommendations to install the update?

Full wipe, install over previous or wipe cache/dalvik?

Thank you
[LG Optimus 2x] robbie2k:
Tried with this? http://xdaforums.com/showpost.php?p=35809359&postcount=315
[LG Optimus 2x] tonyp:
No, this won't work.

Android 4.3 changed the mounting format - vold isn't used anymore (but a unified fstab v2).

You'd have to change the fstab.star.

I merged a patch into the newest build which _should_ make storage swapping easier.

Add the following to the build.prop: persist.sys.env.use_sec_storage=true

I didn't test it as I do not need it, but if it works it should be a cleaner option than the vold/fstab hacks.

More information here: http://review.cyanogenmod.org/#/c/47918/

I added the option for your ease of use, but I never did and never will support storage swapping further than that.

Same thing applies to usb mass storage mounting by the way.

I've added instructions how to upgrade to a newer build if you are already at CM10.2 to the OP.

You do not have to wipe anything - just flash it and reboot :)

In my short tests the camera in CM10.2 seems to be more stable than in previous android versions.

But it has been flawky since CM10. CM10.2 won't magically fix that.

I am not able to improve the camera from this point on - so there is no use in bugreports.

As always you can try ported stock cameras and see if you like their performance better.

Should be fixed in the newest build, can you confirm?
[LG Optimus 2x] sudden36:
I testeted feav's camera mod for jb and it worked fine :)
[LG Optimus 2x] yoavtabakman:
Confirm force close fixed on lock screen sortcats settings. But the new selection cannot be saved. It's always go back to the default.

I don't think a log will be good here, but if you want I can provide.
[LG Optimus 2x] BS86:
i flashed the LG-ICS v3.zip from feav's thread, and it works like a charm ;)

had the LG-JB one once, and did not like it, so did not try it

the build itself works like a charm, but am still testing.

GPS however makes problems ... will investigate tomorrow.
[LG Optimus 2x] thorstenhirsch:
GPS in build 20130821 works much better than in 20130820. Today when I went for a bicycle ride it took about ~20mins with 20130820 to get a GPS lock. Now after installing 20130821 the time until lock was 3min.

However now that I've played around with some GPS apps I recommend to install FasterGPS and set the location you are. FasterGPS is more or less the same as FasterFix, but it's opensource. And it really works well with the GPS of 20130821. The lock is there after between 5 and 25 seconds now. The other app I mentioned in my last posting (GPS Status & Fix) doesn't improve GPS lock time at all.

Before all my tests I used the "reset GPS" button in GPS Status & Fix. I think it clears some kind of GPS cache where connection data of the last lock is saved in order to get a faster lock next time. So since I cleared that cache in all my tests I tried to provide equal conditions for all tests. And of course I put the P990 in the same place for all tests: in-house near the window (except for the bicycle ride of course).

edit: goodmamba already recommended similar things in order to get quicker GPS lock here.

edit2: quotation lead to confusion - removed
[LG Optimus 2x] I.m.Tuga:
Thank you Tonyp for the reply.

Only asked about the installation because of dalvik changes you've made in the newest built.:thumbup:

About the shortcuts in Lockscreen, in my case, they are fixed.

Thank you very much
[LG Optimus 2x] imayoda81:
persist.sys.env.use_sec_storage=true

doesn't work for me :(
[LG Optimus 2x] k101d:
:good: Version of 20130821 GPS back to work can catch and fix about 7-8 satellites (but IMO this gps module on CM10.2 has slower response than CM10.1 tonyp's test 5 btw it can help Sygic to navigate me ;) )
[LG Optimus 2x] BS86:
little question because i just realized it: Do you guys have the traffic arrows in the WiFi and Mobile Network - Icon? Or is it just a problem on my device?
[LG Optimus 2x] k101d:
I also not see any arrows sign like your phone :eek: but data traffic work normal signal strength has change number bar.

New issue may be once I use small talk to listen music if the phone receive notify the volume has increase on decrease ?
[LG Optimus 2x] BS86:
ok, thx :)

already thought that they perhaps removed those arrows in 4.3, but in my colleagues N4 they still are there ;)

switched theme to wouchwiz 5.0 by thomassafca, still no arrows, at least no working ones ;)

but data is working normally - so no big issue
[LG Optimus 2x] orbital_71:
Sdcard switch with the code provided for build.prop not working.
[LG Optimus 2x] Fíghter02:
Finally got a GPS fix here in Denmark. :) I used FasterGPS as mentioned by thorstenhirsch to configure my GPS. It took maybe 10 mins to get a fix the first time and I almost thought it was broken because I could only see 2 satellites. Suddenly it found 4 and got a fix :D Since running the app around 10 times I consistently get a fix after 15 - 30 seconds.
[LG Optimus 2x] BS86:
This is madness! :)

Still the first load cycle after full charge
[LG Optimus 2x] natalya:
Tony once uploaded a hw key bindfix, i think for 10.1 but maybe we can flash that on 10.2? It's a fix, but a really nice one to have :)

Edit: and can your Gapps remover be used here you think?
[LG Optimus 2x] dced:
Settings > buttons work perfectly fine for me, if those are the hw key binding that you are talking about ;)