Tot*_*tor 10 linux bluetooth usb-device
有时,当我将系统设置为睡眠状态(挂起到 RAM)然后恢复时,将不再找到蓝牙适配器。如果我重新启动,它会再次工作。
这是(内部)蓝牙适配器,如下所示lsusb:
# lsusb | grep 8087
Bus 001 Device 006: ID 8087:0aaa Intel Corp. Bluetooth 9460/9560 Jefferson Peak (JfP)
Run Code Online (Sandbox Code Playgroud)
我能够扫描、连接和使用我的蓝牙设备。
lsusb不再显示上述设备,并kern.log说:
usb usb1-port10: Cannot enable. Maybe the USB cable is bad?
usb usb1-port10: Cannot enable. Maybe the USB cable is bad?
usb usb1-port10: attempt power cycle
usb 1-10: new low-speed USB device number 71 using xhci_hcd
usb 1-10: Device not responding to setup address.
usb 1-10: Device not responding to setup address.
usb 1-10: device not accepting address 71, error -71
usb 1-10: new low-speed USB device number 72 using xhci_hcd
usb 1-10: Device not responding to setup address.
usb 1-10: Device not responding to setup address.
usb 1-10: device not accepting address 72, error -71
usb usb1-port10: unable to enumerate USB device
Run Code Online (Sandbox Code Playgroud)
端口 10 是连接到蓝牙适配器的端口。
systemctl restart bluetooth.service,modprobe -r btusb && modprobe btusb,bluetoothctl power on: 说No default controller available,rfkill unblock bluetooth,即使它显示蓝牙设备并接受命令。如何在不重新启动整个计算机的情况下使蓝牙再次正常工作?
Tot*_*tor 11
可能有点矫枉过正,但确实有效:
获取总线1“root hub”的PCI ID(不知道为什么会报错):
# lsusb -v -s1:1 | grep iSerial
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
iSerial 1 0000:00:14.0
Run Code Online (Sandbox Code Playgroud)
并使用它来解除绑定(将断开所有相关的 USB 设备)并重新绑定:
# lsusb -v -s1:1 | grep iSerial
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
iSerial 1 0000:00:14.0
Run Code Online (Sandbox Code Playgroud)
请注意,我的所有(内部和外部)USB 设备都连接到此集线器:外部鼠标、外部键盘、内部网络摄像头、内部指纹传感器...在此过程中所有设备都将(暂时)断开连接。
之后kern.log说:
usb 1-10: new full-speed USB device number 6 using xhci_hcd
usb 1-10: New USB device found, idVendor=8087, idProduct=0aaa, bcdDevice= 0.02
usb 1-10: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[...]
Bluetooth: hci0: Bootloader revision 0.1 build 42 week 52 2015
[...]
Bluetooth: hci0: Firmware loaded in 1643271 usecs
Bluetooth: hci0: Waiting for device to boot
Bluetooth: hci0: Device booted in 13788 usecs
Run Code Online (Sandbox Code Playgroud)
和lsusb | grep 8087:
Bus 001 Device 006: ID 8087:0aaa Intel Corp.
Run Code Online (Sandbox Code Playgroud)
并且可以再次使用蓝牙!
虽然它比重新启动更好,但您知道另一种“侵入性较小”的解决方案吗?
| 归档时间: |
|
| 查看次数: |
14064 次 |
| 最近记录: |