We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

Can I see all dbus method calls on system bus?

asked 2016-05-27 16:37:51 +0300

Garrikus gravatar image

Hi.

I am trying to figure low-level dbus API of timed daemon. The obvious idea is to peek at dbus traffic over the system bus (where I suspect timed lives under the name of com.nokia.time) with dbus-monitor --system So I:

  1. modified system bus config according to this: https://wiki.ubuntu.com/DebuggingDBus
  2. rebooted device
  3. su-devel'ed
  4. ran dbus-monitor --system
  5. started changing data&time settings, expecting to see dbus method calls to timed

So I saw none of the method calls but a bunch of notification signals. This bug here https://bugs.freedesktop.org/show_bug.cgi?id=80186 suggests I might be unable to see non-root made method calls, which looks pretty much like what I got from dbus-monitor

Is SailfishOS 2.0.1.11 affected by this bug?

Is there a way to see those method calls on system bus?

edit retag flag offensive close delete

Comments

can you see the interface listed with qdbus?

tortoisedoc ( 2016-05-27 16:56:23 +0300 )edit

@tortoisedocdbus-send --system --type=method_call --print-reply --dest=com.nokia.time /com/nokia/time org.freedesktop.DBus.Introspectable.Introspect works. Plus it returns native dbus method signatures, which contributes to the initial task of "figure low-level dbus API". Thanks!

Garrikus ( 2016-05-27 17:16:08 +0300 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2016-05-27 17:00:43 +0300

coderus gravatar image

So maybe it's done not via timed? :)

edit flag offensive delete publish link more

Comments

I don't know really. But something still triggers those *_changed signals from com.nokia.time in accordance with my GUI actions, leading me to believe there's something else going on on the system bus I can't see.

Garrikus ( 2016-05-27 17:22:48 +0300 )edit

Are you sure it's the system bus and not the session one?

tortoisedoc ( 2016-05-27 21:26:16 +0300 )edit

@tortoisedoc About 90% sure.

Garrikus ( 2016-05-30 10:52:27 +0300 )edit

i see following:

[nemo@Sailfish ~]$ dbus-monitor --system
signal sender=org.freedesktop.DBus -> dest=:1.143 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.143"
signal sender=:1.19 -> dest=(null destination) serial=3090 path=/com/nokia/time; interface=com.nokia.time; member=alarm_triggers_changed
   array [
      dict entry(
         uint32 251
         uint32 1464667200
      )
      dict entry(
         uint32 262
         uint32 1464666900
      )
   ]
signal sender=:1.19 -> dest=(null destination) serial=3091 path=/com/nokia/time; interface=com.nokia.time; member=next_bootup_event
   int32 1464666900
   int32 1466750700
signal sender=:1.19 -> dest=(null destination) serial=3092 path=/com/nokia/time; interface=com.nokia.time; member=alarm_triggers_changed
   array [
      dict entry(
         uint32 251
         uint32 1464667200
      )
      dict entry(
         uint32 262
         uint32 1464666900
      )
   ]
signal sender=:1.11 -> dest=(null destination) serial=110752 path=/net/connman/service/wifi_1ce19217006e_32474953_managed_ieee8021x; interface=net.connman.Service; member=PropertyChanged
   string "Strength"
   variant       byte 51
signal sender=:1.19 -> dest=(null destination) serial=3094 path=/com/nokia/time; interface=com.nokia.time; member=alarm_triggers_changed
   array [
      dict entry(
         uint32 251
         uint32 1464667200
      )
   ]
signal sender=:1.19 -> dest=(null destination) serial=3095 path=/com/nokia/time; interface=com.nokia.time; member=next_bootup_event
   int32 1464667200
   int32 1466750700
signal sender=:1.19 -> dest=(null destination) serial=3096 path=/com/nokia/time; interface=com.nokia.time; member=alarm_triggers_changed
   array [
      dict entry(
         uint32 251
         uint32 1464667200
      )
   ]
signal sender=:1.11 -> dest=(null destination) serial=110759 path=/net/connman/service/wifi_1ce19217006e_32474953_managed_ieee8021x; interface=net.connman.Service; member=PropertyChanged
   string "Strength"
   variant       byte 50
coderus ( 2016-05-30 11:04:00 +0300 )edit

@coderus Well, yes, signals only. Something is still not right: I've opened two ssh sessions -- one to monitor system bus, one to poke around -- dbus-send --system --type=method_call --print-reply --dest=com.nokia.time /com/nokia/time com.nokia.time.get_wall_clock_info works fine, but it is never shown in monitor.

Garrikus ( 2016-06-01 13:02:12 +0300 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2016-05-27 16:37:51 +0300

Seen: 1,812 times

Last updated: May 27 '16