Openmoko Bug #1822: 2008.8 doesn't wake on alarm

Openmoko Public Trac bugs at docs.openmoko.org
Fri Sep 12 06:33:17 CEST 2008


#1822: 2008.8 doesn't wake on alarm
-------------------------+--------------------------------------------------
    Reporter:  madjo     |        Owner:  zecke   
        Type:  defect    |       Status:  new     
    Priority:  high      |    Milestone:  Om2008.9
   Component:  Qtopia    |      Version:  Om2008.8
    Severity:  critical  |   Resolution:          
    Keywords:            |    Blockedby:          
Reproducible:            |     Blocking:          
-------------------------+--------------------------------------------------

Comment(by Treviño):

 To prove what said above, I've tried to do this:
 {{{
 diff --git a/src/libraries/qtopia/qalarmserver.cpp
 b/src/libraries/qtopia/qalarmserver.cpp
 index a5a8bff..346768f 100644
 --- a/src/libraries/qtopia/qalarmserver.cpp
 +++ b/src/libraries/qtopia/qalarmserver.cpp
 @@ -207,7 +207,7 @@ void TimerReceiverObject::resetTimer()
      // from the Epoch in seconds.
      //
      int at_secs = nearest.toTime_t();
 -    QString fn = atdir + QString::number(at_secs) + "."
 +    QString fn = atdir + QString::number(at_secs - 10) + "."
                   + QString::number(::getpid());
      if ( fn != atfilename ) {
          QFile atfile(fn+".new");
 }}}
 Whith this code the phone woke up from suspend 10 second before than the
 alarm time, but also with this workaround Qtopia doesn't ring at all.

 Also if I enable the alarm, I make the phone suspend and then I wake-up it
 about 30 seconds - 1 minute before the alarm time the phone doesn't ring
 at all at the right time.

 I figure that a workaround/fix could be appling the patch above, then
 making qtopia  check if an alarm was enabled (in its configuration) every
 time that the phone is woked-up (is there a way to make qtopia aware of
 this?). If it was enabled, it should re-enable it (informing
 qtopiaalarmserver that should ring!).

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/1822#comment:10>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac


More information about the buglog mailing list