Closed Bug 1045035 Opened 10 years ago Closed 10 years ago

[Dolphin] Geolocation cannot work under sleep mode

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:1.4+)

RESOLVED WORKSFORME
blocking-b2g 1.4+

People

(Reporter: whsu, Unassigned)

Details

Attachments

(1 file)

* Description:
  Turn off the screen then turn on the screen again. You will see that app cannot continuously get data from GPS/A-GPS.  

* Reproduce steps:
  1. Install "Run recorder" app from marketplace
  2. Launch "Run recorder" app then use it to record GPS data
  3. Press power-on button to turn off screen
  4. Press power-on button again to turn on screen

* Expected result:
  App can continuously get data from GPS receiver

* Actual result:
  App hangs there and no data from GPS receiver

* Reproduction build: V1.4 (Dolphin)
  - Gaia      6e4eaa5befce9c1812e07bcc78b2138645bdbe7a
  - Gecko     https://hg.mozilla.org/releases/mozilla-b2g30_v1_4/rev/2d16ba0b45bc
  - BuildID   20140724000201
  - Version   30.0
[Blocking Requested - why for this release]:
blocking-b2g: --- → 1.4?
:whsu - can you check the same on 1.4 flame/buri.
Flags: needinfo?(whsu)
(In reply to Wayne Chang [:wchang] from comment #2)
> :whsu - can you check the same on 1.4 flame/buri.

Hi, Wayne,

Flame(v1.4) doesn't have this problem.

* Build information: (Flame - v1.4)
 - Gaia      9377274b17200a60cebcd2427d489a7756c4cc72
 - Gecko     https://hg.mozilla.org/releases/mozilla-b2g30_v1_4/rev/24bc2ae19c59
 - BuildID   20140805000237
 - Version   30.0
Flags: needinfo?(whsu)
Kan-Ru,

Is this something you can check?
blocking-b2g: 1.4? → 1.4+
Flags: needinfo?(kchen)
I guess this was tested on a GPS hardware enabled Dolphin but I still wonder if it's using MLS or not. It might also be that the phone was in deep sleep mode (no wakelocks?) so the apps stopped.

Talked to William, he will provide logs on Dolphin.
Flags: needinfo?(kchen)
(In reply to Kan-Ru Chen [:kanru] from comment #5)
> I guess this was tested on a GPS hardware enabled Dolphin but I still wonder
> if it's using MLS or not. It might also be that the phone was in deep sleep
> mode (no wakelocks?) so the apps stopped.
> 
> Talked to William, he will provide logs on Dolphin.

Hi, Kan-Ru,

Sorry for the late reply.
Here is the log you needed.FYI. (GPS_LOG_20140811_10.log)

By the way, I used following steps to reproduce this bug.
Steps:
1. Install "Run recorder" app from marketplace, then disable WIFI
2. Launch "Run recorder" app then use it to record GPS data
3. Press power-on button to turn off screen
4. Press power-on button again to turn on screen
for comment 7
Flags: needinfo?(kchen)
From the log, this phone is indeed using the GPS but can't use AGPS because no network connection:

D/SUPL    ( 1099): supl_serverConnect: getaddrinfo error, error string: No address associated with hostname
D/SUPL    ( 1099): supl_createTlsConn: supl_serverConnect error

I think this is tested in-door so maybe it's just the phone can't get any GPS lock in time. William, could you turn on gps debug logging from developer settings and test again near the window? And run adb logcat with '-v time' so the time information is included.
Flags: needinfo?(kchen)
Thanks Kan-Ru!
After I discussed this bug with you, I re-builded a local build then re-tested this case with GPS log enabled.
Weird! I cannot reproduce this bug.

I also tested this bug on latest PVT build. GPS works as normal after turning off display.
* Build information:
 - Gaia      fda0319ff8c10e54faa7f0eaec256402044209b5
 - Gecko     https://hg.mozilla.org/releases/mozilla-b2g30_v1_4/rev/3a67a0568412
 - BuildID   20140812000205
 - Version   30.0

So, I doubt that it might have something wrong on the PVT build I tested (20140724000201)

I would like to close this bug.
Mark it as "WORKFORME".

Have a nice day!
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: