- 您可以开始监视DBus的通知调用,您可以使用它显示一个干净的输出:dbus-type=method_call "type=method_call“、"path=/org/freedesktop/Notifications”、"interface=org.freedesktop.Notifications“、"member=Notify”--这里是输出的一个示例:方法调用time=1466117414.215345 sender=:1.45 -> destination=:1.34 serial=51 path=/org/freedesktop/Notifications;interface=org.freedesktop.Notifications;member=Notify字符串"Xfce卷守护进程“uint32 0 string”uint32 0 string“音频音量在25%的”string“数组undefined数组dict条目(字符串“值”变体dict 32 25 ) int32 -1方法调用time=1466117414.215449 sender=:1.49 -> destination=:1.34 serial=2065 path=/org/freedesktop/Notifications;interface=org.freedesktop.Notifications;member=Notify字符串”指示器-声音字符串0字符串“音频音量-低字符串”音量“字符串”耳机“数组undefined 条目(字符串“x-正则-非形状-图标”“变量字符串”“true”)(断项(字符串“值”变体dict 32 26 ) int32 -1
- 检查源和目的地最重要的部分是:方法调用time=1466117414.215345 sender=:1.45 -> destination=:1.34 .字符串"Xfce卷守护进程“..。方法调用time=1466117414.215449 sender=:1.49 -> destination=:1.34 .字符串“指示器-声音”..。打开D英尺→会话总线:检查每个总线地址的PID和CMD。在我的示例中,我发现:1.34 2891 /usr/lib/x86_64-linux-gnu/osd :1.45 2933 xfce4-volumed :1.49 2963 /usr/lib/x86_64-linux-gnu/indicator-sound/indicator-sound-service
是的,我得到了每个卷变化的线轴--一个来自indicator-sound-service
,另一个来自xfce4-volumed
(我启用了Xubuntu16.04,启用了统一指示符)
- 如果您认为原因可能是键盘,那么使用:
xev
或更好的sudo evtest
来监视X键盘事件。
参考资料:https://wiki.ubuntu.com/DebuggingDBus