Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

iTunes starts up whenever I connect my bluetooth headset

I am using bluetooth headset to communicate on Skype. Whenever somebody's calling me, I turn my headset on and it will automatically connect to my MacBook. Every time, however, it will also automatically start iTunes and begins to play. I don't want this behavior, since instead of listening to music I would actually want to talk on Skype. How can I change this?

Possible explanation to this could be that headphones may send "Play" button message to the computer once connected, since this is same button that is used to turn them on/off. I am not sure however, if they actually do send this button. But in case they do, how can I disable iTunes startup on Play button? Is there are an official way to do it or should I really go with something like this: http://superuser.com/questions/31925/stop-play-pause-button-opening-itunes-in-sn ow-leopard/39390#39390.

MacBook Pro 6.2, Mac OS X (10.6.4)

Posted on Sep 6, 2010 2:04 AM

Reply
Question marked as Best reply

Posted on Dec 4, 2017 2:08 PM

This question was first posted in 2010, it is now less than a month from 2018 and this remains an issue.


In nearly 8 years the only "solutions" are hacky workarounds, that is just sad.


We are talking about a simple ON/OFF switch for auto play here! I guess it takes courage to ignore such a simple fix for so long.


My bluetooth headphones have this great feature where when I take them off, it automatically pauses the media being played and when you put them back on it resumes. On my Windows PC and Android Phone this works exactly as you'd expect, no configuration needed.

BUT, on this awesome MacBook Pro, which I am forced to use for work, every time I decide to take my head phones off and then put them back on iTunes launches and starts playing music.

139 replies

Aug 11, 2015 8:09 AM in response to ibisiki

I have a new bluetooth headset that pauses and resumes each time I take them off or put them on. Today is the first time trying them to stream music from a web site and found the issue that many others have described.


A quick scan of this thread showed a few solutions, but I did not quickly find a solution like the one that I threw together this morning. Here it is:


Using your favorite editor, create a file called iTunesSniper.sh with the following contents. I put it in a bin directory that I have off my home directory.


while [[ 1 -eq 1 ]]; do


d=`date`

killpid=`ps -A | grep iTunes$ | tr -s ' ' | cut -d'?' -f1`

rc=$?

if [[ ${rc} -eq 0 && ! -z ${killpid} ]]; then

kill ${killpid}

echo "${d} killed"

fi


sleep 1


done


make sure that the file is executable.


chmod +x iTunesSniper.sh


Run the script from the terminal window. Every second it will check for the iTunes process and when it finds it, it will kill it. It will print the date and time each time it kills the pid. When you don't need it's help anymore, ctl-c will exit the script and iTunes will run without having to rename anything or change any permissions.


bin$ ./iTunesSniper.sh

Tue Aug 11 10:05:45 CDT 2015 killed

Tue Aug 11 10:05:46 CDT 2015 killed

Tue Aug 11 10:05:47 CDT 2015 killed

Tue Aug 11 10:05:48 CDT 2015 killed

Tue Aug 11 10:05:55 CDT 2015 killed


I hope that this helps.

Oct 10, 2015 9:26 AM in response to rryk

After hours of trying various workarounds for this, I found a solution which works:

You can either:

1. Use an app to disable the iTunes play/pause hotkeys (which also disables this bluetooth auto-start functionality.

The app can be downloaded from this link: http://redth.codes/itunes-media-hotkey-disabler/

2. Make the same changes yourself using terminal:

To disable the functionality:

launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist

To re-enable it:

launchctl load -w /System/Library/LaunchAgents/com.apple.rcd.plist

Hope that helps!

Dec 31, 2015 1:04 PM in response to msheaver

Yep, I can confirm the above. The issue is NOT with iTunes. Rather, the issue is with a process called iTunesHelper that launches on startup. Preventing this process from starting at bootup (or even just manually killing it using Activity Monitor) will prevent iTunes from automatically launching when you connect a Bluetooth audio device. Thanks for the post above.


EDIT: Crap, never mind. I'm still having the same issue even with iTunesHelper disabled. It just takes 10 seconds longer....

iTunes starts up whenever I connect my bluetooth headset

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.