Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blueuti --unpair #90

Open
FeliksML opened this issue Apr 9, 2024 · 9 comments
Open

blueuti --unpair #90

FeliksML opened this issue Apr 9, 2024 · 9 comments

Comments

@FeliksML
Copy link

FeliksML commented Apr 9, 2024

blueuti --unpair not working on MacOs Sanoma. It just executes but don't change anything.

LOG:

Last login: Mon Apr 8 16:18:23 on ttys000
(base) ➜ ~ blueutil --paired
address: 14-c8-8b-e7-53-74, connected (master, 0 dBm), not favourite, paired, name: "Feliks’s AirPods Max", recent access date: 2024-04-08 23:58:53 +0000
address: 88-c9-e8-35-8b-29, not connected, not favourite, paired, name: "WH-1000XM4", recent access date: 2024-04-08 23:58:53 +0000
address: a4-16-c0-95-09-7e, not connected, not favourite, paired, name: "Feliks’s AirPods Pro", recent access date: 2024-04-08 23:58:53 +0000
address: dc-2c-26-15-b8-6e, connected (master, 0 dBm), not favourite, paired, name: "Keychron K3", recent access date: 2024-04-08 23:58:53 +0000
address: d0-f9-09-96-04-cf, not connected, not favourite, paired, name: "Pebble i345", recent access date: 2024-04-08 23:58:53 +0000
address: 7c-61-30-9e-74-98, not connected, not favourite, paired, name: "Feliks’s Apple Watch", recent access date: 2024-04-08 23:58:53 +0000
address: d0-f9-09-96-04-cd, not connected, not favourite, paired, name: "Pebble i345", recent access date: 2024-04-08 23:58:53 +0000
address: d0-f9-09-96-04-d1, not connected, not favourite, paired, name: "Pebble i345", recent access date: 2024-04-08 23:58:53 +0000
address: d0-f9-09-96-04-d3, not connected, not favourite, paired, name: "Pebble i345", recent access date: 2024-04-08 23:58:53 +0000
address: d0-f9-09-96-04-d5, not connected, not favourite, paired, name: "Pebble i345", recent access date: 2024-04-08 23:58:53 +0000
address: xxxxxxxxxxxxx, not connected, not favourite, paired, name: "Feliks’s iPhone", recent access date: 2024-04-08 23:58:53 +0000
address: d0-f9-09-96-04-d7, connected (master, 0 dBm), not favourite, paired, name: "Pebble i345", recent access date: 2024-04-08 23:58:53 +0000
(base) ➜ ~ blueutil --unpair d0-f9-09-96-04-d5
(base) ➜ ~ blueutil --paired
address: 14-c8-8b-e7-53-74, connected (master, 0 dBm), not favourite, paired, name: "Feliks’s AirPods Max", recent access date: 2024-04-08 23:59:26 +0000
address: 88-c9-e8-35-8b-29, not connected, not favourite, paired, name: "WH-1000XM4", recent access date: 2024-04-08 23:59:26 +0000
address: a4-16-c0-95-09-7e, not connected, not favourite, paired, name: "Feliks’s AirPods Pro", recent access date: 2024-04-08 23:59:26 +0000
address: dc-2c-26-15-b8-6e, connected (master, 0 dBm), not favourite, paired, name: "Keychron K3", recent access date: 2024-04-08 23:59:26 +0000
address: d0-f9-09-96-04-cf, not connected, not favourite, paired, name: "Pebble i345", recent access date: 2024-04-08 23:59:26 +0000
address: 7c-61-30-9e-74-98, not connected, not favourite, paired, name: "Feliks’s Apple Watch", recent access date: 2024-04-08 23:59:26 +0000
address: d0-f9-09-96-04-cd, not connected, not favourite, paired, name: "Pebble i345", recent access date: 2024-04-08 23:59:26 +0000
address: d0-f9-09-96-04-d1, not connected, not favourite, paired, name: "Pebble i345", recent access date: 2024-04-08 23:59:26 +0000
address: d0-f9-09-96-04-d3, not connected, not favourite, paired, name: "Pebble i345", recent access date: 2024-04-08 23:59:26 +0000
address: d0-f9-09-96-04-d5, not connected, not favourite, paired, name: "Pebble i345", recent access date: 2024-04-08 23:59:26 +0000
address: xxxxxxxxxxxxxxxxxx, not connected, not favourite, paired, name: "Feliks’s iPhone", recent access date: 2024-04-08 23:59:26 +0000
address: d0-f9-09-96-04-d7, connected (master, 0 dBm), not favourite, paired, name: "Pebble i345", recent access date: 2024-04-08 23:59:26 +0000
(base) ➜ ~

@toy
Copy link
Owner

toy commented Apr 9, 2024

Does it not work only with that specific device? Are you able to disconnect other Pebble i345s (or is it the same device with different addresses) or other devices?

@FeliksML
Copy link
Author

FeliksML commented Apr 9, 2024

Its the same device with different addresses.

@FeliksML
Copy link
Author

FeliksML commented Apr 9, 2024

I sometimes need to disconnect this device and when I want to reconnect it appears as new device with different MAC address. I want to write script which will delete the previous connection from the bluetooth list.

@toy
Copy link
Owner

toy commented Apr 10, 2024

Please check if other devices also can't be unpaired, for example Keychron K3

@xilopaint
Copy link

xilopaint commented Apr 27, 2024

@toy I have the same problem. There's an old MacBook Air listed that I no longer own. I try to run blueutil --unpair to remove the device from the list, but it does not work. I also can't remove the device from System Settings because it doesn't appear there. Is there any other way of removing this device from the blueutil paired list?

@toy
Copy link
Owner

toy commented Apr 29, 2024

@xilopaint Original issue is about not being able to unpair a device, but you have a device that is not listed by System Settings, only by blueutil --paired which is already an issue itself.

A bit of digging suggests that there are two files for paired devices:

  • /Library/Bluetooth/Library/Preferences/com.apple.MobileBluetooth.devices.plist (apparently for classic devices)
  • /Library/Bluetooth/com.apple.MobileBluetooth.ledevices.paired.db (by name for low energy devices)

Looks like bluetooth framework does not always delete entries from the second file and there is some inconsistency in what listed by System Settings and returned by framework (and listed by blueutil).

I'm not yet sure what could be the right way to deal with this.

@xilopaint
Copy link

@toy Please let me know if I can help you to debug the issue.

@shah-ensa-scacap
Copy link

Hi @toy

I have two macs and used to switch my keyboard and touchpad between them using blueutil for more than a year. But it stopped working a couple days ago on the newer mac with Sonoma 14.6.1 (23G93). (but still working on mac with older os and intel cpu)
In my case, both pair and upair stopped working. Do we have any update on this issue or any workaround?

@toy
Copy link
Owner

toy commented Sep 3, 2024

@shah-ensa-scacap Unfortunately no updates for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants