younglo / cyanogenmod4milestone

Automatically exported from code.google.com/p/cyanogenmod4milestone
0 stars 0 forks source link

GPS broken (again) #295

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open app that uses GPS.
2. Watch GPS icon blinking almost indefinitely.

What is the expected output? What do you see instead?
GPS used to lock within seconds, now it doesn't even find gps sats after a few 
minutes. Sometimes I can get a lock after about 5 minutes, and other times it 
finds up to 9 sats, but can't lock to any of them.

What version of the product are you using?
12.12.2010 0.04-10.12.12

Please provide any additional information below.

Original issue reported on code.google.com by abiya.wy...@gmail.com on 13 Dec 2010 at 7:43

GoogleCodeExporter commented 8 years ago
Do you have the data connection working when trying the gps lock?
I'm still getting the gps lock within seconds on 10.12.12.

Original comment by kabal...@gmail.com on 13 Dec 2010 at 1:18

GoogleCodeExporter commented 8 years ago
Yes, data works fine. I can browse the internet, chat, get mail (although the 
Gtalk Service frequently disconnects, but I guess that's a common Android 
problem), but no GPS. GPS Status (app) can download the AGPS data, but has a 
hard time finding any sats and/or locking on them. I've tried changing APN 
types from default,supl to default,supl,dun, even to default,supl,dun,admin and 
leaving it empty, but still no go on the GPS lock. It worked fine with APN type 
set to default,supl on 10.11.29, though. I haven't used the GPS with 12.04 and 
12.08/08b, so I can't say whether it worked with those releases. I'm out of 
ideas what else to try. Hope you can find what causes this. Thanks. :)

Original comment by abiya.wy...@gmail.com on 13 Dec 2010 at 2:40

GoogleCodeExporter commented 8 years ago
The supl type has been removed from the included apns-conf.xml (since November 
3).
It should not used anyway as the agps functionality has to be provided via the 
injected location proxy. Supl type was causing gps problems for some users.

Can you check whether the APN type set to default,dun can solve the issue for 
you?

Original comment by kabal...@gmail.com on 13 Dec 2010 at 2:58

GoogleCodeExporter commented 8 years ago
22:27 (GMT+7): Changed apn type to default,dun. Cleared AGPS data. Start GPS 
Status.
22:30: Found 1 sat.
22:33: Still only 1 sat found, no sats locked.

:(

I'll try reverting to 10.11.29 later to test it again.

Original comment by abiya.wy...@gmail.com on 13 Dec 2010 at 3:34

GoogleCodeExporter commented 8 years ago
Before revert, please test also whether deleting the 
/data/location/location.cfg (and reboot afterwards) will help.

Original comment by kabal...@gmail.com on 13 Dec 2010 at 3:44

GoogleCodeExporter commented 8 years ago
22:51: Deleted location.cfg, rebooted, cleared AGPS data, start GPS Status.
22:53: Still no sats found. :(

I'll try reverting to 10.12.08 first, 'cause I had deleted and thus have to 
redownload the 11.29 release.

Original comment by abiya.wy...@gmail.com on 13 Dec 2010 at 3:55

GoogleCodeExporter commented 8 years ago
OK, looks like 10.12.08 has the same problem. Only 1 sat found and no lock.

Original comment by abiya.wy...@gmail.com on 13 Dec 2010 at 4:16

GoogleCodeExporter commented 8 years ago
There were two commits that can affect the agps functionality, merged to the CM 
sources on 2.December.
http://review.cyanogenmod.com/754
http://review.cyanogenmod.com/754

Interestingly enough, agps still seems to be fine in 0.04-10.12.x builds for 
the most of the users...

Original comment by kabal...@gmail.com on 13 Dec 2010 at 4:30

GoogleCodeExporter commented 8 years ago
Firefox somehow failed to load that page, but IE did the job.

So, changing 2 return values from true to false (or vice versa) killed AGPS for 
some and fixes it for others...?

Original comment by abiya.wy...@gmail.com on 13 Dec 2010 at 4:42

GoogleCodeExporter commented 8 years ago
for me GPS is working totally fine (version 0.04-10.12.12)

Original comment by trau...@googlemail.com on 13 Dec 2010 at 5:12

GoogleCodeExporter commented 8 years ago
Issue 299 has been merged into this issue.

Original comment by kabal...@gmail.com on 13 Dec 2010 at 5:17

GoogleCodeExporter commented 8 years ago
Question.

How can i apply the http://review.cyanogenmod.com/754 cpp? or modify in mi 
Cyano ROM?
In the link says that 2 lines to modify.

Original comment by loco...@gmail.com on 13 Dec 2010 at 10:58

GoogleCodeExporter commented 8 years ago
Reverted to 11.29, took about 2 minutes to get first lock. Subsequent locks 
took about 30 seconds (if I rebooted the phone first) or <10 seconds (without 
rebooting the phone).

Updated again to 12.12 (without wiping caches, deleting location.cfg, or 
clearing AGPS data), GPS locks within 30 seconds and subsequent locks are 
within 10 seconds (same behaviour as 11.29).

Wiped caches, cleared AGPS data, still locks fine. I haven't tried deleting 
location.cfg again.

Now I'm confused what the problem actually was, but at least it works again...

Original comment by abiya.wy...@gmail.com on 14 Dec 2010 at 1:04

GoogleCodeExporter commented 8 years ago
Forgot to mention, I deleted location.cfg, wiped caches, and cleared AGPS data 
after reverting to 11.29.

Original comment by abiya.wy...@gmail.com on 14 Dec 2010 at 1:06

GoogleCodeExporter commented 8 years ago
After testing it some more, I found that the number of sats found/locked and 
signal strength is not as high as the 11.29 release...

Original comment by abiya.wy...@gmail.com on 14 Dec 2010 at 1:15

GoogleCodeExporter commented 8 years ago
I'm getting the GPS fix in about 7-10 seconds. The GPS driver/libraries have 
not been changed since the first 0.03 release and I don't perceive any change 
in the GPS functionality since the agps fix I released on 23.October...

Original comment by kabal...@gmail.com on 14 Dec 2010 at 1:49

GoogleCodeExporter commented 8 years ago
Yeah, that's the strange thing. It seems like GPS functionality is hit and miss 
for some (including me) since the December releases.

I used to get up to 8 or 9 sats found, and got a fix on at least 5 of them 
(could go up to 7 or 8 at times). Now it's having a hard time even finding the 
6th sat. It appears and disappears frequently, and sat fixes range at 2-4, 
rarely 5. I'll have to test it some more this afternoon at another location.

But at least the low signal strength partially explains why it's so hard 
getting a fix. The sudden drop in signal strength is still a mystery, though...

Well, thanks for the help anyway. :)

Just need Google to fix the Gtalk service frequently disconnecting bug (it's 
reported a gazillion times in Google's own forums - without any solutions) and 
I'm a happy camper again.

Original comment by abiya.wy...@gmail.com on 14 Dec 2010 at 2:17

GoogleCodeExporter commented 8 years ago
Even with a clear view of the sky, I only found 5 sats. Signal strength appears 
to be normal, but couldn't get a lock again. :(

Original comment by abiya.wy...@gmail.com on 14 Dec 2010 at 3:57

GoogleCodeExporter commented 8 years ago
Tried it again while driving (slowly). It took well over 5 minutes, but I got a 
fix on 5 out of 7 sats found. Subsequent locks takes <30 seconds.

I'm giving up on this issue and assume it's either my operator giving out 
incorrect AGPS data or the clouds that have been hanging over the city for a 
few weeks blocking GPS signals (or both).

:(

Original comment by abiya.wy...@gmail.com on 14 Dec 2010 at 7:03

GoogleCodeExporter commented 8 years ago
also have had the same problem.

after updating to your rom, it seemed that gps unable to determine location.
(i'm kinda certain I installed the rom properly, wiped all the things, before 
and after)

then I tested by flashing back official eclair, everything worked fine.

however, I also have had this issue with all other froyo based mod; froyomod, 
cronos, etc. is possible the gps driver a culprit this case?

sorry for my poor english.

Original comment by lazy.wah...@gmail.com on 14 Dec 2010 at 9:59

GoogleCodeExporter commented 8 years ago
Finally works!

I left the APN Type in default,dun.supl
Modify the lines for AGPS in /system/etc/location.cfg
Delete the file /data/location/location.cfg
Reboot
Reset y Download in GPS Status
Lock's with assist gps OK! in 5 seconds!

I left a minimal hope for everyone! ja

Original comment by loco...@gmail.com on 15 Dec 2010 at 4:36

GoogleCodeExporter commented 8 years ago
what lines modified in /system/etc/location.cfg ?

Original comment by superbiji on 15 Dec 2010 at 4:09

GoogleCodeExporter commented 8 years ago
Oke found it.
After changing default apn from Cingular to internet (my apn) in 
/system/etc/location.cfg
it work again.. yes! locked under 5 seconds

DL_LCS_DEFAULT_DATA_PROFILE = internet

Original comment by superbiji on 16 Dec 2010 at 2:42

GoogleCodeExporter commented 8 years ago
Is there any drawback of this workaround?

Original comment by lazy.wah...@gmail.com on 16 Dec 2010 at 6:18

GoogleCodeExporter commented 8 years ago
i'm not sure, but system default setting should follow APN Type, not hardcoded 
in .cfg

maybe setting it to blank will follow user's APN (haven't tried)

Original comment by superbiji on 16 Dec 2010 at 8:12

GoogleCodeExporter commented 8 years ago
YES! Thank you! Although it doesn't really make any sense since it's been set 
to CingularWap for I-don't-know-how-long before, changing that 1 line in 
/system/etc/location.cfg did make the GPS get a fix within 30 secs.

Original comment by abiya.wy...@gmail.com on 17 Dec 2010 at 10:03

GoogleCodeExporter commented 8 years ago
Can you, who have been experiencing the GPS issues lately, test what effect 
will have when you completely delete the DL_LCS_DEFAULT_DATA_PROFILE line from 
both /etc/location.cfg and /data/location/location.cfg and reboot?
Thanks.

Original comment by kabal...@gmail.com on 17 Dec 2010 at 10:55

GoogleCodeExporter commented 8 years ago
Deleted DL_LCS_DEFAULT_DATA_PROFILE line from both /system/etc/location.cfg and 
/data/location/location.cfg, wiped caches, rebooted, cleared AGPS data, ran GPS 
Status, position locked in 15s. :)

Original comment by abiya.wy...@gmail.com on 17 Dec 2010 at 11:29

GoogleCodeExporter commented 8 years ago
Good, so I'll remove it for the next build. Thanks.

Original comment by kabal...@gmail.com on 17 Dec 2010 at 11:35

GoogleCodeExporter commented 8 years ago
Examined on my milestone, which is currently running eclair. 
I've found that value of DL_LCS_DEFAULT_DATA_PROFILE was CingularWap.
(same in both location, /system/etc/location.cfg and 
/data/location/location.cfg)

I wonder if the real cause of the problem is lying somewhere.

Original comment by lazy.wah...@gmail.com on 17 Dec 2010 at 12:42

GoogleCodeExporter commented 8 years ago
hopefully fixed in 0.04-10.12.22 (DL_LCS_DEFAULT_DATA_PROFILE left out)

Original comment by kabal...@gmail.com on 23 Dec 2010 at 12:35