Closed Bug 1131388 Opened 11 years ago Closed 11 years ago

[Camera][Gonk][Shinano] ~4s delay during startup while looking for batterystats service

Categories

(Firefox OS Graveyard :: Gaia::Camera, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.2 S6 (20feb)

People

(Reporter: mikeh, Assigned: gerard-majax)

References

Details

(Whiteboard: [systemsfe])

Attachments

(1 file, 2 obsolete files)

When the Camera app is started up, with all of the other issue addressed, there is still a ~4s delay. During this time, the following appears in the logcat: 02-09 19:33:24.122 939 954 I ServiceManager: Waiting for service batterystats... 02-09 19:33:25.122 939 954 I ServiceManager: Waiting for service batterystats... 02-09 19:33:26.132 939 954 I ServiceManager: Waiting for service batterystats... 02-09 19:33:27.132 939 954 I ServiceManager: Waiting for service batterystats... 02-09 19:33:28.132 939 954 I ServiceManager: Waiting for service batterystats...
While hacking on ZR, I had similar behavior. I'll reuse my gonk-misc/fakebattery code and keep you posted.
Attached patch camera-battery.patch (obsolete) — Splinter Review
This will include a fake provider for this service. Maybe we would want this in Gecko directly ? You need to build, push, and run by hand for now.
Michael, did you figured out for sensorservice ? If you have nothing against this approach, I'll use this in shinano/aries device-specific init.
Flags: needinfo?(mwu)
Depends on: 1131976
Starting sensorservice via init.rc is fine. It's not much different than how android starts it - not sure why android doesn't just start it via init.rc.
Flags: needinfo?(mwu)
Attached file PR for gonk-misc (obsolete) —
Assignee: nobody → lissyx+mozillians
Attachment #8564037 - Flags: review?(mwu)
Comment on attachment 8564037 [details] [review] PR for gonk-misc I think this is more appropriate in shinano-common, unless we start seeing more devices that want to talk to the battery stats service.
Attachment #8564037 - Flags: review?(mwu)
I have included it in my shinano-common tree
Attachment #8562040 - Attachment is obsolete: true
Attachment #8564037 - Attachment is obsolete: true
Attachment #8564765 - Flags: review?(mwu)
Depends on: 1133192
No longer depends on: 1131976
Depends on: 1132921
Attachment #8564765 - Flags: review?(mwu) → review+
shinano-common is r+ in bug 1132921.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [systemsfe]
Target Milestone: --- → 2.2 S6 (20feb)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: