我已经安装了 Ubuntu 20.04,但蓝牙不适合我。但如果我从 USB 启动它,它可以在实时会话中工作。任何人都可以帮助我吗?
systemctl | grep -i blue
输出:
sys-devices-pci0000:00-0000:00:14.0-usb1-1\x2d14-1\x2d14:1.0-bluetooth-hci0.device loaded active plugged /sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0
sys-subsystem-bluetooth-devices-hci0.device loaded active plugged /sys/subsystem/bluetooth/devices/hci0
bluetooth.service loaded active running Bluetooth service
bluetooth.target loaded active active Bluetooth
dmesg | grep -i blue
输出:
[ 2.309059] Bluetooth: Core ver 2.22
[ 2.309071] Bluetooth: HCI device and connection manager initialized
[ 2.309073] Bluetooth: HCI socket layer initialized
[ 2.309074] Bluetooth: L2CAP socket layer initialized
[ 2.309076] Bluetooth: SCO socket layer initialized
[ 3.413708] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 3.413710] Bluetooth: BNEP filters: protocol multicast
[ 3.413713] Bluetooth: BNEP socket layer initialized
[ 4.342171] Bluetooth: hci0: command 0xfc05 tx timeout
[ 4.342173] Bluetooth: hci0: Reading Intel version information failed (-110)
[ 193.048690] Bluetooth: hci0: command 0xfc05 tx timeout
[ 193.048749] Bluetooth: hci0: Reading Intel version information failed (-110)
lspci
输出:
00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 07)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 07)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH Thermal Controller (rev 10)
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
00:14.3 Network controller: Intel Corporation Wireless-AC 9560 [Jefferson Peak] (rev 10)
00:15.0 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH Serial IO I2C Controller #0 (rev 10)
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
00:17.0 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 10)
00:1d.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #9 (rev f0)
00:1d.5 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #14 (rev f0)
00:1d.6 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #15 (rev f0)
00:1f.0 ISA bridge: Intel Corporation HM470 Chipset LPC/eSPI Controller (rev 10)
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 3 GB Max-Q] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)
02:00.0 Non-Volatile memory controller: Phison Electronics Corporation Device 5008 (rev 01)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 16)
04:00.0 Unassigned class [ff00]: Alcor Micro AU6625 PCI-E Flash card reader controller
lspci -k -s 00:14.3
输出:
00:14.3 Network controller: Intel Corporation Wireless-AC 9560 [Jefferson Peak] (rev 10)
DeviceName: WLAN
Subsystem: Intel Corporation Wireless-AC 9560 [Jefferson Peak]
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi
蓝牙控制:
[bluetooth]# list
[bluetooth]# power on
No default controller available
rfkill list all
输出:
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
lsusb
输出:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 04f2:b627 Chicony Electronics Co., Ltd HP Wide Vision HD Camera
Bus 001 Device 003: ID 8087:0aaa Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
我遇到了同样的问题,从 Windows 热启动切换到 Ubuntu 后,蓝牙无法工作。我在这里关注了 Ubuntu 错误报告,蓝牙功能齐全。使用以下命令:
sudo rmmod btusb
sudo modprobe btusb
我在 ubuntu 20.04 上遇到了同样的蓝牙问题,并通过这种方式修复
全部注释并添加这一行
重启并打开
如果还是不行,试试这个
如果还是不行,试试这个
/etc/default/grub
用这个值更新更新 grub
然后
reboot
享受你的音乐蓝牙 v5 更新
蓝牙v5固件解决方案源码
如果您从命令获取信息:
sudo dmesg | grep Bluetooth
尝试下载固件并安装
我也遇到过这个问题。对我来说,这个错误与 python 有关。问题出在 3.7 版上。对我来说,以下工作:
我卸载了蓝牙:
然后将您的 python 版本更改为 3.6 或 3.8:
如果此命令不起作用,您将需要运行:
然后,重新运行命令以更改 python 版本。
要安装蓝牙,必须有 python-gi,为此,执行以下命令:
之后,再次安装蓝牙:
这些是我遵循的步骤并且它有效,但也许只是改变 python 的版本就可以了。当我尝试返回 python 3.7 时,蓝牙再次停止工作。我不知道如何解决这个问题,我刚刚停止使用 3.7 版。
希望这可以帮助。
我在 Ubuntu 20.04 和 Windows 7 之间双启动。
我的问题是即使我在蓝牙设置中打开了蓝牙服务也无法启动。
以前的评论对我不起作用。这是起作用的:
要启动蓝牙服务,请输入:
这将在会话期间启用蓝牙。
要在启动进入 Ubuntu 时自动启动蓝牙服务,请输入:
我在配对 XBOX ONE 控制器时遇到了麻烦(它在 19.10 中没有任何问题)。解决方案是禁用蓝牙 ERTM ( https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1750146 )
经过一番研究,我发现了这个错误报告。此链接报告的错误类似于我的系统发生的错误。当我从 Windows 热重启到 Ubuntu 时会发生这种情况,对我有用的解决方案是每当我在 Windows 上使用蓝牙设备时进行冷重启。
雷桑德罗 (redsandro) 在 2020-04-17 上写道:
在将 Kubuntu 更新到 20.04 后,我遇到了同样的问题,尝试重新安装几次无济于事。然后我注意到在我登录之前蓝牙没有失败(白色 LED),经过一些测试后发现禁用蓝牙设置中的“启用蓝牙集成”并重新加载驱动程序:
使它再次工作,明显的警告是无法将文件发送到计算机,配对设备并向它们发送文件仍然可以工作。
我有一个鼠标罗技 M535。18.04 工作正常。升级到 20.04 后开始出现随机问题。工作正常约 10-15 秒,然后断开连接。仅在重新启动后重新连接。我只有 Ubuntu(不是双重或 Windows)。
我的解决方案是: 如何在 Ubuntu 18.04 上禁用 USB 自动挂起? 尽管 USB 自动挂起是一项旨在延长电池寿命的功能,但其 18.04 默认为“启用”,无论安装 Ubuntu 的设备是否有电池。
此外,为了使自动挂起更有帮助而不是有害,USB 设备的驱动程序似乎需要支持自动挂起。因此,所有帖子(包括您的帖子)都试图禁用“功能”。
在我的设备上的 18.04 中,我编写了在 /etc/default/grub 中永久禁用自动挂起的脚本,如下所示:
该
sed
表达式只是在“ usbcore.autosuspend=-1 ”前面加上一个尾随空格,以确保它始终与您的特定GRUB_CMDLINE_LINUX_DEFAULT选项的外观相匹配。如果您
cat /sys/module/usbcore/parameters/autosuspend
在重新启动后执行,您会注意到“-1”首选项(禁用)被保留。就我而言,与 Spotify 的一个不良连接(我在另一个房间)禁用了蓝牙,而设置菜单或 hcitool dev 上没有蓝牙设备。没有一种解决方法对我有用。我卸载了 Spotify,一切都很好。
我的 HP pavilion x360(Windows 10 双启动)也遇到了同样的问题。我所做的只是登录 Windows 10 并从 HP 网站更新我的蓝牙驱动程序,然后当我将系统重新启动到 Ubuntu 20.04 时,我的问题得到了解决。