darkhz / bluetuith

A TUI bluetooth manager for Linux.
MIT License
850 stars 21 forks source link

Cannot connect bluetooth mouse #59

Closed WhyNotHugo closed 3 months ago

WhyNotHugo commented 3 months ago

I'm having issues connecting an MX Master 3B to my host.

Scenario A

  1. Set mouse to pairing mode
  2. Open bluetuith
  3. Press s to scan
  4. Select the mouse from bluetuith's UI, c to connect

Mouse connects, and immediately disconnects.

Reset

Select the device, remove it from the list, power cycle it and put it in pairing mode again.

Scenario B

  1. Set mouse to pairing mode
  2. Open bluetuith
  3. Press s to scan
  4. Select the mouse from bluetuith's UI, press t to trust and press c to connect

Mouse connects, and immediately disconnects, the reconnected again and disconnects, ad infinitum.


I see this in the system logs:

[Apr 01 17:33:29] daemon bluetoothd[4180]: src/service.c:service_accept() input-hog profile accept failed for XX:XX:XX:XX:XX:XX 

I think that the mouse sends some kind of pairing request/code. I'm not sure how to debug this further.

darkhz commented 3 months ago

Can you try with any other Bluetooth manager, and see if it pairs? And if it does, can you send a snippet of the logs for that particular device as well?

WhyNotHugo commented 3 months ago

Turns out that I need the uhid module loaded.

This workaround works for me: https://github.com/bluez/bluez/issues/531#issuecomment-1913058753

WhyNotHugo commented 3 months ago

I don't think that bluetuith can do anything about unloaded kernel modules, so closing.