DBUS-MONITOR(1)
๐ dbus-monitor(1) โ your new fave little debug probe
okay so first things first, bestie: this is a manual page from User Commands, and the whole thing is about dbus-monitor. that's the star of the show. let's get into it ๐ซถ
โจ NAME โจ
dbus-monitor โ a debug probe that prints message bus messages. that's it. that's the job. it snoops (lovingly) on your bus and prints what it sees ๐
๐ฆ SYNOPSIS ๐ฆ
dbus-monitor [--system | --session | --address ADDRESS] [--profile |
--monitor | --pcap | --binary] [watch expressions]
look at her. iconic bracket structure. no cap, this is literally the shape of the whole command ๐
๐ธ DESCRIPTION ๐ธ
okay so dbus-monitor is the command you use to monitor messages going through a D-Bus message bus. if you wanna know the big picture, like the whole lore, it's over at https://www.freedesktop.org/wiki/Software/dbus/ โ go read it, it's giving foundational text ๐
so there are two well-known message buses, and you need to know both:
- the systemwide message bus โ on many systems this is installed as the
"messagebus"service - the per-user-login-session message bus โ this one gets started each time a user logs in
the --system and --session options point dbus-monitor at the system bus or the session bus respectively. and here's the default tea โ โ if neither is specified, dbus-monitor monitors the session bus. she just picks for you, lowkey thoughtful.
dbus-monitor also has two different text output modes:
- the
'classic'-style monitoring mode - profiling mode
the profiling format is a compact format โ a single line per message, plus microsecond-resolution timing information โฑ๏ธ (yes, microsecond. she's precise.) the --profile and --monitor options select the profiling and monitoring output format respectively.
and because one vibe isn't enough, there are also two binary output modes:
- the binary mode, selected by
--binary, outputs the entire binary message stream (without the initial authentication handshake) - the PCAP mode, selected by
--pcap, adds a PCAP file header to the beginning of the output, and prepends a PCAP message header to each message โ this produces a binary file that can be read by, for instance, Wireshark ๐ฆ
and if no mode is specified at all? dbus-monitor uses the monitoring output format. default queen behavior ๐
so how do you actually get her to show you the messages you care about? you specify a set of watch expressions as you would expect to be passed to the dbus_bus_add_match function. that's the move ๐ฏ
โ ๏ธ real talk though: the message bus configuration may keep dbus-monitor from seeing all messages โ especially if you run the monitor as a non-root user. so if something's missing, it might not be you, it's the config ๐
๐ OPTIONS ๐
--systemโ monitor the system message bus ๐ฅ๏ธ--sessionโ monitor the session message bus. and psst, this is the default โจ--address ADDRESSโ monitor an arbitrary message bus given at ADDRESS ๐--profileโ use the profiling output format โฑ๏ธ--monitorโ use the monitoring output format. also the default, she's consistent ๐
โญ EXAMPLE โญ
here's an example of using dbus-monitor to watch for the gnome typing monitor to say things ๐
dbus-monitor "type='signal',sender='org.gnome.TypingMonitor',interface='org.gnome.TypingMonitor'"
literally just copy that, it ate ๐ฅ
๐ AUTHOR ๐
dbus-monitor was written by Philip Blundell. the profiling output mode was added by Olli Salli. legends, both of them ๐๐ซถ
๐ BUGS ๐
please send bug reports to the D-Bus mailing list or bug tracker โ the link is https://www.freedesktop.org/wiki/Software/dbus/ โ they wanna hear from you, fr fr ๐
and that's the whole page bestie!! mwah ๐ this was D-Bus 1.16.2, dated 03/03/2025 โ so if you're reading this way later, maybe go check if there's a glow-up version ๐ iykyk
๐ฆ where this page comes from
- alpine 3.22: dbus-doc 1.16.2-r1 ยท AFL-2.1 OR GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms