blueutil icon indicating copy to clipboard operation
blueutil copied to clipboard

"--disconnect" doesn't work on MacOS Monterey

Open tomeyerog opened this issue 3 years ago • 17 comments

Hi there,

I am using blueutil to pair my MacBook Pro (2016) on MacOS Monterey with my Google Pixel Buds.

Connecting works perfectly but disconnecting via "blueutil --disconnect f8-0f-f9-ff-93-f9" doesn't do anything.

This worked previously on BigSur.

I am using 2.9.0 of blueutil.

Cheers Tom

tomeyerog avatar Oct 28 '21 19:10 tomeyerog

Hi Tom and thank you for opening the issue.

Does the command have success exit code and is there any output at all? Please try to also run blueutil --disconnect f8-0f-f9-ff-93-f9 --info f8-0f-f9-ff-93-f9. Would be great if you could also check the command with some other device.

toy avatar Oct 28 '21 21:10 toy

With blueutil --disconnect f8-0f-f9-ff-93-f9 --info f8-0f-f9-ff-93-f9 it works!

tomeyerog avatar Oct 29 '21 07:10 tomeyerog

Heh, I didn't expect it to fix it, but wanted to see if right after disconnection the status is shown as connected or not. The way it was fixed makes me think in direction of something being released to early, worth investigating. But good that it is at least temporarily fixed for you.

toy avatar Oct 30 '21 10:10 toy

can confirm the same behavior: blueutil --disconnect "ID" -> nothing blueutil --disconnect "ID" --info "ID" -> Disconnects

Macbook Air - M1 here's the output if it can help:

blueutil --disconnect '04-fe-a1-a2-fe-f8' --info '04-fe-a1-a2-fe-f8'
address: 04-fe-a1-a2-fe-f8, connected (master, 0 dBm), not favourite, paired, name: "EDIFIER R1280DB", recent access date: 2021-11-16 22:41:13 +0000

fire1ce avatar Nov 16 '21 22:11 fire1ce

@fire1ce Thank you for confirming, odd behaviour especially as info outputs that speakers are connected, so they are disconnected right after.

toy avatar Nov 16 '21 23:11 toy

I also have the same problem with my M1 Mac mini. After upgrading to Monterey, the disconnect feature stopped working. And for me the workaround described above (adding the "--info" part) does not work.

Running the command with info added gives the same result as above, but the device will not disconnect: blueutil --disconnect '24-d0-df-85-28-62' --info '24-d0-df-85-28-62' address: 24-d0-df-85-28-62, connected (master, 0 dBm), not favourite, paired, name: "Henri (AirPods Pro)", recent access date: 2021-11-18 11:01:15 +0000

hkuokka avatar Nov 18 '21 11:11 hkuokka

@hkuokka Can you please try blueutil --disconnect '24-d0-df-85-28-62' --wait-disconnect '24-d0-df-85-28-62'?

toy avatar Nov 18 '21 22:11 toy

@hkuokka Can you please try blueutil --disconnect '24-d0-df-85-28-62' --wait-disconnect '24-d0-df-85-28-62'?

This works perfectly, thank you so much!

I've used blueutil and switchaudio-osx together to have a quick keyboard shortcut (done with Keyboard Maestro) to quickly connect and disconnect my AirPods Pro and set my audio input/output correctly. And after upgrading to Monterey this stopped working and I've missed this functionality so much. Blueutil has been by far the fastest and most reliable way of accomplishing what I want and now it works again :)

hkuokka avatar Nov 19 '21 08:11 hkuokka

This solution works, thanks!

ivinjose avatar Dec 09 '21 14:12 ivinjose

@hkuokka Can you please try blueutil --disconnect '24-d0-df-85-28-62' --wait-disconnect '24-d0-df-85-28-62'?

This works perfectly

RobbieMinderhoud avatar Feb 01 '22 10:02 RobbieMinderhoud

Neither blueutil --disconnect '24-d0-df-85-28-62' --wait-disconnect '24-d0-df-85-28-62' nor blueutil --disconnect f8-0f-f9-ff-93-f9 --info f8-0f-f9-ff-93-f9 works for me on MacOS 12.3 (21E230)

butaminas avatar Mar 15 '22 10:03 butaminas

I can report that 12.4 on an M1 Max that blueutil --disconnect 14-3f-a6-6d-bb-92 --wait-disconnect 14-3f-a6-6d-bb-92 DOES work for me. Thanks.

sidouglas avatar Jul 03 '22 04:07 sidouglas