Hello,

It seems that frameworkd (currently I'm running version 0.8.5.1-1) with
pyrtc version 0~git20080810-1 is unable to read the RTC wake up time:

  # mdbus -s org.freesmartphone.odeviced 
/org/freesmartphone/Device/RealTimeClock/0 
org.freesmartphone.Device.RealTimeClock.SetWakeupTime "'`date --date="+1 days" 
+%s`'"
  /org/freesmartphone/Device/RealTimeClock/0: SetWakeupTime -> 
  # mdbus -s org.freesmartphone.odeviced 
/org/freesmartphone/Device/RealTimeClock/0 
org.freesmartphone.Device.RealTimeClock.GetWakeupTime
  /org/freesmartphone/Device/RealTimeClock/0: GetWakeupTime ->  0

Same happens if I use /org/freesmartphone/Device/RealTimeClock/rtc0

The wake up time is set correctly, because the phone wakes up from
suspend after the given amount of time.

In particular, if I add some debugging statement to otimed, I get this
with GetWakeupTime:

  I add this:
            # use ioctl interface$
            ( enabled, pending ), t = pyrtc.rtcReadAlarm()$
          + logger.error( "ZZ GetWakeupTimei got " + str(enabled) + " " + 
str(pending) + " " + str(t) )$
            return "0" if not enabled else str( time.mktime( t ) )$

  I get this:
    Aug 19 15:35:17 ciapino odeviced.kernel26 ERROR    ZZ GetWakeupTime got 0 0 
(2009, 8, 20, 15, 34, 56, 7, 0, 0)

So it sounds like the alarm is set but GetWakeupTime does not see it
as enabled.

I don't know if the problem is in odeviced or in python-rtc. I did check
if the python-rtc shipped with Debian is the same as in
git://git.freesmartphone.org/python-helpers.git, just in case it could
be a problem already fixed in python-rtc, but the code in Debian seems
to be identical with what's in the current git.


Ciao,

Enrico

-- 
GPG key: 4096R/E7AD5568 2009-05-08 Enrico Zini <enr...@enricozini.org>

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Smartphones-userland mailing list
Smartphones-userland@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland

Reply via email to