Jump to content

z1326

Members
  • Content count

    35
  • Joined

  • Last visited

About z1326

  • Rank
    InsanelyMac Protégé
  1. z1326

    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. z1326

    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. z1326

    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. z1326

    [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 )
  5. z1326

    [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.
  6. z1326

    [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
  7. z1326

    [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.
  8. z1326

    [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 )
  9. z1326

    [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.
  10. z1326

    [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
  11. codec_dump.txt codec extracted from Ubuntu
  12. getdump.rtf Here is the getdump of the audio card。
  13. My laptop: Dell Alienware M17X R4 Specs:HM77 chipset, i7-3610qm(HD4000 ticked), 12GB ram, AMD 7970M graphics(Blocked in dsdt to save power and reduce heat produce),Crucial C400 256G SSD, 1TB HDD, 1920x1080 WLED display I installed Yosemite on my laptop and modified my dsdt.Thanks to Rehabman`s patches I`ve overcomed most of the difficulties. (eg,HD4000,battery icon,backlight,dsdt errors) But the webcam remained malfunction. As you can see the webcam in the USB info of system report is allright. (Translation:集线器-Hub,产品ID-Product ID,厂商ID-Vendor ID,版本-Version,速度-Speed,制造商-Manufacturer,位置ID-Location ID,BCM20702A0-The bluetooth chip) But if I go to the page of camera in system report,`no video captrue device founded` will be replied after a long time of spinning wheel.(As is shown in the pictrue ) (Translaton:相机-Camera,找不到视频采集设备-no video captrue device founded) Also FaceTime-Stucked when opened,need force teminate PhotoBooth-No camera founded. Now I`m convinced that this is not the hardware`s fault since the same laptop webcam is reported normally fuctional by others. For example,here http://www.insanelym...adeon-7970m-hd/ (I tried this dsdt and there is no luck) And I have a friend who use the same laptop.He also installed Yosemite on it.His webcam is OK,too.I also tried his dsdt and kext drivers,I flashed the same BIOS as his,I even ask him to have his OS X partition packed to a image and I restored the image but the problem remained. And I find that after the webcam failed in OSX,when I reboot to Windows,Windows will report that there is an unknown device which can`t be recognized (In fact the unknown device is the webcam). The only way to get the webcam back is pressing `fn+f9` twice to turn the webcam off and on again. The only difference of the hardware I can find between mine laptop and my friend`s laptop is the wireless config.The Alienware M17X R4 has two kinds of wireless config.The first one is intel 2230 wifi-bluetooth combination card(My friend`s laptop) and the second is Killer N1103 wificard+Broadcom BCM20702A bluetooth chip(my laptop,and I`ve replaced the Killer N1103 to BCM4322(Dell DW1510) since it can`t be ticked under OS X .I also flashed the BCM4322`s ID to make it a `pure` apple device under Linux ) The difference is: for the intel 2230 combination card config,the bluetooth and the webcam don`t share the same internal USB hub but for my config the BCM20702A0 share the same internal USB hub with the webcam.However I disabled the bluetooth in BIOS to test but the webcam is still half dead as discribed above. I also found the following things in the system log which I believe it`s the webcam. AppleUSBEHCI:Found a transaction which hasn't moved in 5000 milliseconds on bus 0x1a,time out! (Addr:4,EP:0) apsd Certificate not yet generated I`ve search the Internet for almost a month and till now there`s no clue.However these two unlucky guys seemed to experience the same problem as me. http://www.tonymacx86.com/yosemite-laptop-support/147227-hp-pavilion-dv6-6121tx-2nd-gen-camera-not-working.html http://www.tonymacx8...ot-working.html So now I`m wondering if there`s something wrong with the internal USB port.So please help me to diagnose the problem. BTW:Is there someone who have the USBProber.app ?I think it`s apple`s USB transprot sniffing program.It should be in the IOUSBFamily.kext-Plugin but I can`t find it there and since I don`t have a developer account I can`t download that from apple website. And here`s my ioreg.Alienware-M17X-R4-MacBook Pro.zip (If there`re some gramma or spelling mistakes then I`m soory for my poor English )
  14. Zenith432,RehabMan and other developers,please help My laptop: Dell Alienware M17X R4 Specs:HM77 chipset, i7-3610qm(HD4000 ticked), 12GB ram, AMD 7970M graphics(Blocked in dsdt to save power and reduce heat produce),Crucial C400 256G SSD, 1TB HDD, 1920x1080 WLED display I installed Yosemite on my laptop and modified my dsdt.Thanks to Rehabman`s patches I`ve overcomed most of the difficulties. (eg,HD4000,battery icon,backlight,dsdt errors) But the webcam remained malfunction. As you can see the webcam in the USB info of system report is allright. (Translation:集线器-Hub,产品ID-Product ID,厂商ID-Vendor ID,版本-Version,速度-Speed,制造商-Manufacturer,位置ID-Location ID,BCM20702A0-The bluetooth chip) But if I go to the page of camera in system report,`no video captrue device founded` will be replied after a long time of spinning wheel.(As is shown in the pictrue ) (Translaton:相机-Camera,找不到视频采集设备-no video captrue device founded) Also FaceTime-Stucked when opened,need force teminate PhotoBooth-No camera founded. Now I`m convinced that this is not the hardware`s fault since the same laptop webcam is reported normally fuctional. For example,here http://www.insanelymac.com/forum/topic/300816-working-ati-mobility-radeon-7970m-hd/ (I tried this dsdt and there is no luck) And I have a friend who use the same laptop.He also installed Yosemite on it.His webcam is OK,too.I also tried his dsdt and kext drivers,I flashed the same BIOS as his,I even ask him to have his OS X partition packed to a image and I restored the image but the problem remained. And I find that after the webcam failed in OSX,when I reboot to Windows,Windows will report that there is an unknown device which can`t be recognized (In fact the unknown device is the webcam). The only way to get the webcam back is pressing `fn+f9` twice to trun the webcam off and on again. The only difference of the hardware I can find between mine laptop and my friend`s laptop is the wireless config.The Alienware M17X R4 has two kinds of wireless config.The first one is intel 2230 wifi-bluetooth combination card(My friend`s laptop) and the second is Killer N1103 wificard+Broadcom BCM20702A bluetooth chip(my laptop,and I`ve replaced the Killer N1103 to BCM4322(Dell DW1510) since it can`t be ticked under OS X .I also flashed the BCM4322`s ID to make it a `pure` apple device under Linux ) The difference is: for the intel 2230 combination card config,the bluetooth and the webcam don`t share the same internal USB hub but for my config the BCM20702A0 share the same internal USB hub with the webcam.However I disabled the bluetooth in BIOS to test but the webcam is still half dead as discribed above. I also found the following things in the system log which I believe it`s the webcam. AppleUSBEHCI:Found a transaction which hasn't moved in 5000 milliseconds on bus 0x1a,time out! (Addr:4,EP:0) apsd Certificate not yet generated I`ve search the Internet for almost a month and till now there`s no clue.However these two unlucky guys seemed to experience the same problem as me. http://www.tonymacx86.com/yosemite-laptop-support/147227-hp-pavilion-dv6-6121tx-2nd-gen-camera-not-working.html http://www.tonymacx86.com/laptop-compatibility/140757-asus-k40in-webcam-not-working.html So now I`m wondering if there`s something wrong with the internal USB port.I think as the author of genericUSBXHCI,Zenith432 might know a lot about USB port.And RebabMan and other developers might be helpful,too So could you help me to diagnose the problem. BTW:Is there someone who have the USBProber.app ?I think it`s apple`s USB transprot sniffing program.It should be in the IOUSBFamily.kext-Plugin but I can`t find it there and since I don`t have a developer account I can`t download that from apple website. And here`s my ioreg. Alienware-M17X-R4-MacBook Pro.zip (If there`re some gramma or spelling mistakes then I`m soory for my poor English )
×