############################################ # DESCRIPTION: Fix to make your VoodooHDA # # kext UNLOAD after waking from sleep. # # It fixes VoodooHDA problems with sleep. # # ---------------------------------------- # # VERSION: v.1.1 # # ---------------------------------------- # # AUTHOR: Thireus # # ---------------------------------------- # # INFO: http://thireus.dareyourmind.net # ############################################ # Vars TRIES_UNLOAD=3 # Script echo "Thireus - rc.sleep - VoodooHDA" >> /var/log/system.log i=0 while [[ $i -lt $TRIES_UNLOAD ]] && ! /sbin/kextunload /System/Library/Extensions/VoodooHDA.kext; do echo "Thireus - VoodooHDA - kextunload "$i >> /var/log/system.log sleep 1 ((i++)) done # End of script