Bluetoothヘッドセットの一時停止/再生ボタンが機能しない

Bluetoothヘッドセットの一時停止/再生ボタンが機能しない

Manjaro 17.1.10を実行しているノートブックのヘッドセット(Plantronics BackBeat Pro 2)で一時停止/再生ボタンを使用しようとしました。また、本当にうまく機能する「次へ」と「前の」ボタンもあります。私はSpotify、Clementine、VLCで同じ結果を得ました。

私はArch Wikiのページを読んだ。

私が見つけたところによると、uinputカーネルモジュールをロードする必要があるようです。私が読んだガイドには2つの異なる場所に配置する必要があると述べていますが、どこに置くべきかは誰も説明しませんでした。

/etc/rc.conf

/etc/modules-load.d/uinput.conf \<-- (以前の方法だと思いますか?)

検索しようとしたときに得られる内容は次のとおりです。

[ibro@ibro-pc ~]$ lsmo |grep uinput
bash: lsmo: command not found
[ibro@ibro-pc ~]$ lsmod |grep uinput
uinput                 20480  1
[ibro@ibro-pc ~]$ grep uinput /proc/modules
uinput 20480 1 - Live 0xffffffffc048d000
[ibro@ibro-pc ~]$ grep uinput /proc/$(uname -r)/modules.builtin
grep: /proc/4.14.40-1-MANJARO/modules.builtin: No such file or directory
[ibro@ibro-pc ~]$ pulseaudio --version
pulseaudio 11.1

uinput したがって、これが問題であると仮定すると、それを追加する場所と他の問題に対する解決策でない場合は、追加する方法を理解する必要があります。

Linuxでは、2つの追加のヘッドフォン機能のサポートを追加したいと思います。

  • 外すとインテリジェントに一時停止し、着用すると再生が再開されます。
  • アクティブリスニングモード:音が検出されたら音楽を一時停止します。

両方を実行すると、一時停止/再生ボタンと非常に似た出力があります。xev

KeyPress event, serial 35, synthetic NO, window 0x8800001,
    root 0x16a, subw 0x0, time 13766406, (-871,191), root:(420,262),
    state 0x0, keycode 209 (keysym 0x1008ff31, XF86AudioPause), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 35, synthetic NO, window 0x8800001,
    root 0x16a, subw 0x0, time 13766437, (-871,191), root:(420,262),
    state 0x0, keycode 209 (keysym 0x1008ff31, XF86AudioPause), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 35, synthetic NO, window 0x8800001,
    root 0x16a, subw 0x0, time 13767016, (-871,191), root:(420,262),
    state 0x0, keycode 208 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
    XKeysymToKeycode returns keycode: 172
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 35, synthetic NO, window 0x8800001,
    root 0x16a, subw 0x0, time 13767047, (-871,191), root:(420,262),
    state 0x0, keycode 208 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
    XKeysymToKeycode returns keycode: 172
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

実際のキーボード一時停止/再生ボタンです。

FocusIn event, serial 34, synthetic NO, window 0x8800001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 34, synthetic NO, window 0x0,
    keys:  2   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

FocusOut event, serial 34, synthetic NO, window 0x8800001,
    mode NotifyGrab, detail NotifyAncestor

FocusOut event, serial 34, synthetic NO, window 0x8800001,
    mode NotifyUngrab, detail NotifyPointer

FocusIn event, serial 34, synthetic NO, window 0x8800001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 34, synthetic NO, window 0x0,
    keys:  2   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

ベストアンサー1

おすすめ記事