toy / blueutil

CLI for bluetooth on OSX: power, discoverable state, list, inquire devices, connect, info, …
https://github.com/toy/blueutil
Other
969 stars 52 forks source link

‘blueutil --paired’ Failed to display the connected mouse. #82

Open Tinyu-Zhao opened 8 months ago

Tinyu-Zhao commented 8 months ago

The model number of the mouse is MX Anywhere 2S SCR-20231019-twoc

toy commented 8 months ago

Does it show up in the list of connected (blueutil --connected) or recent (blueutil --recent)? Or can you get information about it using blueutil --info 'MX Anywhere 2S' and is it listed as paired?

Tinyu-Zhao commented 8 months ago

I don't know why this situation has occurred.

image
toy commented 8 months ago

Can you try giving bluetooth permission (Settings > Privacy > Bluetooth) to your terminal and relaunching it?

Tinyu-Zhao commented 8 months ago

Can you try giving bluetooth permission (Settings > Privacy > Bluetooth) to your terminal and relaunching it?

Thank you for your help, after this operation again it is normal.

But before authorizing the terminal, using blueutil to switch on and off bluetooth works, other bluetooth devices can be detected, but only this logitech mouse can't be detected, it's really a bit strange.

toy commented 8 months ago

It is not the first report about problems caused by bluetooth privacy setting, unfortunately I still didn't see it properly documented somewhere (so still don't know why only some devices are affected). Also privacy constraining works in OSX only on the top application level, so unless blueutil is started directly by launchd (so not terminal/automator/launcher/keyboard shortcut executor), its constraints come from launching application and allowing something needed for one tool in the app makes it allowed for everything launched from that app.