![J-800L(耳机可用作键盘)](https://linux22.com/image/879772/J-800L%EF%BC%88%E8%80%B3%E6%9C%BA%E5%8F%AF%E7%94%A8%E4%BD%9C%E9%94%AE%E7%9B%98%EF%BC%89.png)
我有一个蓝牙耳机,它被检测为键盘。如何在 Ubuntu 中更改其设备类别?
答案1
所以我遇到了同样的事情,我使用 Kali Linux,我所做的就是从正常工作的蓝牙设备复制文件
sudo nano /var/lib/bluetooth/EB:D4:3D:F5:C3:32/1C:6B:37:D2:D3:4B/info
J-800L(耳机可用作键盘)
我改变了课程和服务
Name=J-800L
Class=0x302540 # is the class of a KeyBoard
Services=00001101-0000-1000-8000-00805f9b34fb;0000110b-0000-1000-8000-00805f9b34fb;0000110c-0000-1000-8000-00805f9b34fb;0000110d-0000-1000-8000-00805f9b34fb;0000110e-0000-1000-8000-00805f9b34fb;0000111e-0000-1000-8000-00805f9b34fb;00001124-0000-1000-8000-00805f9b34fb;00001200-0000-1000-8000-00805f9b34fb;
# Services of KeyBoard
复制自
sudo nano /var/lib/bluetooth/EB:D4:3D:F5:C3:32/1B:6E:22:C3:F3:8B/info
Q5(工作耳机)
Name=Q5
Class=0x240404 # is the class of an Headset
Services=0000110b-0000-1000-8000-00805f9b34fb;0000110c-0000-1000-8000-00805f9b34fb;0000110d-0000-1000-8000-00805f9b34fb;0000110e-0000-1000-8000-00805f9b34fb;0000111e-0000-1000-8000-00805f9b34fb;
# Services of an Headset
如果你没有可用的耳机,你可以使用我为 Q5 提供的耳机
然后运行:
sudo systemctl restart bluetooth
或者
sudo systemctl start bluetooth.service
我希望这可以帮到你