16.04 で一定音量 OSD?

16.04 で一定音量 OSD?

以前は Ubuntu Gnome を使用していましたが、システムをクリーン ブートする必要があったため、Ubuntu 16.04 を使用することにしました。

再ロードした 2 つのシステムでは、一定の音量の OSD が表示されます (約 2 ~ 4 分ごとに表示されます)。

私の 2 つのシステムに共通する唯一の点は、どちらも音量ロッカーを備えた Logitech G710+ キーボードを共有していることです。

音量ロッカーは機能します。

この問題の原因を診断し、理想的には修正するにはどうすればよいでしょうか。実際に音量を変更するときに OSD が便利なので、無効にしたくありません。

答え1

  1. DBus の Notification 呼び出しの監視を開始できます。これを使用すると、クリーンな出力が表示されます。

    dbus-monitor "type=method_call","path=/org/freedesktop/Notifications","interface=org.freedesktop.Notifications","member=Notify"
    

    出力の例を以下に示します。

    method call time=1466117414.215345 sender=:1.45 -> destination=:1.34 serial=51 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify
       string "Xfce volume daemon"
       uint32 0
       string "audio-volume-low"
       string "Volume is at 25%"
       string ""
       array [
       ]
       array [
          dict entry(
             string "value"
             variant             int32 25
          )
       ]
       int32 -1
    method call time=1466117414.215449 sender=:1.49 -> destination=:1.34 serial=2065 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify
       string "indicator-sound"
       uint32 0
       string "audio-volume-low"
       string "Volume"
       string "Headphones"
       array [
       ]
       array [
          dict entry(
             string "x-canonical-non-shaped-icon"
             variant             string "true"
          )
          dict entry(
             string "x-canonical-value-bar-tint"
             variant             string "false"
          )
          dict entry(
             string "x-canonical-private-synchronous"
             variant             string "true"
          )
          dict entry(
             string "value"
             variant             int32 26
          )
       ]
       int32 -1
    
  2. 送信元と送信先を確認する

    最も重要な部分は次のとおりです:

    method call time=1466117414.215345 sender=:1.45 -> destination=:1.34 ...
       string "Xfce volume daemon"
    ...
    method call time=1466117414.215449 sender=:1.49 -> destination=:1.34 ...
       string "indicator-sound"
    ...
    

    D-Feet → セッション バスを開き、各バス アドレスの PID と CMD を確認します。私の例では、次のことがわかりました。

    :1.34  2891  /usr/lib/x86_64-linux-gnu/notify-osd
    :1.45  2933  xfce4-volumed
    :1.49  2963  /usr/lib/x86_64-linux-gnu/indicator-sound/indicator-sound-service
    

    d-feer dbus デバッグ

    はい、ボリュームを変更するたびに、1つはボブルが発生し、indicator-sound-service もう1つはボブルが発生しましたxfce4-volumed(Unityインジケーターを有効にしたXubuntu 16.04を使用しています)

  3. 原因がキーボードにあると思われる場合は、次を使用します。xevまたは、sudo evtestX キーボード イベントを監視することをお勧めします。

参照: https://wiki.ubuntu.com/DebuggingDBus

関連情報