Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XPS 9530 - external displays #52

Open
animator013 opened this issue Dec 5, 2016 · 60 comments
Open

XPS 9530 - external displays #52

animator013 opened this issue Dec 5, 2016 · 60 comments

Comments

@animator013
Copy link

animator013 commented Dec 5, 2016

Hi there,

used your script to install el capitan to xps 9530. Everything works as expected but I have a big issue. When I ran your script for first time there was a little graphics glitch on top bar. Plugged in HDMI and mDP monitors and everything including audio was working. After sleep internal display won't wake.

After i was searching for the graphics glitch fix a found out that I need to rebuild kext cache once again. I did that and graphics glitch went away. But now i can't use external displays whatsoever. HDMI and mDP is not working at all. Sleep is now working for internal display.

When i use dark void patch 1 external monitor works without glitches with no audio and after connecting second one I get kernel panic.

I don't know how to resolve this, please advise.

@animator013
Copy link
Author

animator013 commented Dec 5, 2016

I looked into your config.plist and you are using different ig-platform-id than darkvoid uses. That's why it is not working for me.

<key>ig-platform-id</key>
<string>0x0a2e0008</string>

Anyways I managed to fix the kernel panic with HDMI-audio patch with 12 timing (but noone knows if it is timing or not).

Now 2 displays work but without audio. That is just nice to have for me. If you have any ideas I will be grateful.

@syscl
Copy link
Owner

syscl commented Dec 5, 2016

I have another two exam tomorrow, I know what's wrong and will fix it in Wednesday.

@syscl
Copy link
Owner

syscl commented Dec 8, 2016

@animator013 try my latest config.plist and Deploy.sh

syscl

@animator013
Copy link
Author

Will try it. Thanks.

One more question. I looked to your commits and seen that you are enabling dp, hdmi1 and hdmi2? My xps9530 has only 1 hdmi and 1 mDP. Does it matter?

@syscl
Copy link
Owner

syscl commented Dec 8, 2016

@animator013 It doesn't matter, I just see the information from linux that our laptop has DP, HDMI1 and HDMI2, thus, I guess the last HDMI is for external dock. Not yet confirmed.

BTW, once you plug in your HDMI, could you mind provide ioreg for me, I want to know which framebuffer@port macOS assign for our laptop.

Thanks,
syscl

@animator013
Copy link
Author

Ok. Will report back during weekend. Hope that yours ig-platform-id will work for me like the darkvoid's ☺

I am looking forward if all of this goes well. This is a masterpiece. Very good work.

@animator013
Copy link
Author

animator013 commented Dec 9, 2016

I had some time today and tried it. After deploying your script from current master external displays do not work. After connecting HDMI or DP nothing happens.

@animator013
Copy link
Author

animator013 commented Dec 9, 2016

After reverting back to my config.plist, everything works except HDMI audio.

http://pastebin.com/RenakJZU

I think yours ig-platform-id is not working for me.

FYI, i think you are not enabling 160MB but only 128MB.

<dict>
				<key>Comment</key>
				<string>Enable 160MB DVMT(48MB Framebuffer, 48MB Cursor),  4ports(port: 0000, 0105, 0204, 0306), 0x0a2e0008</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>CAAuCgEDAwMAAAAEAAAgAgAAUAE=</data>
				<key>Name</key>
				<string>AppleIntelFramebufferAzul</string>
				<key>Replace</key>
				<data>CAAuCgEDBAMAAAAIAAAAAwAAAAM=</data>
			</dict>
CAAuCgEDBAMAAAAIAAAAAwAAAAM=
08 00 2e 0a 01 03 04 03 00 00 00 *08* 00 00 00 03 00 00 00 03

8*16Mb = 128Mb. But this is based on fact that the hex value is about DVMT preallocating. I have mine setup at 0a which is 10*16=160Mb.

Nevertheless, it does not have any impact on the system even if I have it set in BIOS to 160Mb. I successfully booted with your deploy normally with full qe/ci but without possibility to connect an external monitor neither with HDMI or DP.

Also I think that 0105 is my HDMI port but it can be related to ig-platform-id.

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

@animator013 that's the reason why I asked you for ioreg to see which framebuffer@port has been assigned when HDMI is connected, since I have no HDMI and DP display ATM.

what specs you have?

For both QHD+ and UHD model, it's better to use 0a2e0008 than 0a260006.

syscl

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

@animator013 Try my latest config.plist and deploy.sh

syscl

@animator013
Copy link
Author

animator013 commented Dec 9, 2016

My specs are.

XPS 15 (9530)
Intel Core i7-4712HQ
QHD+ 3200x1800 (1 hdmi, 1mDP)
Geforce 750m

Tested latest deploy with config.plist. Same result. No external display working. Ports look totally dead. Don't know if anything can be seen in the ioreg.

Posting my ioreg with both hdmi and mDP plugged in.
ioreg.txt

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

Use this to dump ioreg, one port at a time, not both: if you plug in HDMI, then post the HDMI-ioreg, then unplug cable, plug in DP, post DP-ioreg.

syscl

@animator013
Copy link
Author

Posting ioregs with the IORegExplorer 2.1.

Hdmi & dp
ioregs.zip

@animator013
Copy link
Author

Reposting HDMI ioreg, something messed up content type.
hdmi-ioreg.zip

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

Connector type is OK now, but I don't see any external display under Framebuffer@port, so two possible cases:

  1. DP and HDPI are corrupted, this need to be confirmed under Windows
  2. Still need to refine my config.plist

Remember to use my config.plist directly and do forget to rebuild kernel cache and reboot...

Wait for you report,
syscl

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

BTW, do your touch screen work OOB?

syscl

@animator013
Copy link
Author

animator013 commented Dec 9, 2016

Touch screen doesn't work. But I think that needs some driver. I do not use it anyways.

DP and HDMI cannot be corrupted because when I use my config, both displays work.

Always i copy everything from your clover dir, to EFI. Then i run Deploy.sh. Is it not correct ?

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

So, could you post the ioreg with HDMI plugged-in when using your config.plist.

Since, I don't think this is an issue related to ig-platform-id, if that is the case, I can fix it by kexts2patch :)

So don't worry,
syscl

@animator013
Copy link
Author

Posting my ioregs :)

Thank you for your time.
myioregs.zip

@animator013
Copy link
Author

animator013 commented Dec 9, 2016

I noticed a weird thing. When i replaced clover folder with my content and do not rebuild the kext cache after reboot i had displays working with audio. After kextcache rebuild no audio :)

Posting my clover folder:
CLOVER.zip

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

Please try this
config.plist.zip

syscl

@animator013
Copy link
Author

There is intel inject false, should I run Deploy.sh ?

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

oh, sorry, change it to inject = true.

syscl

@animator013
Copy link
Author

animator013 commented Dec 9, 2016

Ok what i've done:

  • replaced all content with your clover folder
  • run Deploy.sh
  • rebuild kextcache
  • reboot -> no displays
  • replaced config.plist with one your provided with inject set to true
  • reboot -> no displays either

I opened diff tool what you've changed and found nothing ? :)

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

No, you should not run deploy.sh

I change the binary patch...

syscl

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

Try this
config.plist.zip

We first try to fix HDMI and HDMI-audio, then we go to fix DP, ok?

syscl

@animator013
Copy link
Author

animator013 commented Dec 9, 2016

Tried your new config.plist still HDMI is dead :/

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

Um, let me differ your config.plist with my config.plist...

syscl

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

I have a new way to test:

  1. use this config.plist.zip
  2. rebuild kernel cache
  3. reboot to see if HDMI or DP work

syscl

@animator013
Copy link
Author

Tested this config.plist:

  • HDMI works with audio
  • lost internal display
  • after connecting mDP display with HDMI already connected, kernel panic and shutdown

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

Ok, try this one
config copy.plist.zip

syscl

@animator013
Copy link
Author

animator013 commented Dec 9, 2016

Same situation occured.

  • HDMI works with audio
  • lost internal display
  • after connecting mDP display with HDMI already connected, kernel panic and shutdown

@animator013
Copy link
Author

animator013 commented Dec 9, 2016

I've made this config.

Everything works. But sometimes when hotplugging, displays are immediately on and audio works and sometimes displays are on after 2-3 seconds and audio doesn't work :) Same with mDP.

So i need to unplug and plug until audio works

config.plist.zip

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

@animator013 What you change?

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

@animator013 do you bring back the eDP patch?

syscl

@animator013
Copy link
Author

I merged my config with yours. But with the config you have now in repository i was experimenting on my own.

Removed:

...
<key>ig-platform-id</key>
<string>0x0a2e0008</string>
...
<dict>
				<key>Comment</key>
				<string>Enable lid wake after sleep for 0a2e0008 (c) syscl/lighting/Yating Zhou</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>QAAAAB4AAAAFBQkB</data>
				<key>Name</key>
				<string>AppleIntelFramebufferAzul</string>
				<key>Replace</key>
				<data>QAAAAA8AAAAFBQkB</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>eDP, port 0000, 0x0a260005 0x0a260006 0x0a2e0008 0x0a1600c0 credit syscl</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>AAAIAAIAAAAwAAAAAQUJAAAEAAA=</data>
				<key>Name</key>
				<string>AppleIntelFramebufferAzul</string>
				<key>Replace</key>
				<data>AAAIAAAEAAAwAAAAAQUJAAAEAAA=</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>Enable 160MB DVMT(48MB Framebuffer, 48MB Cursor),  4ports(port: 0000, 0105, 0204, 0306), 0x0a2e0008</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>CAAuCgEDAwMAAAAEAAAgAgAAUAE=</data>
				<key>Name</key>
				<string>AppleIntelFramebufferAzul</string>
				<key>Replace</key>
				<data>CAAuCgEDBAMAAAAIAAAAAwAAAAM=</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>HDMI-audio, port 0105, port 0306, 0x0a2e0008 credit syscl</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>AQUJAAAEAAAHAQAAAgQKAAAEAAAHAQAA/wAAAAEAAABAAAAA</data>
				<key>Name</key>
				<string>AppleIntelFramebufferAzul</string>
				<key>Replace</key>
				<data>AQUJAAAIAAAHAQAAAgQKAAAEAAAHAQAAAwYIAAAIAAAHAQAA</data>
			</dict>

And replaced with mine config entries:

...
<key>ig-platform-id</key>
<string>0x0a260006</string>
...
<dict>
				<key>Comment</key>
				<string>Enable 160MB BIOS, 48MB Framebuffer, 48MB Cursor for Azul framebuffer 0x0a260006</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>
				BgAmCgEDAwMAAAACAAAwAQAAYAA=
				</data>
				<key>Name</key>
				<string>AppleIntelFramebufferAzul</string>
				<key>Replace</key>
				<data>
				BgAmCgEDAwMAAAAKAAAAAwAAAAM=
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>eDP, port 0000, 0x0a260005 0x0a260006 0x0a2e0008 0x0a1600c0</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>
				AAAIAAIAAAAwAAAAAQUJAAAEAAA=
				</data>
				<key>Name</key>
				<string>AppleIntelFramebufferAzul</string>
				<key>Replace</key>
				<data>
				AAAIAAQAAAAwAAAAAQUJAAAEAAA=
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>HDMI-audio, port 0105(12), 0x0a260005 0x0a260006, 0x0d220003, 0x0a2e000a, 0x0a26000a</string>
				<key>Disabled</key>
				<false/>
				<key>Name</key>
				<string>AppleIntelFramebufferAzul</string>
				<key>Find</key>
				<data>AQUJAAAEAACHAAAA</data>
				<key>Replace</key>
				<data>AQUSAAAIAACHAAAA</data>
			</dict>

But still i am working with my ig-platform-id :/ so don't know if it is very good solution.

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

Please try this one
config copy.plist.zip

@animator013
Copy link
Author

Tried it:

  • internal display is back
  • mDP and HDMI ports are dead

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

@animator013 So now, it seems that 0a2e0008 is not suit for you, I have to make my script support another case for you..

syscl

@animator013
Copy link
Author

animator013 commented Dec 9, 2016

Do you think that ig-platform-id 0x0a260006 is ok then ? Do you have problems with that plug and unplug thing ?

Also while we were investigating this issue I found another one, which maybe you can help with.

After sleep when no external display is connected and wake I have no sound. But with your platform-id it is working...

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

Thus in XPS 9530 to make HDMI work:

  • ig-platform-id = 0x0a260006
  • HDMI-audio patches
  • port HDMI with timing 12(I don't know what this mean, could you please give me some external links or explain this value?)

Is that right? if this can power up HDMI/DP audio, I have to update my script and config.plist, thanks!

syscl

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

About sleep lose ext. sound issue, I am also looking at this, but this issue only happen at very special cases:

  • The known one for all laptops(not only dell, but also hp, lenovo...): playing audio then put computer into semi-sleep
  • Randomly occurs when wake from sleep, you can plugged-in you hp and unplugged it, then the sound will get fixed.

I want to figure out what's wrong in the second case.

syscl

@animator013
Copy link
Author

animator013 commented Dec 9, 2016

Yeah. HDMI and DP works then. Only hdmi patch is required that i provided to my config.plist.

The timing I found here: http://forum.osxlatitude.com/index.php?/topic/8723-enabling-dvidphdmi-with-intel-hd4200440046005000-and-iris-51005200-gpu/

I studied how to patch the framebuffer. Very good material. But also he didn't know what it is and marked it as priority. Somewhere on tonymacx i found RehabMan speaking of it as timing.

If i do not have that patch in the config.plist HDMI works but i guess without audio. BUT, there is an issue then. HDMI has timing hex 09 and DP has timing hex 09. If we leave it like this HDMI works alone but after connecting mDP -> kernel panic. Also if i connect mDP, it works and after connecting HDMI -> kernel panic.

After setting the port type to hex 08 and timing to hex 12, everything works. Hope that's clear enough. I am not an expert in this.

And yeah! After connecting HP the sound works again. Strange...

I'll move this to another issue for others #53

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

I am really appreciate, hope our hard work can make this project even better!

BTW, do you try to make both timing to same value to see if this will corrupt?

syscl

@animator013
Copy link
Author

Yeah. After setting mDP port to timing hex 12 i am back at the issue. After both monitors are connected, osx dies with kernel panic.

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

@animator013 how about both timing to 09(original one)? Corrupt or not? And could you show me the screenshot of the panic?

syscl

@animator013
Copy link
Author

animator013 commented Dec 9, 2016

Both timing at 09 makes the same. Kernel panic.

Screenshot is impossible because all displays shuts off. But maybe I can find kernel panic log.

But i remember that it is triggered by IOGraphicsFamily.

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

Yes, you can find it in System Report->Logs->panic(maybe this name, since I haven't had panic anymore)

syscl

@animator013
Copy link
Author

Ok, I remove the patch from my config.plist and post it here.

@animator013
Copy link
Author

animator013 commented Dec 9, 2016

After disabling the patch and connecting to HDMI, display works even with audio! But after connecting mDP the kernel panic comes.

So both displays cannot work together.

Anonymous UUID:       1A5C0109-5B1C-B5AD-198F-A2DFE608A34F

Fri Dec  9 16:23:06 2016

*** Panic Report ***
Machine-check capabilities: 0x0000000000000c09
 family: 6 model: 60 stepping: 3 microcode: 23
 signature: 0x306c3
 Intel(R) Core(TM) i7-4712HQ CPU @ 2.30GHz
 9 error-reporting banks
Processor 0: IA32_MCG_STATUS: 0x0000000000000005
 IA32_MC4_STATUS(0x411): 0xba00000011000402
 IA32_MC4_MISC(0x413):   0x0000000000000000
Processor 1: IA32_MCG_STATUS: 0x0000000000000005
 IA32_MC4_STATUS(0x411): 0xba00000011000402
 IA32_MC4_MISC(0x413):   0x0000000000000000
Processor 2: IA32_MCG_STATUS: 0x0000000000000005
 IA32_MC4_STATUS(0x411): 0xba00000011000402
 IA32_MC4_MISC(0x413):   0x0000000000000000
Processor 3: IA32_MCG_STATUS: 0x0000000000000005
 IA32_MC4_STATUS(0x411): 0xba00000011000402
 IA32_MC4_MISC(0x413):   0x0000000000000000
Processor 6: IA32_MCG_STATUS: 0x0000000000000005
 IA32_MC4_STATUS(0x411): 0xba00000011000402
 IA32_MC4_MISC(0x413):   0x0000000000000000
Processor 7: IA32_MCG_STATUS: 0x0000000000000005
 IA32_MC4_STATUS(0x411): 0xba00000011000402
 IA32_MC4_MISC(0x413):   0x0000000000000000
panic(cpu 2 caller 0xffffff801a1cf1ba): "Machine Check at 0x00007fff8b16a056, registers:\n" "CR0: 0x000000008001003b, CR2: 0x0000000119c9e000, CR3: 0x000000032ff850d2, CR4: 0x00000000001627e0\n" "RAX: 0x00000000fffffffc, RBX: 0x0000000000000961, RCX: 0x0000000000000065, RDX: 0x0000000000000065\n" "RSP: 0x00007fff566ca510, RBP: 0x00007fff566ca750, RSI: 0x0000000000000960, RDI: 0x0000000000000000\n" "R8:  0x0000000000000065, R9:  0x0000000000000002, R10: 0x00007f7f7202cc24, R11: 0x00007f7f72028784\n" "R12: 0x000000000001f838, R13: 0x00007f7f7201d200, R14: 0x000000000001f838, R15: 0x000000000000000f\n" "RFL: 0x0000000000000207, RIP: 0x00007fff8b16a056, CS:  0x000000000000002b, SS:  0x0000000000000023\n" "Error code: 0x0000000000000000\n"@/Library/Caches/com.apple.xbs/Sources/xnu/xnu-3248.60.10/osfmk/i386/trap_native.c:168
Backtrace (CPU 2), Frame : Return Address
0xffffff821286bdd0 : 0xffffff801a0dab52 
0xffffff821286be50 : 0xffffff801a1cf1ba 
0xffffff821286bfb0 : 0xffffff801a1ecdff 

BSD process name corresponding to current thread: bsdtar
Boot args: dart=0 nv_disable=1 kext-dev-mode=1 

Mac OS version:
15G31

Kernel version:
Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64
Kernel UUID: B5AA8E3E-65B6-3D0E-867B-8DCCF81E536C
Kernel slide:     0x0000000019e00000
Kernel text base: 0xffffff801a000000
__HIB  text base: 0xffffff8019f00000
System model name: MacBookPro11,2 (Mac-3CBD00234E554E41)

System uptime in nanoseconds: 65855926260
last loaded kext at 5910107874: com.apple.driver.AudioAUUC	1.70 (addr 0xffffff7f9bd3a000, size 32768)
loaded kexts:
com.realtek.driver.RtWlanU1827	1827.4.b19
org.emlydinesh.driver.ApplePS2SmartTouchPad	4.6.5
org.emlydinesh.driver.ApplePS2Keyboard	4.6.5
org.netkas.FakeSMC	3.4.1
org.rehabman.driver.FakePCIID	1.3.0
org.emlydinesh.driver.ApplePS2Controller	4.6.5
com.displaylink.driver.DisplayLinkDriver	2.5.1 (69398)
org.tw.CodecCommander	2.6.2
as.vit9696.AppleALC	1.0.16
org.rehabman.driver.AppleSmartBatteryManager	1.60.5
com.apple.driver.AudioAUUC	1.70
com.apple.filesystems.autofs	3.0
com.apple.filesystems.ntfs	3.13
com.apple.driver.AppleHDAHardwareConfigDriver	274.12
com.apple.driver.AppleGraphicsDevicePolicy	3.12.7
com.apple.driver.ApplePlatformEnabler	2.6.0d0
com.apple.driver.AGPM	110.22.0
com.apple.driver.X86PlatformShim	1.0.0
com.apple.driver.AppleHDA	274.12
com.apple.driver.pmtelemetry	1
com.apple.iokit.IOUserEthernet	1.0.1
com.apple.iokit.IOBluetoothSerialManager	4.4.6f1
com.apple.driver.AppleIntelHD5000Graphics	10.1.4
com.apple.Dont_Steal_Mac_OS_X	7.0.0
com.apple.driver.AppleMuxControl	3.12.8
com.apple.driver.AppleOSXWatchdog	1
com.apple.driver.AppleSMCLMU	208
com.apple.driver.AppleHV	1
com.apple.driver.AppleBacklight	170.8.9
com.apple.driver.AppleLPC	3.1
com.apple.driver.AppleUpstreamUserClient	3.6.1
com.apple.driver.ACPI_SMC_PlatformPlugin	1.0.0
com.apple.driver.AppleIntelFramebufferAzul	10.1.4
com.apple.driver.AppleFIVRDriver	4.1.0
com.apple.driver.AppleIntelSlowAdaptiveClocking	4.0.0
com.apple.driver.AppleMCCSControl	1.2.13
com.apple.driver.AppleFileSystemDriver	3.0.1
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless	1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib	1.0.0
com.apple.BootCache	38
com.apple.iokit.IOAHCIBlockStorage	2.8.5
com.apple.driver.AppleAHCIPort	3.1.8
com.apple.driver.usb.AppleUSBEHCIPCI	1.0.1
com.apple.driver.AppleACPIEC	4.0
com.apple.driver.AppleACPIButtons	4.0
com.apple.driver.AppleRTC	2.0
com.apple.driver.AppleHPET	1.8
com.apple.driver.AppleSMBIOS	2.1
com.apple.driver.AppleAPIC	1.7
com.apple.nke.applicationfirewall	163
com.apple.security.quarantine	3
com.apple.security.TMSafetyNet	8
com.apple.kext.triggers	1.0
com.apple.driver.DspFuncLib	274.12
com.apple.kext.OSvKernDSPLib	525
com.apple.iokit.IOSerialFamily	11
com.apple.iokit.IOSurface	108.2.3
com.apple.driver.CoreCaptureResponder	1
com.apple.driver.corecapture	1.0.4
com.apple.driver.AppleGraphicsControl	3.12.8
com.apple.iokit.IOBluetoothHostControllerUSBTransport	4.4.6f1
com.apple.iokit.IOBluetoothFamily	4.4.6f1
com.apple.driver.usb.IOUSBHostHIDDevice	1.0.1
com.apple.driver.AppleBacklightExpert	1.1.0
com.apple.iokit.IONDRVSupport	2.4.1
com.apple.driver.AppleHDAController	274.12
com.apple.iokit.IOHDAFamily	274.12
com.apple.driver.AppleSMBusPCI	1.0.14d1
com.apple.driver.IOPlatformPluginLegacy	1.0.0
com.apple.driver.X86PlatformPlugin	1.0.0
com.apple.driver.IOPlatformPluginFamily	6.0.0d7
com.apple.AppleGraphicsDeviceControl	3.12.8
com.apple.iokit.IOAcceleratorFamily2	205.11
com.apple.iokit.IOSlowAdaptiveClockingFamily	1.0.0
com.apple.driver.AppleSMC	3.1.9
com.apple.driver.AppleSMBusController	1.0.14d1
com.apple.iokit.IOSCSIArchitectureModelFamily	3.7.7
com.apple.driver.usb.cdc	5.0.0
com.apple.driver.usb.networking	5.0.0
com.apple.driver.usb.AppleUSBHostCompositeDevice	1.0.1
com.apple.driver.AppleXsanScheme	3
com.apple.iokit.IONetworkingFamily	3.2
com.apple.driver.usb.AppleUSBHub	1.0.1
com.apple.driver.AppleUSBMergeNub	900.4.1
com.apple.iokit.IOUSBFamily	900.4.1
com.apple.driver.AppleEFINVRAM	2.0
com.apple.iokit.IOAHCIFamily	2.8.1
com.apple.driver.usb.AppleUSBEHCI	1.0.1
com.apple.driver.usb.AppleUSBXHCIPCI	1.0.1
com.apple.driver.usb.AppleUSBXHCI	1.0.1
com.apple.iokit.IOUSBHostFamily	1.0.1
com.apple.driver.AppleUSBHostMergeProperties	1.0.1
com.apple.driver.AppleEFIRuntime	2.0
com.apple.iokit.IOSMBusFamily	1.1
com.apple.iokit.IOHIDFamily	2.0.0
com.apple.security.sandbox	300.0
com.apple.kext.AppleMatch	1.0.0d1
com.apple.iokit.IOGraphicsFamily	2.4.1
com.apple.iokit.IOAudioFamily	204.4
com.apple.vecLib.kext	1.2.0
com.apple.driver.AppleKeyStore	2
com.apple.driver.AppleMobileFileIntegrity	1.0.5
com.apple.driver.AppleCredentialManager	1.0
com.apple.driver.DiskImages	417.4
com.apple.iokit.IOStorageFamily	2.1
com.apple.iokit.IOReportFamily	31
com.apple.driver.AppleFDEKeyStore	28.30
com.apple.driver.AppleACPIPlatform	4.0
com.apple.iokit.IOPCIFamily	2.9
com.apple.iokit.IOACPIFamily	1.4
com.apple.kec.Libm	1
com.apple.kec.pthread	1
com.apple.kec.corecrypto	1.0
Model: MacBookPro11,2, BootROM MBP112.0138.B02, 4 processors, Intel Core i7, 2,30 GHz, 16 GB, SMC 2.29f24
Graphics: Intel Iris Pro, Intel Iris Pro, Built-In
Memory Module: BANK0/DIMM0, 8 GB, DDR3, 1600 MHz, Hynix Semiconductor, HMT41GS6AFR8A-PBN0
Memory Module: BANK1/DIMM0, 8 GB, DDR3, 1600 MHz, Hynix Semiconductor, HMT41GS6AFR8A-PBN0
Serial ATA Device: INTEL SSDSC2BW120H6, 120,03 GB
Serial ATA Device: SAMSUNG SSD PM830 mSATA 256GB, 256,06 GB
USB Device: USB 2.0 Bus
USB Device: Hub
USB Device: USB 2.0 Bus
USB Device: Hub
USB Device: USB 3.0 Bus
USB Device: Integrated_Webcam_HD
USB Device: Bluetooth HCI
USB Device: Synaptics Large Touch Screen
USB Device: 802.11n WLAN Adapter
Thunderbolt Bus: 

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

Which patch you disable and still works?

Umm about this issue, try to remove DisplayLinkDriver.kext under clover/kexts/... to see if this can fix the panic

syscl

@animator013
Copy link
Author

animator013 commented Dec 9, 2016

I disabled this patch:

<dict>
				<key>Comment</key>
				<string>HDMI-audio, port 0105(12), 0x0a260005 0x0a260006, 0x0d220003, 0x0a2e000a, 0x0a26000a</string>
				<key>Disabled</key>
				<false/>
				<key>Name</key>
				<string>AppleIntelFramebufferAzul</string>
				<key>Find</key>
				<data>AQUJAAAEAACHAAAA</data>
				<key>Replace</key>
				<data>AQUSAAAIAACHAAAA</data>
			</dict>

I didn't have the DisplayLinkDriver.kext in my first setup, so I don't think it will be the problem. What is it even for ?

This leads me to, that this patch actually repairs the two display setup and not the HDMI-audio.

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

Thus, I think timing has nothing to do with the HDMI sound, we leave it as is.

After you execute deploy.sh, DisplayLinkDriver will be installed in clover/kexts/...

syscl

@animator013
Copy link
Author

Yeah, i know it will be installed but i was building everything from darkvoids version and he doesn't have this kext there. And the issue was also there without that patch.

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

BTW, the-darkvoid's eDP 0000 patch is incorrect, thus use my config's eDP patch

syscl

@animator013
Copy link
Author

Really ? Ok I try it then. But it is working with it, strange :)

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

Yes, it seems no effect, but the eDP type is <00 04 00 00> instead of <04 00 00 00>. Since we want our laptops to be more stable as natural, it's better to change it to the correct type.

Actually there's huge different between LVDS and eDP, and eDP behave better! So why not enjoy the eDP type:)

syscl

@animator013
Copy link
Author

And can you explain how it behaves better ? I am just curious :)

But I exchanged it in my config.plist.

@syscl
Copy link
Owner

syscl commented Dec 9, 2016

eDP has better performance and lower power consume, if you use LVDS type, then macOS just behave the way LVDS behave. That's the reason why we have to correct it.

syscl

@animator013
Copy link
Author

animator013 commented Dec 9, 2016

So there remains the issue with HDMI plug and unplug. The audio is not very stable, but after few tries it works.

Also the audio won't work after wake from sleep as i observe.

If audio works and have it plugged in the notebook and put the nb into sleep and then wake, hdmi audio works. It's all strange. But this can be also caused by displays or cables, so it's hard to determine :)

Also the internal audio works after disconnecting displays after wake from sleep.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants