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

Possible approach for macOS: Error opening HID Manager #60

Open
jonbakke opened this issue Jul 29, 2020 · 3 comments
Open

Possible approach for macOS: Error opening HID Manager #60

jonbakke opened this issue Jul 29, 2020 · 3 comments

Comments

@jonbakke
Copy link

I encountered the "error opening HID Manager" problem and tried to dig in deep enough to understand some of it. My -- extremely inexpert -- conclusion is that this is caused by a security measure that requires a sandboxed environment before IOHIDManagerOpen will return a meaningful value, I suppose to prevent using it to probe the surface of everything attached to the machine via USB. I'm now comfortable ignoring this problem and have changed the code I use accordingly, yet not confident enough to issue a pull request. If discussion leads toward including similar code, I'd be happy to polish and make a PR; otherwise, this issue might act as a signpost to others.

I also expanded the error message from what I found in the IOkit headers. If something based on that would be valuable, let me know and I'll clean up its crude style/placement to fit better with the existing code.

My fork is here: https://github.com/jonbakke/teensy_loader_cli/blob/master/teensy_loader_cli.c (lines 622 et seq).

Regardless -- loving my Teensy. Thanks, Paul.

@chrismoos
Copy link

Thanks @jonbakke I had the same issue and it fixed it for me. Any chance you can send a PR here with your fix?

@noisymime
Copy link

Another +1 here for this. Fix works well for me, thanks!

@avivbeeri
Copy link

This is still an issue and @jonbakke's fork worked for me, unlike everything else I've tried.

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