Linux command
hid2hci 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Switch device to HCI mode
sudo hid2hci --mode=hci --method=csr --devpath=[/sys/devices/...]
Switch Dell device to HCI mode
sudo hid2hci --mode=hci --method=dell --devpath=[/sys/devices/...]
Restore device to HID mode
sudo hid2hci --mode=hid --method=csr --devpath=[/sys/devices/...]
说明
hid2hci switches Bluetooth USB dongles between HID and HCI modes. Some devices boot in HID mode and need switching to function as Bluetooth controllers. The tool is needed for certain USB Bluetooth adapters that start in keyboard/mouse mode. After switching, bluez can use the device.
参数
- --mode _MODE_
- Target mode to switch the device to: hid or hci.
- --method _METHOD_
- Vendor-specific switching method (csr, csr2, logitech-hdi, dell).
- --devpath _PATH_
- Device path in /sys.
- --help
- Display help information.
FAQ
What is the hid2hci command used for?
hid2hci switches Bluetooth USB dongles between HID and HCI modes. Some devices boot in HID mode and need switching to function as Bluetooth controllers. The tool is needed for certain USB Bluetooth adapters that start in keyboard/mouse mode. After switching, bluez can use the device.
How do I run a basic hid2hci example?
Run `sudo hid2hci --mode=hci --method=csr --devpath=[/sys/devices/...]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --mode _MODE_ do in hid2hci?
Target mode to switch the device to: hid or hci.