Here you'll learn how to ask your computer to do tasks before going to sleep and after waking from sleep.
This article is about how to fix these main issues:
- VoodooHDA volume set to max after sleep
- VoodooHDA not working after sleep
- USB drives not correctly unmounted before sleep
For any suggestions:
First of all you need to download this application: SleepWatcher
Open the sleepwatcher package and install the application.
If it's asked to reboot, then do it.
Now, go to /etc/ and get these two files: rc.sleep and rc.wakeup
Copy and paste them on your desktop or wherever you like (make sure to copy them too into a backup folder too)
Once you pasted them, you'll have to edit them, open these two files with TextEdit
(Once edited you can replace the old ones located into /etc/)
Ok so here we are.
You can see what are the tasks your computer do before going to sleep --> rc.sleep
You can see what are the tasks your computer do after waking from sleep --> rc.wakeup
Let's begin with some basic hacks:
If this hack is not correctly working, just try to reboot your computer.
FIX: VoodooHDA volume set to max after wakeup.
FILE(S) TO BE MODIFIED: .wakeup (you need to create this one, this is NOT the rc.wakeup file!!!)
This file should be located into your Home directory (/Users/YOURUSERNAME), don't foreget it is a hidden file!
Type into the terminal: open -a TextEdit .wakeup
If nothing happens this file doesn't exist, but if it does, jump to the modification instructions.
If .wakeup doesn't exist, download my wakeup file and put this file into your /Users/YOURUSERNAME directory (called Home directory):
Download & extract: wakeup.zip ~ 4ko
Then rename it as .wakeup to hide it!
Type into the terminal (type the admin password when asked):
sudo chmod 755 .wakeup
That's it! You don't need to read the modification instructions
MODIFICATIONS: (Only if you didn't downloaded and installed my file wakeup.zip)
Add at the end of the .wakeup file these lines: VoodooHDA_Volume_Fix.txt
NOTE: The .wakeup file should be located into your Home directory (/Users/YOURUSERNAME), don't foreget it is a hidden file!
FIX: VoodooHDA global sleep issues (this should fix all the issues you have with VoodooHDA after waking from sleep). THIS FIX DOES NOT WORK WITH MY 10.5.8 INSTALL, FEEL FREE TO TRY!!
FILE(S) TO BE MODIFIED: rc.sleep; rc.wakeup
Add at the end of the rc.sleep file these lines: VoodooHDA_sleep.txt
Add at the end of the rc.wakeup file these lines: VoodooHDA_wakeup.txt
NOTE: If the kext doesn't load after waking from sleep, just try to add VoodooHDA_sleep.txt before the VoodooHDA_wakeup.txt lines of your rc.wakeup file. So it will try to unload your kext after wakeup too! Hope this help
FIX: USB or SD Card reader that doesn't correctly unmount before going to sleep
FILE(S) TO BE MODIFIED: rc.sleep
Add at the end of the rc.sleep file these lines: USB_sleep.txt
Don't forget to edit #Vars to give a name for the USB you want to unmount!!!
FIX: Launches WirelessUtilityCardbusPCI to get connected to your wireless network after waking from sleep (For eeepc)
FILE(S) TO BE MODIFIED: rc.wakeup
Add at the end of the rc.sleep file these lines: WirelessUtilityCardbusPCI_wakeup.txt