AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题 / 1419752
Accepted
Radoslaw PHL
Radoslaw PHL
Asked: 2019-04-01 15:16:20 +0800 CST2019-04-01 15:16:20 +0800 CST 2019-04-01 15:16:20 +0800 CST

索尼WH-1000XMX2蓝牙耳机无法自动正确连接

  • 772

很抱歉提出一个笨拙的问题,但我的耳机有问题,我一直在寻找答案有一段时间了 - 但无济于事。

当我的耳机自动连接到我的笔记本电脑时(例如,当我打开耳机并且笔记本电脑已经在运行时)声音设置为“单声道”。当我重新启动整个蓝牙服务时 - 同样的事情发生了。

sudo service bluetooth restart

当我断开耳机并再次手动连接(在 GUI 中)时,它可以很好地处理立体声和默认设置的高保真度。

我试过这样做,也许这个命令的输出可能对你有帮助。连接不良时:

journalctl -f
-- Logs begin at Tue 2019-01-29 03:11:02 NZDT. --
Apr 01 12:00:55 Yeti-Book gsd-media-keys[3341]: Unable to get default sink
Apr 01 12:01:08 Yeti-Book rtkit-daemon[1367]: Supervising 3 threads of 1 processes of 1 users.
Apr 01 12:01:08 Yeti-Book kernel: Bluetooth: hci0: SCO packet for unknown connection handle 0
Apr 01 12:01:08 Yeti-Book kernel: Bluetooth: hci0: SCO packet for unknown connection handle 0
Apr 01 12:01:08 Yeti-Book kernel: Bluetooth: hci0: SCO packet for unknown connection handle 0
Apr 01 12:01:08 Yeti-Book rtkit-daemon[1367]: Successfully made thread 14688 of process 3178 (n/a) owned by '1000' RT at priority 5.
Apr 01 12:01:08 Yeti-Book rtkit-daemon[1367]: Supervising 4 threads of 1 processes of 1 users.
Apr 01 12:01:08 Yeti-Book kernel: Bluetooth: hci0: SCO packet for unknown connection handle 0
Apr 01 12:01:08 Yeti-Book gsd-media-keys[3341]: Unable to get default source
Apr 01 12:01:09 Yeti-Book kernel: Bluetooth: hci0: last event is not cmd complete (0x0f)
Apr 01 12:01:25 Yeti-Book kernel: Bluetooth: hci0: last event is not cmd complete (0x0f)
Apr 01 12:01:41 Yeti-Book kernel: Bluetooth: hci0: last event is not cmd complete (0x0f)
Apr 01 12:01:57 Yeti-Book kernel: Bluetooth: hci0: last event is not cmd complete (0x0f)

正确连接后:

journalctl -f
-- Logs begin at Tue 2019-01-29 03:11:02 NZDT. --
Apr 01 13:10:43 Yeti-Book kernel:  kthread+0x121/0x140
Apr 01 13:10:43 Yeti-Book kernel:  ? process_one_work+0x410/0x410
Apr 01 13:10:43 Yeti-Book kernel:  ? kthread_create_worker_on_cpu+0x70/0x70
Apr 01 13:10:43 Yeti-Book kernel:  ? do_syscall_64+0x73/0x130
Apr 01 13:10:43 Yeti-Book kernel:  ? SyS_exit+0x17/0x20
Apr 01 13:10:43 Yeti-Book kernel:  ret_from_fork+0x35/0x40
Apr 01 13:10:43 Yeti-Book kernel: Code: 00 00 00 75 26 48 8b 7b 08 e8 1a eb a2 ff 48 8b bb 08 92 00 00 48 89 83 70 a9 00 00 be 08 00 00 00 e8 22 5a 08 00 31 c0 5b 5d c3 <0f> 0b eb d6 66 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 48 89 
Apr 01 13:10:43 Yeti-Book kernel: ---[ end trace 34e0ddc48eba8d61 ]---
Apr 01 13:10:43 Yeti-Book kernel: amdgpu 0000:01:00.0: GPU pci config reset
Apr 01 13:10:44 Yeti-Book gnome-shell[3153]: JS ERROR: Exception in callback for signal: activate: Error: Error invoking IBus.set_global_engine_async: Expected function for callback argument callback, got undefined
                                             setEngine@resource:///org/gnome/shell/misc/ibusManager.js:207:9
                                             wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
                                             activateInputSource@resource:///org/gnome/shell/ui/status/keyboard.js:490:13
                                             wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
                                             _emit@resource:///org/gnome/gjs/modules/signals.js:128:27
                                             activate@resource:///org/gnome/shell/ui/status/keyboard.js:65:9
                                             wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
                                             _inputSourcesChanged@resource:///org/gnome/shell/ui/status/keyboard.js:620:13
                                             wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
                                             reload@resource:///org/gnome/shell/ui/status/keyboard.js:369:9
                                             wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
                                             _ibusSetContentType@resource:///org/gnome/shell/ui/status/keyboard.js:691:9
                                             wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
                                             _emit@resource:///org/gnome/gjs/modules/signals.js:128:27
                                             _setContentType@resource:///org/gnome/shell/misc/ibusManager.js:183:9
                                             wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22

我正在寻找完整的问题解决方案(问题停止存在)或足够快的解决方法(如何使用命令行再次断开和连接设备)。

笔记本电脑是 HP Elitebook 850 G3 系统:Ubuntu 18.04

radoslaw@Yeti-Book:/ $ cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.2 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.2 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic


radoslaw@Yeti-Book:/ $ uname -a
Linux Yeti-Book 4.15.0-46-generic #49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

干杯!


编辑: dmesg连接不良的输出

[516028.247434] Bluetooth: hci0: SCO packet for unknown connection handle 0
[516028.257416] Bluetooth: hci0: SCO packet for unknown connection handle 0
[516028.257436] Bluetooth: hci0: SCO packet for unknown connection handle 0

重新连接后又出现了两条线:

[516028.247412] Bluetooth: hci0: SCO packet for unknown connection handle 0
[516028.247434] Bluetooth: hci0: SCO packet for unknown connection handle 0
[516028.257416] Bluetooth: hci0: SCO packet for unknown connection handle 0
[516028.257436] Bluetooth: hci0: SCO packet for unknown connection handle 0
[516111.185452] Bluetooth: hci0: last event is not cmd complete (0x0f)
[516120.375748] input: 70:26:05:89:03:B8 as /devices/virtual/input/input45
linux audio bluetooth
  • 1 1 个回答
  • 566 Views

1 个回答

  • Voted
  1. Best Answer
    WrRaThY
    2019-04-03T18:23:18+08:002019-04-03T18:23:18+08:00

    作为解决方法,您可以使用以下方法:

    1. 安装bluetoothctl
    2. sudo bluetoothctl
    3. 这应该导致类似的结果:
    # paired-devices 
    Device CB:B2:CG:26:FD:80 <DEVICE_1_NAME>
    Device 70:26:03:89:03:B8 <DEVICE_2_NAME>
    
    1. 复制“设备”和设备名称之间的字符串(例如 70:26:03:89:03:B8)
    2. 将其粘贴到以下脚本中
    sudo bluetoothctl << ANSWERS
    disconnect 70:26:03:89:03:B8
    ANSWERS
    
    sleep 5s
    
    sudo bluetoothctl << ANSWERS
    connect 70:26:03:89:03:B8
    ANSWERS
    

    并且您的设备应该重新连接。
    中间的睡眠是为了驱动程序完成断开连接(否则你会得到错误)

    希望有帮助:)

    干杯

    • 2

相关问题

  • 如何在不先请求接收文件的情况下通过蓝牙接收文件?

  • 以 root 身份运行 docker 容器

  • 如何在域和 Linux 活动目录中启用指纹传感器

  • 如何在CentOS 7 中将Ctrl+C 永久更改为Ctrl+K?

  • 为什么我不能将文件从 Android 发送到 Windows 10?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    Windows 10 服务称为 AarSvc_70f961。它是什么,我该如何禁用它?

    • 2 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Marko Smith

    ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] 证书验证失败:无法获取本地颁发者证书 (_ssl.c:1056)

    • 4 个回答
  • Marko Smith

    我如何知道 Windows 安装在哪个驱动器上?

    • 6 个回答
  • Martin Hope
    Albin 支持结束后如何激活 WindowsXP? 2019-11-18 03:50:17 +0800 CST
  • Martin Hope
    fixer1234 “HTTPS Everywhere”仍然相关吗? 2019-10-27 18:06:25 +0800 CST
  • Martin Hope
    Kagaratsch Windows 10 删除大量小文件的速度非常慢。有什么办法可以加快速度吗? 2019-09-23 06:05:43 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    Inter Sys Ctrl+C 和 Ctrl+V 是如何工作的? 2019-05-15 02:51:21 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve