Contribute
Register

DIY Startup Sound - a clean way to do....

Status
Not open for further replies.
Joined
Nov 30, 2012
Messages
65
Motherboard
Gigabyte
CPU
i7
Graphics
280x + HD4600
Mac
  1. iMac
  2. MacBook Pro
Classic Mac
  1. 0
Mobile Phone
  1. iOS
Hi, I have tried to make a good chime sound on boot with clover, but the absence of the audio driver (in my case, only HDMI audio) was a problem. So, the best way to do , without any application or intrusive program, was create a clean launchd plist with the instructions to play the sound.


1) first: locate a good copy of chime.aiff on internet (google "carillon 1.2b")
2) copy the Chime.aiff file to /System/Library/Sounds/
3) on terminal: sudo chown root:wheel /System/Library/Sounds/Chime.aiff
4) copy com.hackintosh.sound.plist to /System/Library/LaunchDaemons/
5) on terminal: sudo chown root:wheel /System/Library/LaunchDaemons/com.hackintosh.sound.plist


and that is it. You can change the time interval (I use 2 seconds) until it runs, but it only run once, since it success, it exits.


The Chime sound will be play before the login screen, at the end of the apple logo progress bar.

To uninstall, just delete the /System/Library/LaunchDaemons/com.hackintosh.sound.plist and the /System/Library/Sounds/Chime.aiff

this is not the best, but it simple and works fine for my taste.

View attachment com.hackintosh.sound.plist
 
ahh, almost forgot, you can try the daemon using on terminal:

launchctl load /System/Library/LaunchDaemons/com.hackintosh.sound.plist

and


launchctl unload /System/Library/LaunchDaemons/com.hackintosh.sound.plist

the code on
com.hackintosh.sound.plist is:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>ThrottleInterval</key>
    <integer>2</integer>
    <key>KeepAlive</key>
    <dict>
        <key>SuccessfulExit</key>
        <false/>
    </dict>
    <key>Label</key>
    <string>com.hackintosh.sound</string>
    <key>RunAtLoad</key>
    <true/>
    <key>ProgramArguments</key>
    <array>
        <string>/usr/bin/afplay</string>
        <string>/System/Library/Sounds/Chime.aiff</string>
    </array>
</dict>
</plist>

 
Good work, worked very well here!
 
Worked for me too! I have a question though. What is the time for? i.e. two seconds after what makes it chime?
 
I have tried to make a good chime sound on boot with clover

I'm really interexted in this, as EFI version of Clover in theory can play sound at very startup as real macs.

How you was trying to achieve that? I want to work to something similar.
 
Superb work!
 
Great work fine !
Can we set audio volume in .plist ?

EDIT:
It's okay! I have replaced by that
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>ThrottleInterval</key>
    <integer>2</integer>
    <key>KeepAlive</key>
    <dict>
        <key>SuccessfulExit</key>
        <false/>
    </dict>
    <key>Label</key>
    <string>com.hackintosh.sound</string>
    <key>RunAtLoad</key>
    <true/>
    <key>ProgramArguments</key>
    <array>
        <string>/usr/bin/afplay</string>
        <string>-v</string>
        <string>1</string>
        <string>/System/Library/Sounds/Chime.aiff</string>
    </array>
</dict>
</plist>
 
Last edited:
After upgrading to High Sierra, the chime doesn't occur until I get to the desktop, then cuts out before it finishes. Prior to this, it played just before the OS X login screen appeared. Any idea how I get it to play earlier again?
 
Status
Not open for further replies.
Back
Top