我在 中使用蓝牙耳机时遇到了几个问题Ubuntu 20.04.2 LTS
,内核是5.4.0-80-generic
。耳机在其他操作系统上运行良好。
Issue 1
:每当我打开耳机时,它们都会自动连接到我的笔记本电脑的蓝牙,但它们被检测为键盘,而不是耳机。因此,我无法听到它们的声音,几秒钟后,它们就会自动断开连接。日志来自/var/log/syslog
:
Aug 3 17:11:58 ashish-Inspiron-7570 kernel: [230658.746268] input: Soundcore Life Note-L (AVRCP) as /devices/virtual/input/input115
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) config/udev: Adding input device Soundcore Life Note-L (AVRCP) (/dev/input/event22)
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (**) Soundcore Life Note-L (AVRCP): Applying InputClass "libinput keyboard catchall"
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) Using input driver 'libinput' for 'Soundcore Life Note-L (AVRCP)'
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) systemd-logind: got fd for /dev/input/event22 13:86 fd 63 paused 0
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (**) Soundcore Life Note-L (AVRCP): always reports core events
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (**) Option "Device" "/dev/input/event22"
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (**) Option "_source" "server/udev"
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) event22 - Soundcore Life Note-L (AVRCP): is tagged by udev as: Keyboard
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) event22 - Soundcore Life Note-L (AVRCP): device is a keyboard
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) event22 - Soundcore Life Note-L (AVRCP): device removed
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (**) Option "config_info" "udev:/sys/devices/virtual/input/input115/event22"
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) XINPUT: Adding extended input device "Soundcore Life Note-L (AVRCP)" (type: KEYBOARD, id 22)
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (**) Option "xkb_model" "pc105"
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (**) Option "xkb_layout" "us"
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (WW) Option "xkb_variant" requires a string value
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (WW) Option "xkb_options" requires a string value
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[2172]: (II) config/udev: Adding input device Soundcore Life Note-L (AVRCP) (/dev/input/event22)
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[2172]: (**) Soundcore Life Note-L (AVRCP): Applying InputClass "libinput keyboard catchall"
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[2172]: (II) Using input driver 'libinput' for 'Soundcore Life Note-L (AVRCP)'
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) event22 - Soundcore Life Note-L (AVRCP): is tagged by udev as: Keyboard
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) event22 - Soundcore Life Note-L (AVRCP): device is a keyboard
Aug 3 17:11:58 ashish-Inspiron-7570 kernel: [230658.857301] input: Soundcore Life Note (AVRCP) as /devices/virtual/input/input116
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[2172]: (II) systemd-logind: got fd for /dev/input/event22 13:86 fd 31 paused 1
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[2172]: (II) systemd-logind: releasing fd for 13:86
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[2172]: (II) config/udev: Adding input device Soundcore Life Note (AVRCP) (/dev/input/event23)
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[2172]: (**) Soundcore Life Note (AVRCP): Applying InputClass "libinput keyboard catchall"
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[2172]: (II) Using input driver 'libinput' for 'Soundcore Life Note (AVRCP)'
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[2172]: (II) systemd-logind: got fd for /dev/input/event23 13:87 fd 31 paused 1
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[2172]: (II) systemd-logind: releasing fd for 13:87
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) config/udev: Adding input device Soundcore Life Note (AVRCP) (/dev/input/event23)
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (**) Soundcore Life Note (AVRCP): Applying InputClass "libinput keyboard catchall"
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) Using input driver 'libinput' for 'Soundcore Life Note (AVRCP)'
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) systemd-logind: got fd for /dev/input/event23 13:87 fd 78 paused 0
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (**) Soundcore Life Note (AVRCP): always reports core events
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (**) Option "Device" "/dev/input/event23"
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (**) Option "_source" "server/udev"
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) event23 - Soundcore Life Note (AVRCP): is tagged by udev as: Keyboard
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) event23 - Soundcore Life Note (AVRCP): device is a keyboard
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) event23 - Soundcore Life Note (AVRCP): device removed
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (**) Option "config_info" "udev:/sys/devices/virtual/input/input116/event23"
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) XINPUT: Adding extended input device "Soundcore Life Note (AVRCP)" (type: KEYBOARD, id 23)
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (**) Option "xkb_model" "pc105"
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (**) Option "xkb_layout" "us"
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (WW) Option "xkb_variant" requires a string value
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (WW) Option "xkb_options" requires a string value
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) event23 - Soundcore Life Note (AVRCP): is tagged by udev as: Keyboard
Aug 3 17:11:58 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) event23 - Soundcore Life Note (AVRCP): device is a keyboard
Aug 3 17:11:58 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Aug 3 17:11:58 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Aug 3 17:11:58 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Aug 3 17:11:58 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Aug 3 17:11:58 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Aug 3 17:11:58 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Aug 3 17:11:58 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Aug 3 17:11:58 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Aug 3 17:11:58 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Aug 3 17:11:59 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Aug 3 17:11:59 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Aug 3 17:11:59 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Aug 3 17:11:59 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Aug 3 17:11:59 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Aug 3 17:11:59 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Aug 3 17:11:59 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Aug 3 17:11:59 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Aug 3 17:11:59 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Aug 3 17:11:59 ashish-Inspiron-7570 bluetoothd[1365]: profiles/audio/a2dp.c:a2dp_select_capabilities() Unable to select SEP
Aug 3 17:12:00 ashish-Inspiron-7570 acpid: input device has been disconnected, fd 25
Aug 3 17:12:00 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) config/udev: removing device Soundcore Life Note-L (AVRCP)
Aug 3 17:12:00 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (**) Option "fd" "63"
Aug 3 17:12:00 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) event22 - Soundcore Life Note-L (AVRCP): device removed
Aug 3 17:12:00 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) UnloadModule: "libinput"
Aug 3 17:12:00 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) systemd-logind: releasing fd for 13:86
Aug 3 17:12:03 ashish-Inspiron-7570 acpid: input device has been disconnected, fd 26
Aug 3 17:12:03 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) config/udev: removing device Soundcore Life Note (AVRCP)
Aug 3 17:12:03 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (**) Option "fd" "78"
Aug 3 17:12:03 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) event23 - Soundcore Life Note (AVRCP): device removed
Aug 3 17:12:03 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) UnloadModule: "libinput"
Aug 3 17:12:03 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) systemd-logind: releasing fd for 13:87
当我从 GUI 手动连接耳机的蓝牙时,它们会连接,我可以听到它们发出的声音。手动连接耳机时的日志如下所述。
Issue 2
:我听到的声音不清晰,中间有裂纹。当我点击设置中的“声音”选项时,声音变得清晰,与我期望的类似。
Aug 3 17:13:07 ashish-Inspiron-7570 bluetoothd[1365]: src/service.c:btd_service_connect() a2dp-source profile connect failed for 8C:85:80:2C:F2:35: Device or resource busy
Aug 3 17:13:08 ashish-Inspiron-7570 kernel: [230728.120859] input: Soundcore Life Note (AVRCP) as /devices/virtual/input/input117
Aug 3 17:13:08 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) config/udev: Adding input device Soundcore Life Note (AVRCP) (/dev/input/event22)
Aug 3 17:13:08 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (**) Soundcore Life Note (AVRCP): Applying InputClass "libinput keyboard catchall"
Aug 3 17:13:08 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) Using input driver 'libinput' for 'Soundcore Life Note (AVRCP)'
Aug 3 17:13:08 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[2172]: (II) config/udev: Adding input device Soundcore Life Note (AVRCP) (/dev/input/event22)
Aug 3 17:13:08 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[2172]: (**) Soundcore Life Note (AVRCP): Applying InputClass "libinput keyboard catchall"
Aug 3 17:13:08 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[2172]: (II) Using input driver 'libinput' for 'Soundcore Life Note (AVRCP)'
Aug 3 17:13:08 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) systemd-logind: got fd for /dev/input/event22 13:86 fd 63 paused 0
Aug 3 17:13:08 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (**) Soundcore Life Note (AVRCP): always reports core events
Aug 3 17:13:08 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (**) Option "Device" "/dev/input/event22"
Aug 3 17:13:08 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (**) Option "_source" "server/udev"
Aug 3 17:13:08 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) event22 - Soundcore Life Note (AVRCP): is tagged by udev as: Keyboard
Aug 3 17:13:08 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) event22 - Soundcore Life Note (AVRCP): device is a keyboard
Aug 3 17:13:08 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) event22 - Soundcore Life Note (AVRCP): device removed
Aug 3 17:13:08 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (**) Option "config_info" "udev:/sys/devices/virtual/input/input117/event22"
Aug 3 17:13:08 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) XINPUT: Adding extended input device "Soundcore Life Note (AVRCP)" (type: KEYBOARD, id 22)
Aug 3 17:13:08 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (**) Option "xkb_model" "pc105"
Aug 3 17:13:08 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (**) Option "xkb_layout" "us"
Aug 3 17:13:08 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (WW) Option "xkb_variant" requires a string value
Aug 3 17:13:08 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (WW) Option "xkb_options" requires a string value
Aug 3 17:13:08 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[2172]: (II) systemd-logind: got fd for /dev/input/event22 13:86 fd 31 paused 1
Aug 3 17:13:08 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[2172]: (II) systemd-logind: releasing fd for 13:86
Aug 3 17:13:08 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) event22 - Soundcore Life Note (AVRCP): is tagged by udev as: Keyboard
Aug 3 17:13:08 ashish-Inspiron-7570 /usr/lib/gdm3/gdm-x-session[7877]: (II) event22 - Soundcore Life Note (AVRCP): device is a keyboard
Aug 3 17:13:08 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Aug 3 17:13:08 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Aug 3 17:13:08 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Aug 3 17:13:08 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Aug 3 17:13:08 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Aug 3 17:13:08 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Aug 3 17:13:08 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Aug 3 17:13:08 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Aug 3 17:13:08 ashish-Inspiron-7570 gnome-shell[8535]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Aug 3 17:13:10 ashish-Inspiron-7570 bluetoothd[1365]: /org/bluez/hci0/dev_8C_85_80_2C_F2_35/sep2/fd25: fd(38) ready
Aug 3 17:13:10 ashish-Inspiron-7570 rtkit-daemon[2321]: Supervising 0 threads of 0 processes of 0 users.
Aug 3 17:13:10 ashish-Inspiron-7570 rtkit-daemon[2321]: Successfully made thread 686940 of process 7796 owned by '1000' RT at priority 5.
Aug 3 17:13:10 ashish-Inspiron-7570 rtkit-daemon[2321]: Supervising 1 threads of 1 processes of 1 users.
Issue 3
:耳机有接收器和源,可与其他设备配合使用。但是,将它们连接到 Ubuntu 时,只有输出有效。我无法使用耳机中的麦克风。
在 GUI 中,耳机的输入选项没有列出。它只在输出设备中列出:
我认为这可能是因为 A2DP 配置。即使从上面的日志中,我们也可以看到a2dp-source profile connect failed
。从 GUI 本身,我尝试将 A2DP 更改为 HSP/HFP,但发现它无法切换配置文件:
Aug 3 17:14:08 ashish-Inspiron-7570 pulseaudio[7796]: Refused to switch profile to headset_head_unit: Not connected
因此,我需要帮助解决上述问题:
- 蓝牙耳机可以自动连接Ubuntu。
- 耳机播放出的声音中间没有裂痕。
- 我可以同时利用耳机的输入和输出,而不仅仅是输出。
我可以采取什么步骤来修复或调试这些问题?
编辑1:
输出lspci | grep Audio
:
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)