From 07d0a95e075a3ca2c9bfd0255b3970a625a6360f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 8 Oct 2022 21:37:04 -0500 Subject: [PATCH] only show battery events Signed-off-by: Jeff Carr --- Makefile | 40 ++++++++++++++++------------------------ 1 file changed, 16 insertions(+), 24 deletions(-) diff --git a/Makefile b/Makefile index 0071771..f3c5a24 100644 --- a/Makefile +++ b/Makefile @@ -16,30 +16,22 @@ run: clean: rm -f go.* go-notify-helloworld -# dumps out things like battery and network access point stuff: -# -# signal time=1665266429.743394 sender=:1.45 -> destination=(null destination) serial=42594 path=/org/freedesktop/UPower/devices/battery_BATT; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged -# signal time=1665266425.288750 sender=:1.11 -> destination=(null destination) serial=107357 path=/org/freedesktop/NetworkManager/AccessPoint/1594; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged -dbus-monitor-system: - dbus-monitor --system +dbus-freedesktop-properties: + dbus-monitor --profile "interface='org.freedesktop.DBus.Properties'" -# -# method call time=1665266624.934192 sender=:1.497 -> destination=:1.498 serial=7 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify -# string "Hello World!" -# uint32 0 -# string "" -# string "Hello World v2!" -# string "This is an example notification." -# array [ -# ] -# array [ -# dict entry( -# string "sender-pid" -# variant int64 852595 -# ) -# ] -# int32 3000 +# THIS WORKS. IT ONLY SHOWS BATTERY EVENTS +dbus-battery: + dbus-monitor --profile --system "path='/org/freedesktop/UPower/devices/battery_BATT'" + # dbus-monitor --profile --system + # dbus-monitor --profile --system "sender=':1.45'" + # dbus-monitor --profile "sender='/org/freedesktop/UPower/devices/battery_BATT'" -# signal time=1665266425.288750 sender=:1.11 -> destination=(null destination) serial=107357 path=/org/freedesktop/NetworkManager/AccessPoint/1594; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged +# show everything that happens in a session dbus-monitor-session: - dbus-monitor --session + dbus-monitor --session --profile + +dbus-monitor-profile: + dbus-monitor --profile + +dbus-monitor-system: + dbus-monitor --system --profile