
Ich habe versucht, die Pause/Wiedergabe-Taste an meinen Kopfhörern (Plantronics BackBeat Pro 2) mit meinem Laptop, auf dem Manjaro 17.1.10 läuft, zum Laufen zu bringen. Sie haben auch Weiter- und Zurück-Tasten, die einwandfrei funktionieren. Ich habe sie in Spotify, Clementine und VLC mit den gleichen Ergebnissen ausprobiert.
Ich habe die Arch-Wiki-Seiten gelesen für:
Nach meinen Erkenntnissen muss ich das uinput
Kernelmodul laden. In den Anleitungen, die ich gelesen habe, steht, dass es an zwei verschiedenen Stellen erfolgen muss, und keine davon erklärt, was man dort eingeben muss.
/etc/rc.conf
/etc/modules-load.d/uinput.conf \<-- (ich glaube, das ist für eine Legacy-Methode?)
Das hier habe ich gefunden, als ich versucht habe, es zu finden:
[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
Wenn ich also davon ausgehe, dass dies das Problem ist, muss ich herausfinden, wo und wie ich es hinzufügen uinput
kann. Wenn nicht, eine Lösung für was auch immer es sonst sein mag
Es gibt zwei zusätzliche Kopfhörerfunktionen, für die ich in Linux Unterstützung hinzufügen möchte.
- Smart-Pause beim Abnehmen und Weiterspielen beim Aufsetzen
- Aktiver Hörmodus: pausiert die Musik, wenn ein Ton erkannt wird.
Beide haben eine sehr ähnliche Ausgabe wie die Pause/Wiedergabe-Taste, wenn ich laufexev
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
Dies ist die eigentliche Tastatur Pause/Play-Taste
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