Hello,

still on Debian, frameword version 0.8.5.1-1, alarm.py has:

        # gather realtime clock dbus object
        o = bus.get_object( "org.freesmartphone.odeviced",
                            "/org/freesmartphone/Device/RealTimeClock/0",
                            follow_name_owner_changes=True,
                            introspect=False )
        self.rtc = dbus.Interface( o, "org.freesmartphone.RealTimeClock" )
        logger.info( "%s %s initialized. Serving %s at %s", 
self.__class__.__name__, __version__, self.interface, self.path )

the dbus.Interface call should instead be:

        self.rtc = dbus.Interface( o, "org.freesmartphone.Device.RealTimeClock" 
)

Also, SetWakeupTime expects a string, so the method call should probably
not be:

            self.rtc.SetWakeupTime(
                self.queue[0].timestamp,
                reply_handler=drop_dbus_result, error_handler=log_dbus_error( 
"RTC error; can not set wakeup time" )
            )

but:

            self.rtc.SetWakeupTime(
                str(self.queue[0].timestamp),
                reply_handler=drop_dbus_result, error_handler=log_dbus_error( 
"RTC error; can not set wakeup time" )
            )

The SetWakeupTime signature however conflicts with what is found here:
http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/org.freesmartphone.Device.RealtimeClock.html;hb=HEAD#SetWakeupTime

Anyway, with these two changes I am able to use frameworkd to set an
alarm and get the phone to unsuspend when it triggers.

Just out of curiosity, has this functionality ever been tested before?


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