Jump to content


  • Content count

  • Joined

  • Last visited

About z1326

  • Rank
    InsanelyMac Protégé
  1. AppleALC — dynamic AppleHDA patching

    # I offer advices,guess, test and feedback , it is biggreat1976 who did the modification. # We used layout id 3 but we think the layout id could be changed as you like. Resources.zip
  2. AppleALC — dynamic AppleHDA patching

    I've already pasted the codec file in #642, and these are the reflection relationship between hardwares and routes. (All the following node numbers are in hex.) This laptop has internal mic above the LCD, internal speakers on the front and four 1/8 jacks on the right side. node 7 - node 12 # internal mic node b - node 2 # internal speakers node d - node 6 # spdif out, 1/8 jack A, the jack beside the USB3.0 port node 8 - node 11 - node 4 # line in and line out combo, 1/8 jack B, the jack beside jack A, in Windows this jack is usually used as external mic in, but when you set 5.1 output and keep jack C and jack D empty, this jack could be used as output and it can output left front, left back, right front and right back channels, however it can’t output the middle channel and woofer channel. However if you link output devices (headphone, speakers, etc) to jack C or D, then this jack could not be used as output. node 10 - node 3 # headphone out, jack C, the jack beside jack B. In order to get the HDMI audio output, this route should be disabled. In fact it might be another input/output combo jack because in Windows this jack is usually used as headphone out, but when jack B is occupied by output device (headphones, external speakers, etc) , this jack could be used as external mic in. node f - node 2 # 1/8 jack D, headphone jack, the jack beside jack C, you can set auto-switch between this jack and internal speakers. node a -node 13 internal recording route called as “what U hear”, in Windows you can record the audio which CA0132 outputs realtime, for example you can record a CD the same time you’re listening to it. node 9 - node e # seemed to be spdif in, but I can’t find that anywhere, even in Windows. According to my partner biggreat1976 all of the input/output route only have two node and the lack of middle mixer node makes volume control unavailable. So this is what we get finally: internal speaker output internal mic input headphone jack D output auto switch between headphone jack D and internal speakers headphone jack C disabled ( in order to get HDMI audio output )
  3. AppleALC — dynamic AppleHDA patching

    @wern apfel I tried your kext published in #532. I injected layout id 1 as guided and it didn't work for my Alienware M17X R4. In "System Pref" - "Sound", all of the input and output devices are gone. However I've been working with another guy in the past days and so far we've made an acceptable modification. I'll talk to him and try to publish our work.
  4. AppleALC — dynamic AppleHDA patching

    I‘ve made a mistake in post #642, injection of layout id 3 is no essential for HDMI audio output. I found that if the second heeadphone jack (pathmap NodeID 16 --- NodeID 3 , whicn means it should be node 10 --- node 3 in hex. ) show up in "System-Pref" - "Sound" - "Output" then the HDMI audio won't work. However if the second heeadphone jack is deleted from the system the HDMI audio output will return to normal.
  5. AppleALC — dynamic AppleHDA patching

    Hi vt9696, My laptop is Alienware M17X R4 ( i7-3610qm, HM77, HD4000, 7970M ( shut down in dsdt ), Creative CA0132 audio codec ). I tried AppleALC compiled in 2016,6,5, it make the CA0132 work with layout-id 11 injected in dsdt ( However layout-id 12 did’t work. ) But I’ve come up with some problems. 1 Input/Output volume control in “System Pref” - “Sound” is not available. 2 External mic jack is not working. 3 One of the external headphone jacks is not working. ( This laptop has dual headphone jacks) 4 Auto switch between internal speaker and external headphone jack is not working. I have to choose the output device in “System Pref” - “Sound” manually. Also, the name for internal speakers is wrong, it says line out but in fact that’s internal speaker. 5 I managed to make the HDMI output work but it appeals that HDMI audio output need layout-id 3 injected. However layout-id 3 will make CA0132 stop to work.( All input/output devices under “System Pref” - “Sound” are gone) Injection of layout-id 11 will get CA0132 back but that will break the HDMI audio output ( No HDMI options under “System Pref” - “Sound” - “Output” when HDMI connected ) BTW, I found that layout-id 9 and 10 are added for CA0132 yesterday, the info.plist for CA0132 is updated, too. Is it helpful to use the latest version? I’ll copy&paste the codec files for CA0132 and HD4000 HDMI from Ubuntu in the following.( Sorry for that but I cannot upload attach files due to Chinese Internet block system. )
  6. [GUIDE] USB Fix El Capitan 10.11

    @RehabMan @pokenguyen Another limit except for port injectors found in IOUSBFamily.kext These are the internal devices linked to the EH01 EH02 bus.( Of course the dsdt EHC rename is done to avoid bulit-in injectors) And I use MacBookPro 9,1 for Smbios. EH01---HUBN---PR01---PR17 // eSATA/USB2 2in1 combo slot. EH02---HUBN---PR01---PR11 //BCM20702A Bluetooth EH02---HUBN---PR01---PR12 //m17x Alienware FX control EH02---HUBN---PR01---PR15 //Webcam And there're 2 problems. Problem 1: The eSATA/USB2 combo slot is invalid, even EH01 bus doesn't show up in "About this mac"---"System Report"---"USB". Problem 2: After system boot, although you can see the webcam in "About this mac"---"System Report"---"USB". But nothing is in "About this mac"---"System Report"---"Camera". Of course no video feed in facatime, too. But I found if I make the system sleep, it will wake up immediately.( since I didn't patch the dsdt for this ) And after the wake up from the failed sleep, the camera will be back. And video feed in facetime is OK. After thinking of that, I remembered something. So I tried this. I edited Clover/config.plist, and changed the model in Smbios from MacbookPro 9,1 to MacPro 6,1. Then after reboot, the webcam is working directly, no need to sleep and wake up. I know my assumption might be right. So I found this : /System/Library/Extensions/IOUSBHostFamily.kext/info.plist/IOKitPersonalities/MacBookPro 9,1/IOProviderMergeProperties There're 4 items under it: kUSBSleepPortCurrentLimit ( 2100 ), kUSBSleepPowerSupply ( 2600 ), kUSBWakePortCurrentLimit ( 2100 ),kUSBWakePowerSupply ( 3200 ) And I checked these 4 items for MacPro 6,1. They turned out to be: kUSBSleepPortCurrentLimit ( 2100 ), kUSBSleepPowerSupply ( 4700 ), kUSBWakePortCurrentLimit ( 2100 ),kUSBWakePowerSupply ( 4700 ) So I changed the 4 item for MacBookPro 9,1 and made them exactly the same as MacPro 6,1 ( 2100, 4700, 2100, 4700 ), saved the change, installed the edited kext back to S/L/E with Easykext Utility. Then I changed the model in Clover/config.plist/Smbios back to MacBookPro 9,1 again. And after the reboot. The webcam is working directly, no need to sleep and wake up. Now I assume the 4 items are some kind of limit set by Apple to limit the power supply for USB bus. And each model ( identified from Smbios ) has its set. Sometimes this kind of limit could cause problems. How ever for the eSATA/USB2 2in1 combo slot there's still no clue. Could you check the dsdt code and give some suggestions ? ( More information and related files about this problem could be found in post 460, 462, 473 and 484 )
  7. [GUIDE] USB Fix El Capitan 10.11

    Device (EH01) { Name (_ADR, 0x001D0000) OperationRegion (PWKE, PCI_Config, 0x62, 0x04) Field (PWKE, DWordAcc, NoLock, Preserve) { , 1, PWUC, 8 } Method (_PSW, 1, NotSerialized) { If (Arg0) { Store (^^LPCB.EC0.ADPT, ^^LPCB.EC0.UWAK) } Else { Store (Zero, ^^LPCB.EC0.UWAK) } } Method (_S3D, 0, NotSerialized) { Return (0x02) } Method (_S4D, 0, NotSerialized) { Return (0x02) } Device (HUBN) { Name (_ADR, Zero) Device (PR01) { Name (_ADR, One) Name (_UPC, Package (0x04) { 0xFF, Zero, Zero, Zero }) Name (_PLD, Package (0x01) { Buffer (0x10) { /* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0008 */ 0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } }) //PR11-16 omitted Device (PR17) // PR17 is the eSATA/USB combo slot { Name (_ADR, 0x07) Name (_UPC, Package (0x04) { 0xFF, 0xFF, // I think here should be "Zero" since it's USB2 type A slot. But changing it didn't work. Zero, Zero }) Name (_PLD, Package (0x01) { Buffer (0x10) { /* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0008 */ 0xB1, 0x19, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } }) Alias (SBV2, SDGV) Method (_DSM, 4, Serialized) { Name (T_0, Zero) If (LEqual (Arg0, Buffer (0x10) { /* 0000 */ 0x8F, 0x70, 0xFC, 0xA5, 0x75, 0x87, 0xA6, 0x4B, /* 0008 */ 0xBD, 0x0C, 0xBA, 0x90, 0xA1, 0xEC, 0x72, 0xF8 })) { While (One) { Store (ToInteger (Arg2), T_0) If (LEqual (T_0, Zero)) { If (LEqual (Arg1, One)) { Return (Buffer (One) { 0x07 }) } Else { Return (Buffer (One) { 0x00 }) } } Else { If (LEqual (T_0, One)) { If (LEqual (SDGV, 0xFF)) { Return (Zero) } Else { Return (One) } } Else { If (LEqual (T_0, 0x02)) { Return (SDGV) } } } Break } } Return (Zero) } } //The rest part omitted The EH01 USB2.0 bus just disappear and of course the PR17 device won't work. Is there something wrong with the dsdt code? I didn't use any customer injectors.
  8. [GUIDE] USB Fix El Capitan 10.11

    I've checked the usb info in AIDA64 windows. And didn't find anyting wrong with the dsdt. And for very few times the eSATA/USB combo slot worked. This is the ioreg for that precious moment. esata-ok.zip
  9. [GUIDE] USB Fix El Capitan 10.11

    Multiple dsdt? I don't think so. But I have an EFI partition in my harddisk but I usually use a USB stick to boot OS X. ( Of course the USB stick has a EFI partiton,too ) And I've got Clover in both EFI partitions. But I don't think the Clover in the harddisk EFI partition matters because I don't boot from there. Am I wrong? Also, I don't know why PR18 at EH01, PR12,16 at EH02 are disabled. The dsdt just says that and I take it. In fact the "m17x" device is on PR12,EH02. But "m17x" always shows up in USB---system report.
  10. [GUIDE] USB Fix El Capitan 10.11

    The ioregs uploaded in post 460 was from ioreg v2.0b1, not v2.1, sorry for that. These two are from ioreg v2.1 1 before sleep ioreg v2.1.zip 2 after slep ioreg v2.1.zip And this is the patchmatic extract. extract.zip Device specific? How can I check it and if it is, how to improve? ( The webcam was fine in Yosemite ) About EH01,the built in injector for MacBook Pro 9,1- EHC1 ( the model i'm using in Clover Smbios ) is PRT1 01000000. However it's still not working.( Before the rename ) And I find it's difficult to handle the IOKit so I think editing dsdt is better for me ( at least I can understand the change of _UPC and _PLD )
  11. [GUIDE] USB Fix El Capitan 10.11

    Something is wrong with the internal devices under EH01 and EH02 bus. My laptop: Alienware M17X R4, 3610QM, HM77, HD4000( 7970M disabled in dsdt), 4x USB3.0 slot ( working fine ), 1x eSATA/USB2.0 combo slot. The Devices attached to EH01 and EH02: eSATA/USB2 2in1 combo slot ( positon: EH01---HUBN---PR01---PR17) // It doesn't show up and I can't even find the EH01 USB bus in the "USB page" of system report. BCM20702 Bluetooth ( positon: EH02---HUBN---PR01---PR11 ) // working well m17x ( positon: EH02---HUBN---PR12 ) // I think it's the Alienware FX control, it shows up in system report and for me that's good enough. Webcam ( positon: EH02---HUBN---PR15 ) // It could be senn in the "USB page" of system report, but it's not working after 10.11 boot.( No video device in the "Camera page" of system report, no video feed in facetime.) But after a failed, immediate wake up sleep ( I have not patched the dsdt for that ), the webcam will recover.( Get video feed in facetime ). This is the ioreg when the webcam refuse to work after system boot. 1-eSATA-port-gone-Webcam-don't-work.zip And this is the ioreg when the webcam is working fine after sleep and wake up. 2-eSATA-port-gone-Webcam-recover-after-wake-up.zip This is my dsdt. dsdt.dsl.zip BTW: dsdt patches applied 1 GFX0 to IGPU rename 2 HD4000 high resolution 3 HD3000 HD4000 brightness fix 4 Battery patch for XPS L502 5 OS Fix Windows 8 All of them comes from MACiASL RehabMan source.
  12. [GUIDE] USB Fix El Capitan 10.11

    Problems with USB2.0 bus. Laptop:Alienware M17X R4 (HM77,4x USB3,0,1x USB2.0/e-SATA, and I think the bluetooth,the webcam are all linked to internal USB2.0 bus) Here is the structrue: XHC1---4x USB3.0 EHC1---USB2.0/e-SATA port @port17 EHC2---Bluetoooth (BCM20702A0) @port11 ---M17X (I'm not sure what's this,maybe fastkey or Alieware light control or something else) @port12 ---Webcam @port15 I managed to make all of the 4 USB3.0 work. But some of the devices under EHC1/2 are not working. And what's worse, I can't tell the reason cause the malfunction seems to be random. (For this SMBios/modified info.plist the bluetooth is OK but for that SMBios/modified plist the e-SATA is OK while the bluetooth is gone). Ports Restriction removing seems to be invalid. Here is the Yosemite ioreg .Alienware-M17X-R4-MacBook Pro.zip Here is the El Capitan ioreg (bluetooth&webcam are working,e-SATA/USB2.0 invalid) Admin MacBook Pro cam&bt-ok.zip Here is the El Capitan ioreg (e-SATA/USB2.0 is working,bluetooth&webcam invalid) Admin MacBook Pro esataok.zip Here is my dsdt. dsdt.dsl.zip
  13. codec_dump.txt codec extracted from Ubuntu
  14. getdump.rtf Here is the getdump of the audio card。