vegardinho / alfred_bluetooth_controller

Alfred workflow for managing bluetooth settings and -connections
MIT License
95 stars 7 forks source link

bton does not turn on bluetooth. #35

Open aymane-eljerari opened 1 year ago

aymane-eljerari commented 1 year ago

I opened blueutil and notificator as shown in the installation guide, but I still can not interface with my bluetooth devices through alfred.

aymane-eljerari commented 1 year ago

Running this command within the workflow directory

xattr -d com.apple.quarantine ./blueutil

returns this

xattr: ./blueutil: No such xattr: com.apple.quarantine
vegardinho commented 1 year ago

I'll need some debugging info if you want me to take a look at it. Your command line return indicates that there is no quarantine on that file, so the issue is somewhere else.

aymane-eljerari commented 1 year ago

Yes, how can I provide the debugging info? Is there a log file somewhere?

vegardinho commented 1 year ago

Take a screenshot from the outout of the Workflow Debugger

aymane-eljerari commented 1 year ago

This is what the debugger shows, when I run bton. Is the Bluetooth controller compatible with apple silicon?

Screenshot 2023-02-13 at 5 30 28 PM
vegardinho commented 1 year ago

Might be that I accidentally removed cross compatibility in the last update. Try to replace the blueutil binary file with the one below (or install the alternative workflow, also below; in that case, the commands for on/off are 'btw' and 'bty'), and see if that fixes it.

Edit: I have to ask you to do it, because I don't have a computer with apple silicon myself. Archivo comprimido.zip

JSFLJ commented 10 months ago

@vegardinho the above file still does not fix this issue on apple silicon. I am having this exact same issue.

I used your alternative workflow (in the zip file).

vegardinho commented 9 months ago

Can you try this workflow? Make sure to delete or rename the commands of the old workflow first. Bluetooth Controller Beta.zip

JSFLJ commented 9 months ago

Hi @vegardinho, unfortunately that did not solve my problem. Still getting the following issue in the debugger.

[19:19:55.075] Logging Started... [19:19:59.115] Bluetooth Controller Beta[Script Filter] Queuing argument '(null)' [19:19:59.213] Bluetooth Controller Beta[Script Filter] Script with argv '(null)' finished [19:19:59.217] ERROR: Bluetooth Controller Beta[Script Filter] Code 1: security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain. Traceback (most recent call last): File "../Alfred.alfredpreferences/workflows/user.workflow.C9093872-1204-4C4D-82EF-6A073DE4A8CC/./scripts/return_device_json.py", line 137, in main() File "../Alfred.alfredpreferences/workflows/user.workflow.C9093872-1204-4C4D-82EF-6A073DE4A8CC/./scripts/return_device_json.py", line 39, in main js_bytes = check_output(cmd_args) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 424, in check_output return run(popenargs, stdout=PIPE, timeout=timeout, check=True, File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 505, in run with Popen(popenargs, **kwargs) as process: File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 951, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1821, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) OSError: [Errno 86] Bad CPU type in executable: './blueutil'

vegardinho commented 9 months ago

Can you try running the binary below directly?

cd ~/Downloads/blueutil (or wherever you unzip the file) ./blueutil --paired

Does it run as expected?

Also, if you could install blueutil with homebrew/macports/other and send me the installed version (check where it is by running whereis blueutil), that would be great.

blueutil.zip

JSFLJ commented 9 months ago

After running the terminal commands, I get; zsh: bad CPU type in executable: ./blueutil

For blueutil version; blueutil -v 2.9.1

Looking forward to solving this issue.

vegardinho commented 6 months ago

@JSFLJ Could you also do this?

Also, if you could install blueutil with homebrew/macports/other and send me the installed version (check where it is by running whereis blueutil), that would be great.

Essentially, I'm trying to figure out whether the binary provided by homebrew/macports is universal or targeted against specific architecture (apple chip/intel).

JSFLJ commented 5 months ago

I will do this in a few weeks and let you know.

On Wed, Jan 03, 2024 at 7:06 AM, vegardinho @.**@.>> wrote: You don't often get email from @.**@.>. Learn why this is importanthttps://aka.ms/LearnAboutSenderIdentification

@JSFLJhttps://github.com/JSFLJ Could you also do this?

Also, if you could install blueutil with homebrew/macports/other and send me the installed version (check where it is by running whereis blueutil), that would be great.

Essentially, I'm trying to figure out whether the binary provided by homebrew/macports is universalhttps://developer.apple.com/documentation/apple-silicon/building-a-universal-macos-binary or targeted against specific architecture (apple chip/intel).

— Reply to this email directly, view it on GitHubhttps://github.com/vegardinho/alfred_bluetooth_controller/issues/35#issuecomment-1875271542, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVCBSEKZV5LUV5LDTQB4HBLYMVCV3AVCNFSM6AAAAAAUYL4QPCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZVGI3TCNJUGI. You are receiving this because you were mentioned.Message ID: @.***>