-
All replies
-
Helpful answers
-
Aug 3, 2011 11:10 AM in response to mr_urfby Acid,@mr_urf
I just recognized that the mute script doesn't work to 100% if you have an USB headset plugged into your Mac. The problem is that the USB headset is muted when logging out and not the internal speakers. That's why you can hear the startup sound the next time you start up your Mac.
I was trying to get the script working but it doesn't seem to be that easy
The only proper way to get this working is an AppleScript. However it's not a nice way imo, but it works
I'll post the contents of my AppleScript here. It looks like that:
------------------------------------------------------------
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.sound"
end tell
tell application "System Events"
tell application process "System Preferences"
tell tab group 1 of window "Sound"
click radio button "Output"
set selected of row 1 of table 1 of scroll area 1 to true
set deviceselected to "Internal Speakers"
delay 2
end tell
set muteState to value of checkbox "Mute" of window "Sound"
if muteState is 0 then
click checkbox "Mute" of window "Sound"
end if
end tell
end tell
tell application "System Preferences" to quit
-----------------------------------------------------------
Just use the AppleScript editor to save the script at /Library/Scripts/mute.scpt for example.
Then you have to call it in the "mute-on.sh" script like as follows:
osascript /Library/Scipts/mute.scpt
-
Aug 3, 2011 12:34 PM in response to Acidby mr_urf,Hi Acid,
Thanks for that. I'm actually away from the iMac just now so I'll give your script a try tomorow.
For info, I asked a friend of mine who's running Snow Leopard on a 2009 model iMac to try the same thing and he got the same results. So it seems that this is not a new issue. If you are using an iMac and you have a set of headphones plugged into the 3.5" headphone port, the iMac can't tell the difference between the internal speakers and the headphones until the OS loads. So you can mute the internal channel in the sys prefs and it will mute the headphones, but as soon as you restart, the internal speakers BONG!!! at the default volume level, unless you unplug the headphones first.
Anyway, will let you know how I get on tomorrow with your script.
Thanks again
-
Aug 4, 2011 2:30 PM in response to maximilian Jehuda Izchakby redCube,Actually it seems every user has its own sound preferneces in Lion. It turns out (at least for my system) that if you mute the sound while in the login screen, then your reboot sound will be disabled. No matter what the individual users have set as there sound setting.
So: Try to disable the sound while in the Login Screen (using your keyboard)
-
Aug 10, 2011 8:35 AM in response to redCubeby AliTux,Fantastic redCube. Using the keyboard mute button whilst at the login screen silences the startup bong for me. So much simpler than running Applescript!
-
-
Aug 12, 2011 3:09 AM in response to mr_urfby mr_urf,Sorry, ended up being away longer than I thought.
Mute on Login Screen doesn't work for me (although bizarrely it is now only barely audible). Going to try Acid's script in a bit. Will let you know how I get on.
Thanks.
-
Aug 14, 2011 2:29 AM in response to skeelo221by Darren Prescott,rabrack wrote:
StartupSound.prefPane version 1.1b3 works fine in Lion. I have it installed now.
skeelo221 wrote:
This version didn't work for me. Are you able to mute the starup sound?
Did you set up Startupsound.prefPane correctly? You have to login as root in order to select the mute check-box in the Startup Sound System Preferences.
When I tried to do that without root enabled, it just changed back again.
I'm on Lion and the app works for me - i.e. I no longer get the startup chime.
It works guys!
-
Aug 16, 2011 12:57 AM in response to Darren Prescottby mialemat,There's a more complex way to solve the problem until Arcana rebuild its prefpane compatible with Lion.
Installed Snow Leopard on a external USB drive. Installed Arcana prefpane and muted the sound.
Restart with Lion and no more chime on startup.
-
Aug 16, 2011 11:49 AM in response to mialematby Darren Prescott,Hi mialemat,
It sounds like all you've done there is muted the sound which will mute the startup chime regardless. The drawback there is you have to remember to do this every time you shut-down (if you ever shut-down). The next time you unmute by adjusting the volume, the chime will be back.
As I said, it the Arcana Startupsound.prefPane works for me. You must log in as ROOT to adjust the Startup Sound System Preference, otherwise it won't work.
I'm not sure why it would only work for some and not others.
-
Aug 18, 2011 8:46 PM in response to maximilian Jehuda Izchakby billearl,Here is a script which runs at shutdown to lower the startup sound volume. Works fine for me.
Create a stay-open AppleScript application, and make it background-only. Then add this app to your Login Items list so it starts at login and waits in the background until shutdown/restart to run. It obviously won't work if something causes it to quit before shutdown.
I called mine "Shutdown Actions", with script:
on quit
-- the following line sets internal speakers volume to 50% (to control startup sound volume)
do shell script "osascript -e 'set volume output volume 50'" password "password" with administrator privileges
continue quit
end quit
So it doesn't appear in your Dock while waiting to run, you can make the app background-only. I use a separate AppleScript droplet to modify it, with this script:
on open the_file
tell application "System Events"
try
set posix_path to POSIX path of (item 1 of the_file) & "/Contents/Info.plist"
if not (exists property list item "LSUIElement" of property list file posix_path) then
make new property list item at end of property list items of contents of property list file posix_path ¬
with properties {kind:integer, name:"LSUIElement", value:0}
end if
set i to value of property list item "LSUIElement" of property list file posix_path
set value of property list item "LSUIElement" of property list file posix_path to item (i + 1) of {1, 0}
activate
display dialog name of (item 1 of the_file) & " turned into " & item (i + 1) of {"background", "regular"} & ¬
" app." buttons {"OK"} default button "OK"
end try
end tell
end open
-
Aug 18, 2011 9:49 PM in response to Darren Prescottby skeelo221,Darren Prescott wrote:
rabrack wrote:
StartupSound.prefPane version 1.1b3 works fine in Lion. I have it installed now.
skeelo221 wrote:
This version didn't work for me. Are you able to mute the starup sound?
Did you set up Startupsound.prefPane correctly? You have to login as root in order to select the mute check-box in the Startup Sound System Preferences.
When I tried to do that without root enabled, it just changed back again.
I'm on Lion and the app works for me - i.e. I no longer get the startup chime.
It works guys!
I'm sorry mate but the latest version 1.1b3 for sure does not work for me on my brand new MBA running Lion. I enabled the root user and logged in as such to toggle the mute tab. You are right about the mute check box toggling off if you are not logged in as root. After making the change as root the mute check box stuck but still I get the startup sound when I restart!
-
Aug 19, 2011 1:56 AM in response to Darren Prescottby mialemat,Dear Darren
what i did was the following:
- Installed Snow Leopard on a external USB drive.
- booted from the external drive where I installed StartupSound.prefPane
- Selected the mute check-box
- Rebooted the iMac from the internal hard drive with Lion
I got the chime muted for two times when booting. Then I got again the sound
I tried also your solution (root log) but for me won't work. And I can't figure out why.
Thanks for your support. I hope Arcana will update its prefPane.
-
Aug 19, 2011 10:57 AM in response to mialematby Darren Prescott,OK, I guess I spoke too soon. It's no longer working for me now.
It's weird because it worked for about a week, and now I get the annoying BONG again.
I did just instal the update 10.7.1 - I'm not sure if that broke something with the Startup Sound pref?
Back to square 1.
-
Aug 19, 2011 3:44 PM in response to maximilian Jehuda Izchakby ariton,Hi everybody! Seems that there is an easy solution: a little free application called "Psst" (http://www.satsumac.com/Psst.php). They say it is not guaranteed to work on every Mac, but it took the annoying chime away from a 2010 MBA with 10.7.1 on it.
I would like to thank a guy named Wayne that posted the tip among the comments here http://www.yourdailymac.net/2011/07/how-to-disable-the-startup-sound-of-your-mac / (the article itself was useless because it suggested installing Arcana's StartupSound.prefPane... Glad I took the time to read the comments!)
It's my first post here, I really hope there are no problems inserting the above links.
All the best!
-
Aug 22, 2011 7:27 AM in response to aritonby skeelo221,ariton wrote:
Hi everybody! Seems that there is an easy solution: a little free application called "Psst" (http://www.satsumac.com/Psst.php). They say it is not guaranteed to work on every Mac, but it took the annoying chime away from a 2010 MBA with 10.7.1 on it.
All the best!
COOL!
This works on my new 2011 MBA thanks for posting