Skip to content

Instantly share code, notes, and snippets.

@jelly
Created November 13, 2023 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jelly/f0f76365a9aa35c899c472922965e92a to your computer and use it in GitHub Desktop.
Save jelly/f0f76365a9aa35c899c472922965e92a to your computer and use it in GitHub Desktop.
dbusctl monitor lid events
[jelle@t14s][~]%sudo busctl monitor org.freedesktop.login1
[sudo] password for jelle:
Monitoring bus message stream.
‣ Type=method_call Endian=l Flags=0 Version=1 Cookie=990 Timestamp="Mon 2023-11-13 19:25:57.856486 UTC"
Sender=:1.60 Destination=:1.5 Path=/org/freedesktop/login1/session/_34 Interface=org.freedesktop.login1.Session Member=TakeDevice
UniqueName=:1.60
MESSAGE "uu" {
UINT32 13;
UINT32 88;
};
‣ Type=method_return Endian=l Flags=1 Version=1 Cookie=1582 ReplyCookie=990 Timestamp="Mon 2023-11-13 19:25:57.857024 UTC"
Sender=:1.5 Destination=:1.60
UniqueName=:1.5
MESSAGE "hb" {
UNIX_FD 4;
BOOLEAN false;
};
‣ Type=method_call Endian=l Flags=0 Version=1 Cookie=991 Timestamp="Mon 2023-11-13 19:25:57.857949 UTC"
Sender=:1.60 Destination=:1.5 Path=/org/freedesktop/login1/session/_34 Interface=org.freedesktop.login1.Session Member=TakeDevice
UniqueName=:1.60
MESSAGE "uu" {
UINT32 13;
UINT32 72;
};
‣ Type=method_return Endian=l Flags=1 Version=1 Cookie=1583 ReplyCookie=991 Timestamp="Mon 2023-11-13 19:25:57.858465 UTC"
Sender=:1.5 Destination=:1.60
UniqueName=:1.5
MESSAGE "hb" {
UNIX_FD 4;
BOOLEAN false;
};
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[26/26]
[jelle@t14s][~]%sudo busctl monitor org.freedesktop.UPower
[sudo] password for jelle:
Monitoring bus message stream.
‣ Type=signal Endian=l Flags=1 Version=1 Cookie=193 Timestamp="Mon 2023-11-13 19:25:57.856658 UTC"
Sender=:1.617 Path=/org/freedesktop/UPower Interface=org.freedesktop.DBus.Properties Member=PropertiesChanged
UniqueName=:1.617
MESSAGE "sa{sv}as" {
STRING "org.freedesktop.UPower";
ARRAY "{sv}" {
DICT_ENTRY "sv" {
STRING "LidIsClosed";
VARIANT "b" {
BOOLEAN false;
};
};
};
ARRAY "s" {
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment