jguice / mac-bt-headset-fix

Small mac application that fixes broken bluetooth headset control by listening for events and sending them directly to apps
488 stars 19 forks source link

Support for macOS Sierra #34

Closed lmurgatroyd closed 7 years ago

lmurgatroyd commented 8 years ago

The app appears to no longer function, as tested in macOS Sierra GM.

Tronix117 commented 8 years ago

👍 Same issue here

vincentducorps commented 8 years ago

Up @jguice :)

jguice commented 8 years ago

Gah! Guess it's time for me to upgrade. 😉 (also I should really turn notification emails back on...thanks for the @mention @vincentducorps)

Tronix117 commented 8 years ago

[NSEvent addGlobalMonitorForEventsMatchingMask] is not even called anymore on bluetooth key press :/ couldn't find a workaround yet.

kolychev commented 8 years ago

I'm not an expert here, but maybe my thoughts will help someone. If you check Console.app when press headset button, I see in console:

bluetoothaudiod Pause bluetoothaudiod Signpost 1 AVRCP Pause mediaremoted Received broadcast command from client : mediaremoted No destination client can be found for command , and the option to launch the app was not included. Dropping command. bluetoothaudiod Pause Release

The idea is to register the program as "mediaremoted client" somehow, so that daemon send button press events to that "client".

fleebzz commented 8 years ago

Any news about this issue ?

vincentducorps commented 8 years ago

up, iTunes auto launch makes me insane ;)

hdoria commented 8 years ago

+1

jguice commented 8 years ago

Hi, finally got a dev environment setup for this and can of course replicate both iTunes autostart and broken media key "replay". Thanks @Tronix117 and @kolychev for help with the research. 😉

I'll update this issue with my progress (and hopefully will have a new beta to try soon).

jguice commented 8 years ago

Hey, good news. 😀

I have a working prototype that's intercepting bluetooth key-presses and replaying them as media keys. It also keeps iTunes from starting when it's running (and no more hacky unloading daemons via launchctl).

This new version is in swift (which I'm learning) and will ultimately be a complete re-write (again). I should have a version up in the next week for testing.

Tronix117 commented 8 years ago

That is a really good news :) Traumatized by itunes, I don't even dare to put my headset on anymore !

Good job !

hdoria commented 8 years ago

Awesome news! Let me know if you need someone to test it.

timouwerkerk commented 8 years ago

Great news! looking forward to test it. Great job as well!

jguice commented 8 years ago

Happy Thursday! 🎉

Here's that Beta (macOS Sierra 10.12.1 or higher only). :neckbeard:

Create issues for any problems/etc.

Dachaz commented 8 years ago

So far, it seems to work as expected. Thank you very much!

AlbertoFdzM commented 8 years ago

Cool, working for me too. No more iTunes window on my screen.

Thanks!

fleebzz commented 8 years ago

Great ! Works way better.

I will just create a new issue because I have to press Play/Pause twice each time for action to be executed.

petermnt commented 8 years ago

Works as expected with Sony MDR-1000X and BeardedSpice, thanks!

DanSchoppe commented 7 years ago

Edit: Works as expected with Plantronics BeatBack Pro headphones.

Sorry about the earlier contents of this comment, I had accidentally built / tested with the master branch. Everything works as expected on the sierra branch. Thanks!

jguice commented 7 years ago

Excellent @DanSchoppe ! (I was going to ask that). 😉

fosple commented 6 years ago

Which function do you use @jguice to intercept bluetooth key-presses?