blueutil icon indicating copy to clipboard operation
blueutil copied to clipboard

`--inquiry` not working, but Bluetooth Preferences MacOS GUI correctly discovering mouse - Catalina & Big Sur

Open cristiano-belloni opened this issue 2 years ago • 14 comments

I'm trying to pair one of my computer with my Logitech MX Master 2S.

  • If I set the mouse on pairing mode and run blueutil --inquiry repeatedly nothing is found (command returns 0, "success").
  • If I go to my Bluetooth Preferences GUI, instead, the mouse is correctly discovered (see images below)
  • If I try to connect with --connect to the address given by the Preferences GUI, it doesn't connect (return status: 1). Clicking on the mouse in the Preferences works, though.

image

image

This happens with blueutil 2.9.0, installed via brew on Catalina (MacBook Pro (Retina, 15-inch, Mid 2015)) and Big Sur (MacBook Pro (16-inch, 2019).

cristiano-belloni avatar Nov 04 '21 15:11 cristiano-belloni

Same issue here. I couldn't find the Bluetooth device from the --inquiry command, but the device was visible from the Preference UI.

image

CHBrianLiu avatar Nov 14 '21 15:11 CHBrianLiu

Thank you both for reporting, do you have possibility to check same actions with different bluetooth device and to check same device with different computer?

toy avatar Nov 14 '21 23:11 toy

Hi @toy, thanks for checking this. I think I can help test on another device.

I've tried on another Mac, MacBook Pro (13-inch, M1, 2020), which runs MacOS 11.4. My Magic Keyboard (not the same keyboard I reported above, sorry that I don't have it with me now) can be detected by blueutil. And all the peripherals presented in the System Preferences are in the list as well.

If there's anything that can help you troubleshoot, I'm willing to provide more information or logs. Thanks for the kind help.

CHBrianLiu avatar Nov 15 '21 01:11 CHBrianLiu

@CHBrianLiu Thank you for checking, this means that it at least doesn't affect all systems running 11.4.

Would be great if you can also check inquiry with some other device on affected system and if the issue stays after system restart.

toy avatar Nov 16 '21 23:11 toy

Tell me what to do and I can help. Having same issue on my mac

fedekrum avatar Dec 01 '21 02:12 fedekrum

Using Catalina. It may be something related to the more restricted access of apps and scripts to BT and other security things that have to be approved at the "Security and Privacy" Control panel.

fedekrum avatar Dec 01 '21 02:12 fedekrum

Yesssss !!! That is !!! You must go to "System Preferences - Security & Privacy - Privacy (tab) - Developer Tools" and allow "Terminal" application to run software without a system security policy.

Is not a bug, is a matter of permission.

fedekrum avatar Dec 01 '21 02:12 fedekrum

Screenshot 2021-12-01 at 04 09 44

fedekrum avatar Dec 01 '21 03:12 fedekrum

@fedekrum Thanks for investigating! My attempt at reproducing was not completely successful - I wanted to check if allowing bluetooth interaction (instead of "Developer Tools") will also work, but after it started working with the option it didn't stop working after disabling and removing the option, and even after restarting.

@cristiano-belloni @CHBrianLiu Can you try checking if permissions are the issue?

toy avatar Dec 03 '21 00:12 toy

Hi @toy I have a similar issue with my Logitech MX Anywhere 3 mouse, but NO problem with the Logitech M557 mouse, Apple Magic Mouse, and Keychron K10 keyboard.

I have to add iTerm to BOTH Developer Tools and Bluetooth in System Preferences - Security & Privacy - Privacy to see the Logitech MX Anywhere 3 mouse with blueutil --paired - adding only either of these will not be visible.

I am using macOS 12.6.2 and am unsure what the difference is between the new mouse and other devices, but it is problematic as I don't have admin right on some of the laptops I would like to pair. I am wondering if there is any way to pair it up without the admin privilege?

siutsin avatar Jan 12 '23 11:01 siutsin

@siutsin Checking if I can reproduce I noticed that without adding Bluetooth permission for terminal app (or by turning it off) I don't see my connected mouse both using blueutil --paired and blueutil --connected, but permission doesn't affect seeing a headset and a keyboard. Also no Developer Tools permission for the terminal. So looks like it is down to understanding the difference between devices from os perspective.

toy avatar Jan 14 '23 16:01 toy

Same issue to me

fbukevin avatar Jun 22 '23 17:06 fbukevin