Contribute
Register

Making Script to fix Audio after Update.

Status
Not open for further replies.
Joined
Jul 3, 2014
Messages
310
Motherboard
Acer-aspire v5-571p
CPU
Intel Core i7 3667U/HM77
Graphics
Intel HD4000 mobile 1366x768
Mac
  1. 0
Classic Mac
  1. 0
Mobile Phone
  1. iOS
Hi i am making a bash script to fix my audio after an update

It downloads my audio kexts (hosted in my dropbox account) then installs them /S/L/E/
i don't know the terminal command for rebuilding kext cache though? can someone help me out please thanks.

If you want to use it and don't know how let me know :)

this uses the files from this post (http://www.insanelymac.com/forum/files/file/194-realtek-alc271x-applehda-audio/)

THIS STILL NEEEDS AT PATCHED DSDT (SEE LINK ABOVE)

Is this the correct way to install kexts?

THIS IS A WIP (work in progress)

Code:
mkdir -p /tmp/kexts/
    cd /tmp/kexts/
    curl -L -o audio_kext.zip  https://www.dropbox.com/s/6h2wnp3ykjio2p8/kexts.zip?dl=1
    unzip audio_kext.zip
    cd
    sudo cp -r  /tmp/kexts/audio_kext/AppleHDA.kext /Volumes/OS\ X\ El\ Capitan/System/Library/Extensions/
    sudo cp -r  /tmp/kexts/audio_kext/IOAudioFamily.kext /Volumes/OS\ X\ El\ Capitan/System/Library/Extensions/
     sudo cd  /Volumes/OS\ X\ El\ Capitan/System/Library/Extensions/
    sudo chmod -R 755 AppleHDA.kext
    sudo chown -R root:wheel AppleHDA.kext
    sudo chmod -R 755 IOAudioFamily.kext
    sudo chown -R root:wheel IOAudioFamily.kext
    #rebuild kext cache command here.
    rm -rf /tmp/kexts
    echo "Please reboot, for changes to take effect"


Any one is free to do what they want with this script if they want. Except charging money/goods for it.
 
Last edited:
Hi i am making a bash script to fix my audio after an update

It downloads my audio kexts (hosted in my dropbox account) then installs them /S/L/E/
i don't know the terminal command for rebuilding kext cache though? can someone help me out please thanks.

If you want to use it and don't know how let me know :)

this uses the files from this post (http://www.insanelymac.com/forum/files/file/194-realtek-alc271x-applehda-audio/)

Is this the correct way to install kexts?

Code:
mkdir -p /tmp/kexts/
    cd /tmp/kexts/
    curl -L -o audio_kext.zip  https://www.dropbox.com/s/6h2wnp3ykjio2p8/kexts.zip?dl=1
    unzip audio_kext.zip
    cd
    sudo cp -r  /tmp/kexts/audio_kext/AppleHDA.kext /Volumes/OS\ X\ El\ Capitan/System/Library/Extensions/
    sudo cp -r  /tmp/kexts/audio_kext/IOAudioFamily.kext /Volumes/OS\ X\ El\ Capitan/System/Library/Extensions/
     sudo cd  /Volumes/OS\ X\ El\ Capitan/System/Library/Extensions/
    sudo chmod -R 755 AppleHDA.kext
    sudo chown -R root:wheel AppleHDA.kext
    sudo chmod -R 755 IOAudioFamily.kext
    sudo chown -R root:wheel IOAudioFamily.kext
    #rebuild kext cache command here.
    rm -rf /tmp/kexts
    echo "Please reboot, for changes to take effect"


Any one is free to do what they want with this script if they want. Except charging money/goods for it.

rebuild cache:
Code:
sudo touch /System/Library/Extensions && sudo kextcache -u /

You can install to /Library/Extensions with 'sudo cp -R TheKextYouWantToInstall.kext /Library/Extensions'

No need to refer to the specific volume name as you can always use /Library/Extensions (eg. at root).

Note: Generally no need to patch IOAudioFamily.kext.
 
Yo, thanks a lot for this. Got the audio working on my V5-571p with perfectly!:headbang:

P.S. I noticed you've got the same laptop as me, did you manage to get WIFI working? I'm having to use a USB dongle atm.
 
The USB 3.0 port works but I don't know if it is using USB 3.0 or not.

EDIT: Was the card easy to replace?
 
Oh, OK, if u want any other help please let me know :)

Edit: here is a video, https://www.youtube.com/watch?v=2wdioOF3Ryo

it was very easy for my (i have no experience in this sort of thing) i used a + screwdriver and a fork to open the laptop.

then used PVC tape to cover port 20 (for wifi) and 51 (for bluetooth) only do this if it doesnt work without tape.

see this picture: http://forum.notebookreview.com/attachments/ceh123_whitelisthack-jpg.116876/

Also if you want more help open your own thread :) and i will try and help you there
 
Status
Not open for further replies.
Back
Top