x230-osx icon indicating copy to clipboard operation
x230-osx copied to clipboard

Could you have a detail fix the audio guide?

Open leolicai opened this issue 8 years ago • 32 comments

I have patched the DSDT with your repo dsdt patches. And what the next do? If modify the AppleHDA.kext, where need edited? Thanks so much!

BTW The Fn + F8/F9 patch is error patch!

leolicai avatar Dec 09 '16 05:12 leolicai

Yes, more information would be helpful. I would like to be able to patch my own AppleHDA kext in Sierra. I see there is a utility to patch Apple HDA included in this repo, and I ran it, and it looked like it succeeded, but I wasn't sure where the output files ended up?

For now, I am using VoodooHDA.

chuckhacker avatar Jan 22 '17 03:01 chuckhacker

I also noticed that there is no ALC297VC_v3 -- I only see a ALC297VC_v2 -- was this a typo? Google doesn't return any search results for v3 either.

chuckhacker avatar Jan 22 '17 03:01 chuckhacker

I have the x230t and haven't been able to get audio working without VoodooHDA. I read something about dumping your audio codec using Linux and then patching accordingly, but I was unsuccessful on the macOS side. From the audio codec dump in Linux, my codec is actually an ALC269VC v2. Your codec may vary depending on your laptop. My audio layout is 13 so injected using Clover, but no sound devices were detected. I'd prefer a Clover approach or some other approach that doesn't involve patching AppleHDA as I don't want to have to do that after every update.

pcmantinker avatar Jan 22 '17 03:01 pcmantinker

This may be of some help, but I've not been able to get working with my ALC269VC v2: https://github.com/insanelydeepak/cloverHDA-for-Mac-OS-Sierra-10.12/tree/master/Laptop

pcmantinker avatar Jan 22 '17 03:01 pcmantinker

Maybe @Bizzaro could give us some pointers?

chuckhacker avatar Jan 23 '17 07:01 chuckhacker

@leolicai For Fn+F8/F9 patch, see this issue: #6

Syntax has slightly changed for ACPI 6.0, from what I understand.

chuckhacker avatar Jan 23 '17 07:01 chuckhacker

Has anyone figured this out yet? I am trying to get sound working on Sierra? How do I get the sound to work?

TheKnightCoder avatar Feb 11 '17 23:02 TheKnightCoder

I still haven't figured it out. I tried doing the "DSDT patch HDEF + IRQ (layout-id is in hex)" again today, and even with both patches, and after patching AppleHDA.kext with the ALC269VC v2 codec from https://github.com/Mirone/AppleHDAPatcher

I am still the greyed out speaker. I'd strongly prefer not to use VoodooHDA, even though it is a working band-aid (bad background noise, no autodetection of headphones plugged in, etc.).

Any ideas? Maybe @Bizzaro can help point us all in the right direction?

chuckhacker avatar Feb 19 '17 04:02 chuckhacker

Update: I got headphone out working (but not microphone in and internal built-in speaker out). Details soon to follow.

chuckhacker avatar Feb 26 '17 19:02 chuckhacker

Thats great @chuckhacker looking forward to the details

TheKnightCoder avatar Feb 27 '17 21:02 TheKnightCoder

For the audio use cloverHDA.
Select Laptop, then unzip ALC269VC_v1/v2/v3.zip. You try between v1 v2 and v3. v1 worked for me.

  • Install the kext (kext wizard or other),
  • patch the DSDT as instructed in the README.txt (layout-id: 13 (0x0D)),
  • and in your clover config.plist add what's in config-cloverHDA.plist, basically the KernelAndKextPatches -> KextsToPatch section.

Don't forget CodecCommander.kext.
This method works without touching the vanilla AppleHDA.kext. If you did modified the vanilla AppleHDA.kext, you'll need to restore it. You can found it too in the link above.
Sometime, after sleep, there is no sound, so I use this script in a terminal:
alias reloadcodeccommander='sudo kextunload /System/Library/Extensions/CodecCommander.kext && sleep 3 && sudo kextload /System/Library/Extensions/CodecCommander.kext'
You can put permanently in you .bash_profile.
And you're good to go!

nouatzi avatar May 17 '17 05:05 nouatzi

I must be doing something wrong - I haven't been able to get audio working on 10.11.6 using cloverHDA or Mirone's AppleHDA Patcher (using DSDT+clover's plist, or directly patching the AppleHDA kext).

I've gotten to the point where I can see the device in system information, but not in the sound preferences pane.

Is there any way of telling whether my x230 is using v1, v2 or v3 based on my linux codec dump? Whenever I try a new strategy, it involves 3 reboots per method to see if it works - it's such a slow process of trial and error.

mgraham avatar Jun 05 '17 16:06 mgraham

@mgraham , did you installed CodecCommander.kext from Rehabman ? It seems v1, v2 and v3 are working in Sierra (latest).

nouatzi avatar Jun 06 '17 12:06 nouatzi

@mgraham, Can I see the dsdt you use?

ymuns avatar Jun 06 '17 13:06 ymuns

Ok, I just tried again with the DSDT+CloverHDA+CodeCommander, using ALC269VC_v1. No luck.

@nouatzi: Thank you for the nudge to install CodeCommander. I was waiting to install it until after I got audio working - I knew it was necessary for audio after sleep, etc. I didn't realize that it was necessary for audio to work at all. Anyway, I've installed it now, but I didn't add any DSDT config for it specific to ALC269VC. Should I?

@ymuns Here is my DSDT.dsl:

https://gist.github.com/mgraham/d510b5e3bdeab924723cf1e0e059983f

mgraham avatar Jun 06 '17 18:06 mgraham

@mgraham , I haven't found a way to properly configure CodecCommander, so for now I use it as it is. So I believe you've updated your clover config.plist in order to add what's in config-cloverHDA.plist ? There are 2 things in config.plist to add:

  • Devices -> Audio -> Inject : 13
  • Kernel and Kext Patches -> KextsToPatch: 3 AppleHDA patches to apply...

take a look at my config PS: I use Clover Configurator app to edit my config.plist

nouatzi avatar Jun 06 '17 19:06 nouatzi

@nouatzi - Yup, I did update clover's config.plist. but I did it manually (copying and pasting in two xcode windows). So I may have made a mistake.

Thanks very much for your config - I will do a text diff on them tonight!

mgraham avatar Jun 06 '17 19:06 mgraham

@nouatzi - you're using a vanilla AppleHDA.kext, right?

edit - sorry - I see that you mentioned that in your original post.

mgraham avatar Jun 06 '17 22:06 mgraham

@mgraham - i fix your dsdt<_IRC, HDEF, and think vantage button (if you press think vantage key, the fan speed change max or normal ) and led patch too

first. clover config.plist Devices -> Audio -> Inject : 28 Kernel and Kext Patches -> KextsToPatch: 3 AppleHDA patches to apply

second. you use kextutility S/L/E (AppleHDARealtekALC269.kext) and Never delete it(Applehda)

I hope to hear good news for you

ymuns avatar Jun 07 '17 00:06 ymuns

@ymuns - thank you! I installed your config.plist and your DSDT.aml and the kext, but there were still no audio devices in the Sound Preferences Panel.

Would you mind giving me the source patches you made? I disassembled your DSDT.aml and tried diffing with my own DSDT.dsl, but there are too many irrelevant differences to see the patches you made.

mgraham avatar Jun 07 '17 04:06 mgraham

@nouatzi - I tried installing your clover plist and your DSDT.aml file and the cloverHDA.kext, and still not working :(

Thanks for sharing your config.

mgraham avatar Jun 07 '17 04:06 mgraham

@mgraham you should save as .aml and then efi>clover>acpi>patch

i think hda patcher affected your original applehda trying again (original had.kext -10.11.6 version )

  1. s/l/e(original applehda.kext + alc269.kext)

  2. check my config.plist(device audio layout id 28 and kernel and kext to patch) and match your config.plist

  3. you should cashe rebuild open terminal sudo touch /System/Library/Extensions && sudo kextcache -u /

  4. reboot

ymuns avatar Jun 07 '17 05:06 ymuns

@ymuns - still not working. :(

Thanks for giving me a vanilla AppleHDA.kext - I was beginning to wonder if that was the problem. Does not seem to make a difference, though.

I did the following: $ mkdir /Volumes/efi $ sudo mount -tmsdos /dev/disk0s2 /Volumes/efi

  • copied config.plist to /Volumes/efi/EFI/CLOVER/
  • copied DSDT.aml to /Volumes/efi/EFI/CLOVER/ACPI/patched
  • used EasyKext to install your AppleHDA.kext and AppleHDARealtekALC269.kext to /System/Library/Extensions

Ran: $ sudo touch /System/Library/Extensions && sudo kextcache -u /

Rebooted.

System Information shows Audio-> Devices -> Intel High Definition Audio -> Audio ID: 28

Sound Preference Pane shows:

  • no input devices found
  • no output devices found

I am getting the following messages in the console - not sure if they're relevant:

2017-06-07 2:12:50.000 AM kernel[0]: CodecCommander: Version 2.6.3 starting on OS X Darwin 15.6.
2017-06-07 2:12:50.000 AM kernel[0]: Sound assertion in AppleHDAController at line 567
2017-06-07 2:12:50.000 AM kernel[0]: Sound assertion in AppleHDAController at line 421

mgraham avatar Jun 07 '17 06:06 mgraham

My method is for Sierra.
However from the same user, there is another repository for ElCapitan. Did you tried this one ?

nouatzi avatar Jun 07 '17 06:06 nouatzi

@mgraham Could you give me efi / clover folders and a list of using kext?

ymuns avatar Jun 07 '17 06:06 ymuns

@mgraham

trying again (more compile original dsdt x230)

ymuns avatar Jun 07 '17 08:06 ymuns

@noatzi - I don't know how I missed that! I tried with the ElCapitan repo and still no joy.

BUT - @ymuns - your last compile worked!!! I have sound!!!

Thank you both for helping me get this working! It has been a lot of sleep-deprived nights for me!

mgraham avatar Jun 07 '17 17:06 mgraham

@ymuns - Could you please give me the uncompiled source for the DSDT? I'd like to figure out why it worked when nothing else did.

Also, where did AppleHDARealtekALC269.kext come from? Did you make it yourself? How does it work?

By the way, this time I did exactly the same as last time - copied your DSDT.aml and config.plist onto the EFI partition, installed the AppleHDARealtekALC269.kext, cleaned the cache and rebooted. I didn't install any of the other kexts you supplied.

(Although CodecCommander.kext is still installed from before).

mgraham avatar Jun 07 '17 17:06 mgraham

Also, @ymuns, I tried your fix with my own config.plist (after copying in your KextsToPatch section).

It still works great. So it was something with my DSDT file, I think.

mgraham avatar Jun 07 '17 17:06 mgraham

@mgraham I think something patch you applied affects HDA, so dsdt.aml does not work and I seek the original x230 dsdt.aml and patched them in order. I also experienced your situation and no one helped me so I wanted to help you

My source _ rehabman laptop patch and alc269.kext( https://www.tonymacx86.com/threads/guide-lenovo-t430-el-capitan.175935/)

I know that once the driver is loaded, it will work before the big changes happen. anyway, I'm glad you got the sound. Have a good day

ymuns avatar Jun 07 '17 22:06 ymuns