Ticket #2284 (accepted defect)

Opened 9 years ago

Last modified 9 years ago

After suspend, phone does not ring on incoming call

Reported by: airzimmy Owned by: Nytowl
Priority: normal Milestone: Om2009
Component: unknown Version:
Severity: normal Keywords:
Cc: mickey@… Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: no PatchReviewResult:
Reproducible:

Description

When the phone is initially powered on, the phone ring's (and vibrates) correctly upon an incoming call.
When the phone is put into suspend and an incoming call arrives, it wakes up but the phone does not ring, it only vibrates.

Attachments

logread.test1 (63.4 KB) - added by airzimmy 9 years ago.
the syslog while doing a test
logread.20090509 (63.4 KB) - added by airzimmy 9 years ago.
Incoming call during suspend does not ring, second call, already woken up, does ring
paroli.log.20090509 (50.0 KB) - added by airzimmy 9 years ago.
Incoming call during suspend does not ring, second call, already woken up, does ring
frameworkd-unstable0513-doesnt-suspend2.log.gz (148.3 KB) - added by khiraly 9 years ago.
Frameworkd does not suspend anymore after I get a calling
frameworkd.log.gz (100.9 KB) - added by madhatter 9 years ago.
paroli.log.gz (9.8 KB) - added by madhatter 9 years ago.

Change History

Changed 9 years ago by airzimmy

the syslog while doing a test

comment:1 follow-up: ↓ 2 Changed 9 years ago by Nytowl

  • Owner changed from openmoko-devel to Nytowl
  • Status changed from new to accepted

What version is your modem firmware ?

comment:2 in reply to: ↑ 1 ; follow-up: ↓ 7 Changed 9 years ago by airzimmy

Replying to Nytowl:

What version is your modem firmware ?

If this is the way to check:
AT+CGMR
+CGMR: "HW: GTA, GSM: gsm_ac_gp_fd_pu_em_cph_ds_vc_cal35_ri_36_amd8_ts0-Moko9-beta1"

comment:3 Changed 9 years ago by jonquark

If you have installed Navit that would explain it - one of the prereqs it installs has a bug as explained here:
http://shr-project.org/trac/wiki/Tweaks
(look for audio breakage in that page)

comment:4 Changed 9 years ago by airzimmy

Very correct.
Removing navit and speech-dispatcher solves this.

comment:5 Changed 9 years ago by airzimmy

Removing navit seems to have solved one issue.
After using the phone for a while, there is no vibration, nor is there ringing.
I'll attach logread and paroli.log

comment:6 Changed 9 years ago by airzimmy

Additional, I just tried again and now it is ringing and vibrating.
A relevant grep on the logfiles:

root@om-gta02:/media/mmcblk0p2# grep playing logread.20090509
May 9 20:58:31 om-gta02 user.info odeviced.audio INFO sound status /usr/share/sounds/Arkanoid_PSID.sid playing {}
root@om-gta02:/media/mmcblk0p2# grep 32475538349 logread.20090509
May 9 20:49:09 om-gta02 user.info ogsmd.device INFO org.freesmartphone.GSM.Call.CallStatus?: 1 incoming {'status': 'incoming', 'direction': 'incoming', 'mode': 'voice', 'peer': '+32475538349', 'line': 0}
May 9 20:58:27 om-gta02 user.info ogsmd.device INFO org.freesmartphone.GSM.Call.CallStatus?: 1 incoming {'status': 'incoming', 'direction': 'incoming', 'mode': 'voice', 'peer': '+32475538349', 'line': 0}

Changed 9 years ago by airzimmy

Incoming call during suspend does not ring, second call, already woken up, does ring

Changed 9 years ago by airzimmy

Incoming call during suspend does not ring, second call, already woken up, does ring

comment:7 in reply to: ↑ 2 Changed 9 years ago by Nytowl

Replying to airzimmy:

Replying to Nytowl:

What version is your modem firmware ?

If this is the way to check:
AT+CGMR
+CGMR: "HW: GTA, GSM: gsm_ac_gp_fd_pu_em_cph_ds_vc_cal35_ri_36_amd8_ts0-Moko9-beta1"

Please upgrade to moko11

http://wiki.openmoko.org/wiki/GSM/Flashing

Changed 9 years ago by khiraly

Frameworkd does not suspend anymore after I get a calling

comment:8 Changed 9 years ago by madhatter

AT+CGMR
+CGMR: "GSM: gsm_ac_gp_fd_pu_em_cph_ds_vc_cal35_ri_36_amd8_ts0-Moko11"

mine also will not suspend after a call has arrived, running 2009testing3. attached are slightly redacted paroli.log and frameworkd.log, both gzipped.

Changed 9 years ago by madhatter

Changed 9 years ago by madhatter

comment:9 Changed 9 years ago by khiraly

Mine:
+CGMR: "GSM: gsm_ac_gp_fd_pu_em_cph_ds_vc_cal35_ri_36_amd8_ts0-Moko11"

So it is the same.

comment:10 Changed 9 years ago by Nytowl

  • Cc mickey@… added

From looking through the logs it looks like oeventsd gets out of sync with requesting and releasing the CPU. Hopefully Mcikey can shed some more light on this.

comment:11 Changed 9 years ago by khiraly

Ok, I examined the log a bit more. I write down my findings.
Im talking about frameworkd-unstable0513-doesnt-suspend2.log.gz

The interesting part is between line 12139-13092.
Interesting lines:
12110, 12134, 12151, 12161 WARNING Untrigger for 'CallListContains?(active)' called, but not yet triggered. Not untriggering
12167 WARNING call 1 already registered
12168 DEBUG resuming CPU
12169 DEBUG Enabling CPU
13092 ERROR re org.freedesktop.DBus.Error.NoReply?: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

Here is my suspicion:
When receive call/sms, first* it puts into CallList? the "call event" and after trigger it, this results two CPU request, and it enables cpu (12168) on its own.
*: Surely there must be some race-condition, and therefore it does not happen always.

However I dont know why there is a D-Bus *timeout*, when something busy, respond with busy.

I cant digg into more without knowing frameworkd internals, so would be nice some frameworkd expert could pop up here or in irc to discuss a bit about this issue.

comment:12 Changed 9 years ago by khiraly

There is an upstream bugreport about this very issue:
http://trac.freesmartphone.org/ticket/435

comment:13 Changed 9 years ago by janvlug

In the SHR trac there is a similar bug, with a suggested work around:
http://trac.shr-project.org/trac/ticket/494

Note: See TracTickets for help on using tickets.