Opened 7 years ago

Closed 6 years ago

#1300 closed defect (invalid)

sms sentry is broken

Reported by: GNUtoo Owned by: mrmoku
Priority: major Milestone:
Component: SHR Image Version: SHR-unstable
Keywords: Cc:

Description

At first sms-sentry can't regiter, but after fixing that it still doesn't work.

Here's how to fix the registering issue:
# diff /usr/bin/sms-sentry ./sms-sentry
--- /usr/bin/sms-sentry
+++ ./sms-sentry
@@ -52,7 +52,7 @@

self.bus = dbus.SystemBus?()


self.usage_obj = self.bus.get_object('org.freesmartphone.ousaged', '/org/freesmartphone/Usage')

  • usage_iface = dbus.Interface(self.usage_obj, 'org.freesmartphone.Usage')

+ self.usage_iface = dbus.Interface(self.usage_obj, 'org.freesmartphone.Usage')

self.usaged = True

except Exception, e :

logging.error( "DBus exception" )

@@ -66,7 +66,7 @@

while not self.registered :

try :

+ self.usage_iface.RequestResource?("GSM")

self.registered = True

except :

logging.debug( 'registration failed - waiting 30 seconds' )

but after that it still fail to work:

Before:
# cat log/sms-sentry.log
2011-02-26 13:25:10,938 DEBUG init: 1.01
2011-02-26 13:25:11,011 DEBUG register
2011-02-26 13:25:11,167 DEBUG registration failed - waiting 30 seconds
[lots of registration failes]
After:

# cat /tmp/sms-sentry.log

2011-02-26 18:02:01,883 DEBUG init: 1.01
2011-02-26 18:02:01,943 DEBUG register
[blocked here]

Change History (1)

comment:1 Changed 6 years ago by slyon

  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.