昨天,我在我的惠普笔记本电脑15-dy2xxx上安装了Ubuntu22.04.1LTS。在我用Windows 10、Ubuntu 16.04和Ubuntu 20.04三次引导各种依赖操作系统的软件之前,这一次我选择了“擦除磁盘并安装Ubuntu”选项来保持一切清洁。我通过在ubuntu.com上使用Rufus创建一个可引导的USB,按照官方教程:https://ubuntu.com/tutorials/install-ubuntu-desktop和https://ubuntu.com/tutorials/create-a-usb-stick-on-windows,安装了一个ISO文件。安装和安装进行得比较顺利。
但今天我第一次尝试使用蓝牙,在“设置”的蓝牙部分,我看到的只是“找不到蓝牙--插上插头来使用蓝牙”这句话。无法单击启用蓝牙的开关。我在Ubuntu20.04上很好地使用了蓝牙,自从重新安装新的Ubuntu版本以来,我只遇到过一些问题。
我在网上找到的很多答案都是针对较早版本的Ubuntu,这似乎没有什么帮助,因为我对以前的安装没有任何问题。
我得到的最接近解决方案的方法如下。当我运行这些状态命令时,我得到了以下输出:
$ dmesg | grep -i blue
$ sudo systemctl status bluetooth.service
○ bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:bluetoothd(8)
Aug 31 19:39:03 zach-HP-Laptop-15-dy2xxx systemd[1]: Condition check resulted in Bluetooth service being skipped.
然后,我按顺序运行这些命令(据我所知,任何其他顺序都会导致错误消息):
$ sudo modprobe btusb
$ sudo rmmod btusb
$ sudo systemctl start bluetooth
前一组命令的输出更改为:
$ dmesg | grep -i blue
[ 161.311841] Bluetooth: Core ver 2.22
[ 161.311868] NET: Registered PF_BLUETOOTH protocol family
[ 161.311868] Bluetooth: HCI device and connection manager initialized
[ 161.311871] Bluetooth: HCI socket layer initialized
[ 161.311873] Bluetooth: L2CAP socket layer initialized
[ 161.311875] Bluetooth: SCO socket layer initialized
[ 170.442648] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 170.442651] Bluetooth: BNEP filters: protocol multicast
[ 170.442654] Bluetooth: BNEP socket layer initialized
$ sudo systemctl status bluetooth.service
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2022-08-31 20:10:23 PDT; 2min 17s ago
Docs: man:bluetoothd(8)
Main PID: 3482 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 9029)
Memory: 1.8M
CPU: 29ms
CGroup: /system.slice/bluetooth.service
└─3482 /usr/lib/bluetooth/bluetoothd
Aug 31 20:10:23 zach-HP-Laptop-15-dy2xxx systemd[1]: Starting Bluetooth service...
Aug 31 20:10:23 zach-HP-Laptop-15-dy2xxx bluetoothd[3482]: Bluetooth daemon 5.64
Aug 31 20:10:23 zach-HP-Laptop-15-dy2xxx systemd[1]: Started Bluetooth service.
Aug 31 20:10:23 zach-HP-Laptop-15-dy2xxx bluetoothd[3482]: Starting SDP server
Aug 31 20:10:23 zach-HP-Laptop-15-dy2xxx bluetoothd[3482]: Bluetooth management interface 1.21 initialized
这意味着问题已经解决了,或者至少部分解决了。不幸的是,我在Settings菜单中有相同的消息,如果我重新启动我的笔记本电脑(状态命令切换回第一组输出),这些更改似乎会被恢复。我对这个软件不太了解,不知道从现在起该怎么做。
我尝试过的其他一些事情(有些是重叠的):
wget
时出错。sudo hciconfig hci0 down
给出了输出Can't get device info: No such device
。我试着寻找解决方案,但它们似乎都是关于树莓Pis或不同的发行版。建议的各种命令的输出:
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ lspci -knn | grep Net -A3
0000:01:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]
DeviceName: Realtek Wireless LAN + BT
Subsystem: Hewlett-Packard Company RTL8821CE 802.11ac PCIe Wireless Network Adapter [103c:884d]
Kernel driver in use: rtw_8821ce
Kernel modules: rtw88_8821ce
10000:e0:1d.0 PCI bridge [0604]: Intel Corporation Tiger Lake-LP PCI Express Root Port #9 [8086:a0b0] (rev 20)
$ lsusb;
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 04f3:0c00 Elan Microelectronics Corp. ELAN:ARM-M4
Bus 001 Device 002: ID 0408:5365 Quanta Computer, Inc. HP TrueVision HD Camera
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
$ rfkill list all
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
$ ls -lah /etc/modprobe.d/
total 60K
drwxr-xr-x 2 root root 4.0K Aug 31 18:55 .
drwxr-xr-x 140 root root 12K Aug 31 17:45 ..
-rw-r--r-- 1 root root 2.5K Feb 22 2021 alsa-base.conf
-rw-r--r-- 1 root root 154 Oct 7 2021 amd64-microcode-blacklist.conf
-rw-r--r-- 1 root root 325 Aug 17 2021 blacklist-ath_pci.conf
-rw-r--r-- 1 root root 1.5K Aug 17 2021 blacklist.conf
-rw-r--r-- 1 root root 210 Aug 17 2021 blacklist-firewire.conf
-rw-r--r-- 1 root root 677 Aug 17 2021 blacklist-framebuffer.conf
-rw-r--r-- 1 root root 156 Feb 22 2021 blacklist-modem.conf
lrwxrwxrwx 1 root root 41 Aug 30 18:45 blacklist-oss.conf -> /lib/linux-sound-base/noOSS.modprobe.conf
-rw-r--r-- 1 root root 583 Aug 17 2021 blacklist-rare-network.conf
-rw-r--r-- 1 root root 154 May 15 23:44 intel-microcode-blacklist.conf
-rw-r--r-- 1 root root 347 Aug 17 2021 iwlwifi.conf
-rw-r--r-- 1 root root 23 Sep 26 2017 libopenni-sensor-pointclouds0.conf
$ sudo /etc/init.d/bluetooth restart
Restarting bluetooth (via systemctl): bluetooth.service.
$ hcitool scan
Device is not available: No such device
$ sudo hciconfig hci0 inqmode 0
Can't get device info: No such device
$ hcitool dev
Devices:
在我看来,司机(S)找不到蓝牙适配器,但我不知道该怎么办。
发布于 2022-09-02 03:05:47
好的,刚才我启动了我的电脑后,电池失效,蓝牙设置已经出现。“设置”中的“蓝牙”菜单显示的是附近的设备,而不是“无蓝牙发现”消息,并将蓝牙部分添加到系统菜单中。当我尝试在线解决方案时,我已经重新启动和关闭了我的电脑好几次,但它们直到现在才起作用。
我在上面尝试过的状态命令显示蓝牙设备现在处于活动状态:
$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 04f3:0c00 Elan Microelectronics Corp. ELAN:ARM-M4
Bus 001 Device 002: ID 0408:5365 Quanta Computer, Inc. HP TrueVision HD Camera
Bus 001 Device 004: ID 0bda:b00e Realtek Semiconductor Corp. Bluetooth Radio
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
$ rfkill list all
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
2: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
$ hcitool dev
Devices:
hci0 14:13:33:2D:46:A4
我的问题已经解决了,但不幸的是,我并不完全确定解决方案是什么。我最好的猜测是,我尝试过的最后一个建议(启用Realtek WiFi驱动程序)修复了它:https://askubuntu.com/a/1161750/1627995。
我遵循的具体步骤是打开“软件和更新”应用程序,转到“其他驱动程序”,为Realtek 8821 C PCIe Wi驱动程序选择“使用DKMS源的rtl8821ce-dkms (开源)”,并单击“应用更改”。
重新启动在当时没有任何效果,但现在似乎已经奏效了。也许在安装了驱动程序之后,我的笔记本电脑需要关机并重新打开,而不仅仅是重新启动。我在网上发现的一些建议表明,关闭有时比重新启动更有效,但我在更换司机之后忘记尝试了。
https://askubuntu.com/questions/1426860
复制相似问题