yuuiko/AquaTouch

Bug: Bluetooth Widgets on M1

BourgonLaurent opened this issue · 4 comments

Describe the bug

According to multiple users on Discord, AirPods widgets don't work on M1. The name doesn't change/doesn't show status and the listening mode widget doesn't appear.

Reports in the Discord (owners of the messages could be contacted for testing):

Details

The buttons are acting as if nothing was connected. However, the try/on error inside the connecting script is made to act this way when there's an error, and the one in the listening mode widget hides the widget.

This issue has only been reported by M1 users and it seems like it isn't exclusive to AirPods Pro. According to a user on the Discord, the following widget works on their M1 Mac when the one included with AquaTouch didn't.

One thing that could be possible is that M1 has increased security, maybe the scripts needs to be code-signed? Or there's a permission to ask?

Please help us test!

I created a diagnostic script that could be used to find what is causing this issue. If the AirPods widget doesn't work for you, please run the diagnostic script and send back the result.

If there's an error with the script, run the command at the end of the dialog and send the <MAC-ADDRESS>.log that was created on your desktop (~/Desktop). Please note that the log file created could contain information that you don't want to share like timestamps at which you renamed the device, I suggest you to look at it before sending it. If you don't want to share it publicly, you can send it to me on Discord LTO#0188

I will reply to this issue with an example. Please use this format:

- Mac architecture (Intel/M1): 
- Result of the diagnostic script `APPro_LMC_diag.applescript`: 
```
PASTE THE RESULT HERE
```
- If there's an error in the result, run the PlistBuddy Command and attach the file `<MAC-ADDR>.log` that was created in your desktop directory (drag-n-drop the file here):

Download the diagnostic script here

(right-click/control+click => Download Linked File)

open it with Script Editor (or Script Debugger), run it ▶️ and send the results!

This is an example of a reply


  • Mac architecture (Intel/M1): Intel
  • Result of the diagnostic script APPro_LMC_diag.applescript:
Copy all this message (click here and then ⌘+A) and send it:

[-] Get the name of the device stored in BTT
	[x] Device name: AirPods Pro de Laurent
	[x] Retrieved the device AirPods Pro de Laurent with address e8-85-4b-d1-ba-75
	[x] ProductID: 8206

[-] Check if the Device has Listening Modes
	[?] ANC supported? true
	[?] Transparency supported? true

	[x] There's a listening mode (as integer): 3
	[x] Listening Mode is: Transparency


[-] Commands
PlistBuddy command: 

/usr/libexec/PlistBuddy -c "print :DeviceCache:e8-85-4b-d1-ba-75" /Library/Preferences/com.apple.Bluetooth.plist > ~/Desktop/e8-85-4b-d1-ba-75.log
  • If there's an error in the result, run the PlistBuddy Command and attach the file <MAC-ADDR>.log that was created in your desktop directory:
    e8-85-4b-d1-ba-75.log
  • Mac architecture (Intel/M1): M1
  • Result of the diagnostic script APPro_LMC_diag.applescript:
Copy all this message (click here and then ⌘+A) and send it:

[-] Get the name of the device stored in BTT
	[x] Device name: Daniel’s AirPods Pro
	[x] Retrieved the device Daniel’s AirPods Pro with address 0c-3b-50-ac-fb-04
	[x] ProductID: 8206

[-] Check if the Device has Listening Modes
	[?] ANC supported? true
	[?] Transparency supported? true

	[x] There's a listening mode (as integer): 0


[-] Commands
PlistBuddy command: 

/usr/libexec/PlistBuddy -c "print :DeviceCache:0c-3b-50-ac-fb-04" /Library/Preferences/com.apple.Bluetooth.plist > ~/Desktop/0c-3b-50-ac-fb-04.log```
- If there's an error in the result, run the PlistBuddy Command and attach the file `<MAC-ADDR>.log` that was created in your desktop directory (drag-n-drop the file here):

Architecture M1.
Sony WH-CH510 headphones. Button works but status always "Not Connected"

Copy all this message (click here and then ⌘+A) and send it:

[-] Get the name of the device stored in BTT
[x] Device name: WH-CH510
[x] Retrieved the device WH-CH510 with address 74-45-ce-8d-23-6c
[x] ProductID: ERROR

[-] Check if the Device has Listening Modes
[?] ANC supported? false
[?] Transparency supported? false

[-] Commands
PlistBuddy command:

/usr/libexec/PlistBuddy -c "print :DeviceCache:74-45-ce-8d-23-6c" /Library/Preferences/com.apple.Bluetooth.plist > ~/Desktop/74-45-ce-8d-23-6c.log

Running the above does not work as there is no entry for this device in the Plist under DeviceCache.

Mac architecture (Intel/M1): M1
Result of the diagnostic script APPro_LMC_diag.applescript:

Copy all this message (click here and then ⌘+A) and send it:

[-] Get the name of the device stored in BTT
[x] Device name: Owen’s AirPods Pro
[x] Retrieved the device Owen’s AirPods Pro with address 00-8a-76-2d-4a-39
[x] ProductID: 8206

[-] Check if the Device has Listening Modes
[?] ANC supported? true
[?] Transparency supported? true

[x] There's a listening mode (as integer): 0

[-] Commands
PlistBuddy command:

/usr/libexec/PlistBuddy -c "print :DeviceCache:00-8a-76-2d-4a-39" /Library/Preferences/com.apple.Bluetooth.plist > ~/Desktop/00-8a-76-2d-4a-39.log