Can't get a GPS fix (Resurrection ROM + aGPS) - Galaxy S II Q&A, Help & Troubleshooting

Hey there.
I'm having some GPS problems with my Galaxy SII running Resurrection Remix rom.
It can hardly find any satellites. Most of the time it takes around 1 full minute to get 0/1 and after 2-5 minutes I have 0/2. After that, nothing else happens. I have tried installing the aGPS fix as found in here, but this doesn't help either.
What else can I do?
Thanks already!

Get GPS Status if you don't already have it. Then make sure you're outside in a clear area that has good line of sight in all directions. Also make sure you have data connectivity.
Turn data on, fire up GPS Status & go into tools/manage a-GPS state & press reset to clear cached GPS data. Then press download to get fresh data/ephemerides. Then stand there for as long as it takes until you can get a good fix/the phone 'learns' where the satellites are (can take up to 10 minutes in extreme cases).
Once you've done this, you should get a fix fairly quickly for at least a few days (and probably longer), tho once you get over a week or so, it will start to take progressively longer to get a fix as the ephemeris data ages. Simply repeat whenever the time it takes to get a fix becomes intolerable.
I've done this whenever getting a fix has taken ages, and after getting a fix even indoors has always been fast.
Edit - If this doesn't work, it's probably something funky on the rom/kernel side. I'd do a completely clean install of the rom/kernel, and if it was still not playing dice then a completely clean install of stock to possibly rule in/out a hardware issue.

I lurked and this reminded me of the fix.
To make it even clearer,
what this is doing is resetting
/etc/gpsd.conf
but not touching:
/etc/sirfgps.conf
Both are included with the ROM as far as I know.
For testing it can be useful to have Droid VNCServer. Android Screen Monitor with adb enabled over WiFi is a security risk because afaik
some links (testing url shortening)
http://bit.cur.lv/droidvncserver
http://bit.cur.lv/adbScreenMonitor
http://bit.cur.lv/adbScreenMonitoring
http://bit.cur.lv/sirfTweakExample
There's a megathread somewhere with all the different things involved with GPS. I think I may have even written a summary somewhere myself but can't seem to find it.
update, ok it's here:
http://forum.xda-developers.com/showthread.php?p=37501364#post37501364

Related

[REQ] mod gps

hey im wondering if this would work for us or is there some porting needed and is this somthing that would help gps and if im in the wrong section please move.
http://forum.xda-developers.com/showthread.php?t=881941
Very interesting post indeed.
From his findings, I'm also wondering if we have Auto Rotate Screen (the accelerometers) turned off, if that hinders the ability for our GPS to accurately detect location and movement. He suggested that it goes into low-power mode when it isn't detecting movement via the sensors, but didn't say what happens if the sensors are turned off.
...I'm going to have to test this out tomorrow.
Are people still having issues with GPS on the fascinate? Since we more or less had the issue fixed I've had as good or better GPS performance than on my other smartphones.
Da_G is a good buddy of mine, trust me, if anyone knows wtf they are talking about, it would be him....
lane32x said:
Very interesting post indeed.
From his findings, I'm also wondering if we have Auto Rotate Screen (the accelerometers) turned off, if that hinders the ability for our GPS to accurately detect location and movement. He suggested that it goes into low-power mode when it isn't detecting movement via the sensors, but didn't say what happens if the sensors are turned off.
...I'm going to have to test this out tomorrow.
Click to expand...
Click to collapse
im just wondering if this is safe to flash to our phones or does it need to be ported to fascinate
yep still having issues with gps...sometimes doesn't lock. sometimes takes forever. sometimes...omgsh...it actually locks!
not reliable.
I applied the d101 gps fix to eb01 and my gps locks in around 20sec. Auto rotate or not my gosh never locked on eb01 without the d101 fix.
Sent from my SCH-I500 using Tapatalk
Just tested my gps a little. Mine is locking within 5 meters in a brick building with auto rotation on or off. Not in a car currently but I took a little jog and it seemed to follow my direction and location very accurately in both.
So I guess my GPS is pretty good.
Regardless... I wanted to say thanks for reposting that because it was a really interesting read!
It should just work, even though EB01 stock should just work too.
Just don't flash the AT&T-specific version...
The Fascinate doesn't seem to have the same layout concerning the gps jupiter files (I don't see them anywhere, at first glance). Either I am missing something or it's a completely different setup.
There are some settings in his /data/gps/secgps.conf (just a text configuration file) that are different than the stock fascinate file. These might be worth looking into to see if they help improve the signal without using his modified binary. You don't need to flash the file using CWM, just use adb to push a modified file (or root explorer and edit it on the phone itself).
Since this is a CDMA phone, I don't know how many people this would affect, but here is a general Android GPS tip for those who don't live in North America:
In /system/etc/gps.conf, change the address to the server that corresponds to your country:
Code:
NTP_SERVER=[COLOR="Red"]north-america[/COLOR].pool.ntp.org
I usually can't get an accurate lock or any lock at all unless I reboot with gps already enabled. Then I will get a good lock instantly... If I reboot the phone with gps off then I will get no signal/lock again.
Sent from my SCH-I500 using XDA App
Let me share my experience with GPS on EB01, it's GREAT, you just have to turn on GPS "correctly."
If I turn on GPS using the Notification switch, GPS takes FOREVER to lock, if it even does so. Gone several minutes with no lock.
Now here's the thing, if you turn on GPS in the Settings > Location settings, I always get super fast, under 5 second GPS locks. ALWAYS. I've tried this out repeatedly over several days, and it really makes a difference. Once you turn on GPS using Settings, you can leave your phone on, reboot, whatever, and GPS will still be responsive. If you turn it off, wait a while and use the Notification switch to turn on GPS and you're trying to get a cold lock, it'll be slow again, just be sure to use the Setting option and it'll be back to being responsive.
That's my experience.
CrushD said:
Let me share my experience with GPS on EB01, it's GREAT, you just have to turn on GPS "correctly."
If I turn on GPS using the Notification switch, GPS takes FOREVER to lock, if it even does so. Gone several minutes with no lock.
Now here's the thing, if you turn on GPS in the Settings > Location settings, I always get super fast, under 5 second GPS locks. ALWAYS. I've tried this out repeatedly over several days, and it really makes a difference. Once you turn on GPS using Settings, you can leave your phone on, reboot, whatever, and GPS will still be responsive. If you turn it off, wait a while and use the Notification switch to turn on GPS and you're trying to get a cold lock, it'll be slow again, just be sure to use the Setting option and it'll be back to being responsive.
That's my experience.
Click to expand...
Click to collapse
Nice observation...just worked for me too!!
By golly... He's right, although it took me about twenty seconds to lock.
Sent from my SCH-I500 using XDA App
Hmm... I remember this from a different android device I have. The stock power control widget for wifi would take 45 seconds longer for the network to connect then if I would go to the wifi menu and turn it on myself. I found out that there were two methods for turning on the wifi programmatically, and that some widgets used one method and the other widgets used the other.
If I remember right, the fast method changed the setting by calling the wifi menu and emulating the menu press, while the slow method attempted to power on the wifi directly.
$10 says that if you started decompiling, you'd find a similar situation here.

[Q] Disabled network time sync but still resets!

Hey folks. Just need some opinions or hopefully some knowledge that will lead to a solution.
I do NOT want my phone to sync time on the network. I have always set my phone 6 minutes ahead of the clock where I work. (For a myriad of reasons.)
I have disabled network time and such. I did this with my phone when I first got it and it worked just fine.
Recently wiped the phone, cache, etc to get 2.2 on there. Was the deodex version that adrynalyne put out at the following link. (Although I think that the post has been edited since then...)
http://forum.xda-developers.com/showthread.php?t=948679
I used Odin to flash EB01, got the RED Clockwork update, cleared cache (several times), updated the ROM image from the SD card, etc. Everything works pretty well now I suppose. Seems faster in many ways but more importantly, performs more consistently.
No other mods like Voodoo, etc...
But I CAN NOT get the clock to stay at the time that I set it to. It seems to drop 11 minutes back and that causes problems for me. (Was late to work one morning because of it.)
I can't pinpoint WHY it's doing this. I can't figure exactly what time of day it's happening. But I check it every night and it is 100% guaranteed that the time changes back. It's not even in sync with the network time. I have turned on the network time and it jumps forward a few minutes. I then turn it off again and set the time 6 minutes forward where I need it.
Getting a little aggro about this. I have a few basic alarm programs installed, etc. But none of these screwed with the time on 2.1. Not much of my software load has changed. I have recently started using "SystemPanel" for managing my phone. (Which does an excellent job from what I can tell...)
Any idea why my time keeps changing back, folks? I really haven't been successful in finding any answers.

[Q] GPS comes on and stays on for a while right after you boot up?

Anyone else having this happen? If I reboot, as soon as my phone comes up the GPS is going and continues to go for like 7-10 minutes before finally going away.
No clue what's causing it but it's rather annoying.
I would guess it is normal for Google and other services on your phone to collect data on your location for things like weather and traffic and stuff like that right after a boot but 7-10 minutes is a rather long time. Is the gps signal locked during that time or flashing like it is trying to obtain a signal?
If you run your task manager you should be able to see what apps are running and that may give an indication of which is trying to get your location for so long.
Update: Just started happening again and this time the phone wasn't rebooted. I'm almost convinced it's an app. And no it doesn't fully lock on, but it tries to the entire time. I'll play around with it some more, but I have a feeling it's one of the many apps I installed today.
It's Beautiful Widgets causing the problem. Also sometimes the time isn't updated properly. Not sure if BW is having an issue with this phone, or ICS, or maybe just MY specific configuration.
Any other good Clock/weather widgets out there?

GPS not locking in. Tried most known fixes...

I'm on NottachTrix. No OS, firmware changes were made to cause this issue. No new apps. It just started on its own.
I've had similar issues twice before. First time it was fixed with a Google Maps update, second time it was fixed by turning off "use wireless networks" under location.
Neither fix worked this time (Maps were out of date).
Symptoms are like this:
With "use wireless networks" OFF GPS not able to lock in at all. Been testing it for hours. With "use wireless networks" it gets within about a 1000 feet but never locks in.
In the past even if Maps was not able to lock in, Navigation did. Now its seems to be having issues too.
I tried GPS status, cleared A-GPS data. I've tried changing the radio. I was on N_01.77.30P originally. GPS status was able to find 6 satellites but not lock into any, I Flashed N_01.77.37P, no luck, was not able to find a sat in 5 min test. Flashed N_01.77.36P, able to find 3 sats not lock in. Tried to re-flash N_01.77.30P but it gives me an Install aborted message (can't downgrade that far)?
Any suggestions?
I dont see how it can be related to the ROM as it worked perfectly fine before so i did not try complete wipes or factory resets, i dont this they would help.
I have also tried using the libnmea.so from:
http://forum.xda-developers.com/showpost.php?p=29080916&postcount=5
and tried adding ntp servers from:
http://forum.xda-developers.com/showthread.php?t=1464689
demens13 said:
I'm on NottachTrix. No OS, firmware changes were made to cause this issue. No new apps. It just started on its own.
I've had similar issues twice before. First time it was fixed with a Google Maps update, second time it was fixed by turning off "use wireless networks" under location.
Neither fix worked this time (Maps were out of date).
Symptoms are like this:
With "use wireless networks" OFF GPS not able to lock in at all. Been testing it for hours. With "use wireless networks" it gets within about a 1000 feet but never locks in.
In the past even if Maps was not able to lock in, Navigation did. Now its seems to be having issues too.
I tried GPS status, cleared A-GPS data. I've tried changing the radio. I was on N_01.77.30P originally. GPS status was able to find 6 satellites but not lock into any, I Flashed N_01.77.37P, no luck, was not able to find a sat in 5 min test. Flashed N_01.77.36P, able to find 3 sats not lock in. Tried to re-flash N_01.77.30P but it gives me an Install aborted message (can't downgrade that far)?
Any suggestions?
I dont see how it can be related to the ROM as it worked perfectly fine before so i did not try complete wipes or factory resets, i dont this they would help.
I have also tried using the libnmea.so from:
http://forum.xda-developers.com/showpost.php?p=29080916&postcount=5
and tried adding ntp servers from:
http://forum.xda-developers.com/showthread.php?t=1464689
Click to expand...
Click to collapse
I would try 3 things... first wipe dalvik cache and then check gps, reinstall rom without wipe and see if that helps. If it doesn't then I would do a full system wipe and install a fresh version of your rom and see where that takes you. Software can become corrupted even when we change nothing.
I recently ran into the same problem with GPS not locking on my Atrix. Here's how I solved it after trying the things you mentioned which didn't work:
Turned out the antenna contacts were loose. After opening the phone, I disconnected the antenna connector from the main board. Then pulled out the antenna cable from the silver clip. There is a third contact point on the other end of the antenna (opposite end from the connector) that is bent up to touch the antenna. This contact had bent back down over time. I bent this back up (very gently) to make sure it made solid contact. I also 'tighted' the silver clip contact by pinching it slightly before re-inserting the antenna cable. Then I re-connected the main connector. I also cleaned dust buildup. Closed phone and powered up. GPS now consistently locks within 10s with 3-6m accuracy! (Note: Radio is 38P running Epinter's 10.1 Rom 072013 build)
I solved this problem by replacing the gps.conf on this ( Only change location on yours)

[Q] [pseudo-solved] Device occasionally loses Internet connection for WiFi & cellular

[Q] [pseudo-solved] Device occasionally loses Internet connection for WiFi & cellular
The Problem:
I recently upgraded to the Motorola Moto X Pure Edition and have got almost everything running smoothly except for one thing - every so often, (between 2 and 8 days) the device will completely lose its Internet connection for no apparent reason, displaying the little exclamation point next to either the WiFi or cellular signal strength indicators. It usually happens after transitioning between WiFi and cellular (leaving home, arriving home, etc.).
Once the device enters this state, no amount of toggling WiFi, data, or flight mode will allow the problem to be resolved. The device will simply refuse to cooperate with any type of Internet connection at all, even though it still has an IP address, as reported by the ifconfig command in the terminal. No addresses, local or otherwise, can be pinged.
Rebooting the device always brings it back. Clearing the cache and dalvik cache seems to make it last a bit longer, but this has yet to be confirmed.
Troubleshooting efforts and device configuration notes:
A web search turned up nothing at all, although two other people in the original thread on the Moto X Pure Edition Q&A forums revealed that I'm not the only one with the problem. My device is running the stock, Android M Rom, (rooted) but others have reported the same issue with a non-Motorola Android N ROM as well as on the stock un-rooted Rom.
This leads me to believe that the issue isn't Rom-specific, and may not even be device specific. With all this in mind, does anybody have any good tips for troubleshooting this? Any ideas for what could be causing it or how to fix it?
Thanks!
TL;DR? Device loses all Internet connectivity on all connections, usually after transitioning between Cellular & WiFi, on stock-rooted Rom, problem reported on stock and non-Motorola Roms as well. Software or settings conflict suspected.
Update: Hard reset; problem solved. No cause was ever uncovered. See post 7 for all the details.
Internet loss breakage Logcat
Here's the Logcat, if that helps. I tried getting a complete one, but had to cut it off after close to 45 minutes, so there still should be plenty there to go off of.
Any ideas?
Anybody? Any ideas at all? I'll even accept shots in the dark at this point. Made it a record-breaking <9 days, but the problem came back again, even with "Cellular data always active" switched off.
anything? anyone?
Ran into the issue again today, even having left WiFi manually turned off. Any ideas on this? I'll even take shots in the dark. Anything short of hard resetting and reinstalling apps & reinstating settings one-by-one.
Internet dropped out again...
Had the issue again today, but this time caught it "as-it-happens" (as I have only once before). This time, I woke the phone up and saw the exclamation point over the WiFi signal strength indicator, but was still able to use the LTE data connection. Resetting the cellular radio put a stop to that as well.
Any ideas at all? I'm taking complete and total shots in the dark at this point too.
Still losing Internet connection on WiFi, then cellular as well
Same deal again today. Any ideas at all? Anything I can do short of pulling the plug and hard resetting?
Hard reset; fixed
Well, I ultimately pulled the trigger and hard reset the device. The problem appears to have permanently vanished, but we will unfortunately never know its cause.

Categories

Resources