Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
[MacBook Air] How to disable OSX's auto switching of volume when using Headphone Jack
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Lifeisabeach" data-source="post: 1352678" data-attributes="member: 38864"><p>It took me a bit of time and reading around to figure out what you are asking. For clarity here to anyone reading, OS X does maintain separate volume levels for the internal speakers and for headphones/2.1 speakers that are plugged into the headphone jack. If you plug in headphones, OS X will remember what the volume level was when using the internal speakers and automatically restore it when you unplug the headphones. And vice versa. This is all stored in the PRAM.</p><p></p><p>What you are looking to do is have a "default" volume that is lower than what may have been used and auto-remembered before you plugged the headphones in. Or perhaps better said... stop OS X from storing the last-used volume level when plugging/unplugging headphones. I've done some extensive Googling to find a way to force the OS to auto-drop the volume level, and unfortunately there is really no documentation or ready-made solutions for this. Luckily for you, I'm extremely stubborn and refuse to admit defeat. Here is a solution I have worked out:</p><p></p><p>First, run <em>AppleScript Editor</em> and make a new script with this exact entry:</p><p>[CODE][B]set volume 1[/B][/CODE]</p><p>Press the Compile button in the toolbar, then save the script to:</p><p><em>yourhomefolder</em>/Library/Scripts</p><p></p><p>Next, download a freebie named <a href="http://www.macupdate.com/app/mac/23361/breakaway" target="_blank">Breakaway</a>. This runs as a menubar extra. Launch it, access its preferences, then click on Plugins in the toolbar. Uncheck the <em>iTunes plugin</em> and put a checkmark next to <em>AppleScript Plugin</em> and create a new trigger. Drag the script you made earlier to the box on the right under <em>Run script</em>, then put check marks next to the desired options. Once done, make sure you have a checkmark on your trigger so it is active, just like this screenshot:</p><p></p><p>[ATTACH=full]16638[/ATTACH]</p><p></p><p>Once done, any time you plug or unplug your headphones, the volume will drop to "1". You can modify this to something higher, or 0 for mute if you like. There is a fraction of a second of a delay in the volume adjusting, but it's virtually unnoticeable and easily the best solution available. You can also consider using the iTunes plugin. What it does is pause iTunes when headphones are unplugged. However, my tip is valid across any app with audio.</p></blockquote><p></p>
[QUOTE="Lifeisabeach, post: 1352678, member: 38864"] It took me a bit of time and reading around to figure out what you are asking. For clarity here to anyone reading, OS X does maintain separate volume levels for the internal speakers and for headphones/2.1 speakers that are plugged into the headphone jack. If you plug in headphones, OS X will remember what the volume level was when using the internal speakers and automatically restore it when you unplug the headphones. And vice versa. This is all stored in the PRAM. What you are looking to do is have a "default" volume that is lower than what may have been used and auto-remembered before you plugged the headphones in. Or perhaps better said... stop OS X from storing the last-used volume level when plugging/unplugging headphones. I've done some extensive Googling to find a way to force the OS to auto-drop the volume level, and unfortunately there is really no documentation or ready-made solutions for this. Luckily for you, I'm extremely stubborn and refuse to admit defeat. Here is a solution I have worked out: First, run [I]AppleScript Editor[/I] and make a new script with this exact entry: [CODE][B]set volume 1[/B][/CODE] Press the Compile button in the toolbar, then save the script to: [I]yourhomefolder[/I]/Library/Scripts Next, download a freebie named [URL="http://www.macupdate.com/app/mac/23361/breakaway"]Breakaway[/URL]. This runs as a menubar extra. Launch it, access its preferences, then click on Plugins in the toolbar. Uncheck the [I]iTunes plugin[/I] and put a checkmark next to [I]AppleScript Plugin[/I] and create a new trigger. Drag the script you made earlier to the box on the right under [I]Run script[/I], then put check marks next to the desired options. Once done, make sure you have a checkmark on your trigger so it is active, just like this screenshot: [ATTACH=FULL]16638[/ATTACH] Once done, any time you plug or unplug your headphones, the volume will drop to "1". You can modify this to something higher, or 0 for mute if you like. There is a fraction of a second of a delay in the volume adjusting, but it's virtually unnoticeable and easily the best solution available. You can also consider using the iTunes plugin. What it does is pause iTunes when headphones are unplugged. However, my tip is valid across any app with audio. [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
Apple Computing Products:
macOS - Operating System
[MacBook Air] How to disable OSX's auto switching of volume when using Headphone Jack
Top