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

dp/hdmi audio not work #92

Open
jerrium opened this issue Nov 11, 2020 · 44 comments
Open

dp/hdmi audio not work #92

jerrium opened this issue Nov 11, 2020 · 44 comments

Comments

@jerrium
Copy link

jerrium commented Nov 11, 2020

thank you for your great work, so we can use great efi.
I buy the same hardware like you except graphic card. I have an issue that I can output video to monitor(Dell s3221qs) via dp or hdmi, but no audio. I mean Dell s3221qs has internal speaker, so it can play sound from dp/hdmi.
I check the Sound in the System Prefefences, no dp/hdmi output there.
WX20201111-172755

I google some info about this issue, find someone say

HDMI audio is now working after correctly patching devices HDAU and IGPU. i didn't need to do anything with AppleHDA.kext. i won't try that since i don't need any audio output other than HDMI.
https://www.tonymacx86.com/threads/fakepciid_intel_hdmi_audio-kext-for-id-0c0c.184877/

WX20201111-172924
but I am new about hackintosh, don't know how to fix this issue.

@SchmockLord
Copy link
Owner

Which graphic card do you have?

@jerrium
Copy link
Author

jerrium commented Nov 11, 2020

Which graphic card do you have?

I have no graphic card. I use UHD 630. I test hdmi/dp to monitor by UHD 630

@jerrium
Copy link
Author

jerrium commented Nov 11, 2020

this is screenshot of hackintool:
WX20201111-173828

It seams that FakePCIID_Intel_HDMI_Audio.kext is not loaded.

@SchmockLord
Copy link
Owner

Ok. First try to disable the SSDT-5700XT.aml and the DAGPM.kext.

If that doesn't work, try to disable the FakePCIID_Intel_HDMI_Audio.kext.

This kext is not shown in your hackintool, because it a non executable or plist-only kext. It is a satellite to inject properties for FakePCIID.

@SchmockLord
Copy link
Owner

And which CPU you have? Below 10900k you should use iMac20,1 instead.

@jerrium
Copy link
Author

jerrium commented Nov 11, 2020

And which CPU you have? Below 10900k you should use iMac20,1 instead.

my mainboard and cpu is z490 vision d + 10900k. i use iMac20,1.
i delete the SSDT-5700XT.aml and the DAGPM.kext then reboot.
it is blocked by white apple logo.
IMG_1032

@jerrium
Copy link
Author

jerrium commented Nov 11, 2020

i plug the usb install stick (which is bootable), but it can not boot again anymore.

@jerrium
Copy link
Author

jerrium commented Nov 11, 2020

i plug the usb install stick (which is bootable), but it can not boot again anymore.

i delete the SSDT-5700XT.aml and the DAGPM.kext in the efi of ssd then it crash. and i plug install stick(which has old efi), but it still can not boot. I think it can boot again by usb stick when ssd efi is down.

@SchmockLord
Copy link
Owner

Because you are doing it wrong.

Don't delete those files, just disable them in the config. Otherwise, they are not there, but the config expects them.

@jerrium
Copy link
Author

jerrium commented Nov 11, 2020

Because you are doing it wrong.

Don't delete those files, just disable them in the config. Otherwise, they are not there, but the config expects them.

i open config.plist file in other mac.
Is it correct that i change 1 to 0 in the Enabled field?
WX20201111-184312@2x

@simonhutchings
Copy link

simonhutchings commented Nov 11, 2020 via email

@SchmockLord
Copy link
Owner

Because you are doing it wrong.
Don't delete those files, just disable them in the config. Otherwise, they are not there, but the config expects them.

i open config.plist file in other mac.
Is it correct that i change 1 to 0 in the Enabled field?
WX20201111-184312@2x

Yes.

@jerrium
Copy link
Author

jerrium commented Nov 11, 2020

I enter wine system and delete efi on ssd and now I can enter the Mac OS by usb install stick.
this is test result by dp/hdmi:

  1. disable the SSDT-5700XT.aml + the DAGPM.kext. --->not work
  2. disable the SSDT-5700XT.aml + the DAGPM.kext + FakePCIID_Intel_HDMI_Audio.kext. --->not work

@jerrium
Copy link
Author

jerrium commented Nov 11, 2020

The one thing to watch out for is with cdmi, when it sleeps, you’ll lose audio from that device when woken. I’ve reconnected every monitor with Display Port and it doesn’t have that problem. Though mine is running with a RX5700 XT card

do you also use UHD 630?

@SchmockLord
Copy link
Owner

How do you use DP on your monitor if you don't have a GPU? In your first post you said "I have an issue that I can output video to monitor(Dell s3221qs) via dp or hdmi, but no audio".

The DP on the motherboard is a DP IN. It is no output.

@jerrium
Copy link
Author

jerrium commented Nov 11, 2020

How do you use DP on your monitor if you don't have a GPU? In your first post you said "I have an issue that I can output video to monitor(Dell s3221qs) via dp or hdmi, but no audio".

The DP on the motherboard is a DP IN. It is no output.

I buy a tb3 to dp converter: connect thunderbolt3(z490) to dp(monitor).
Mac book pro users usually use this converter to connect tb3 to external monitor(dp).
this is a screenshot:
WX20201111-220005

@SchmockLord
Copy link
Owner

Ok. Then let me check if my MBP 16 transfers the sound via a TB3 to DP cable.

@SchmockLord
Copy link
Owner

@jerrium Can you please test this config.plist?
config.plist.zip

@jerrium
Copy link
Author

jerrium commented Nov 12, 2020

@jerrium Can you please test this config.plist?
config.plist.zip

test result: replace the old one, reboot, not work.
My audio device id is 0x8088606c8, and I notice your device id is not same one in your guidance article.
Maybe it is the root cause?

@jerrium
Copy link
Author

jerrium commented Nov 12, 2020

after using your new config.plist, I just now find I can use 1080p-hidpi. It is amazing!!!
I can not use 1080p(hidpi) before your new config.plist.
I can only use 800p(hidpi) before.
WX20201112-102056@2x

@SchmockLord
Copy link
Owner

That is weird. Because I used these device properties for the iGPU as well. And then I took out my GPU for test purposes.
On my AsRock Z490, which has DP and HDMI out, on both ports I got Audio to my monitor. And those device properties do no contain specific framebuffer settings.

Check in the BIOS if you have an option to enable/disable HDMI audio. My board has this option.

Can you test the HDMI audio again?

@jerrium
Copy link
Author

jerrium commented Nov 12, 2020

My board is Gigabyte-Z490-Vision-D, which has only Audio Controller. And Audio Controller is Enabled. Bios has no HDMI audio option. This is screenshot.
IMG3

And your new config.plist is partial effect because 1080p(hidpi) is showed.This is screenshot of Display before.
WX20201112-174819

testing HDMI audio need reboot. After posting this message, I will test it.

@jerrium
Copy link
Author

jerrium commented Nov 12, 2020

It is strange. After shutdown and change to hdmi cable, it shows black screen finally.
WechatIMG4
WechatIMG5
WechatIMG6

And I switch from hdmi to dp cable directly(without rebooting again), it normally shows Mac login page. It seems that only hdmi signal(picture) is disabled(cut down) with your new config.plist.

@SchmockLord
Copy link
Owner

Then I think it is pretty obvious, that our boards need different settings. The Vision D seems to need framebuffer settings to drive HDMI, the AsRock Phantom Gaming ITX/TB3 doesn't. And it is hard for me to figure this out because I am not running the Vision D anymore.

@SchmockLord
Copy link
Owner

Can you try this one again? It is the same as before, but with the framebuffer settings from the Vision D with one change: I have noticed that one port is defined as DP, and I changed that to HDMI because this is required to have Audio.

config.plist.zip

@jerrium
Copy link
Author

jerrium commented Nov 12, 2020

Can you try this one again? It is the same as before, but with the framebuffer settings from the Vision D with one change: I have noticed that one port is defined as DP, and I changed that to HDMI because this is required to have Audio.

config.plist.zip

test result: hdmi picture is showed but hdmi audio still doesn't work. And another phenomenon is that refresh rate drop from 60hz to 30hz. This is screenshot.
WX20201112-190915@2x

@SchmockLord
Copy link
Owner

SchmockLord commented Nov 12, 2020

And if that doesn't work, then this one:
configv2.plist.zip

It have put my hopes in this one, because for me it works really well. Sound works on both, HDMI and DP. And I get 5120x1440@60HZ and 3840x2160@60Hz from it.

In this one I have used a different Device ID: .

I've got this from the Intel Website: https://ark.intel.com/content/www/de/de/ark/products/199332/intel-core-i9-10900k-processor-20m-cache-up-to-5-30-ghz.html

Screen Shot 2020-11-12 at 12 39 14

@jerrium
Copy link
Author

jerrium commented Nov 12, 2020

And if that doesn't work, then this one:
configv2.plist.zip

this one : both hdmi picture and hdmi audio don't work. After directly switching to dp, dp can show picture, but dp can not show audio.

@SchmockLord
Copy link
Owner

SchmockLord commented Nov 12, 2020

@jerrium Can you please test this config.plist?
config.plist.zip

Maybe try this one again, but this time disable FakePCIID_Intel_HDMI_Audio.kext + DAGPM.kext + SSDT-5700.aml

@jerrium
Copy link
Author

jerrium commented Nov 12, 2020

@jerrium Can you please test this config.plist?
config.plist.zip

Maybe try this one again, but this time disable FakePCIID_Intel_HDMI_Audio.kext + DAGPM.kext + SSDT-5700.aml

test result:
1)hdmi picture and hdmi audio don't work
2)dp picture works but dp audio does not work

@SchmockLord
Copy link
Owner

Can someone please test this and tell me if the HDMI Audio works now?

config_iMac20,2_5700XT_iGPU display output.plist.zip

@jerrium
Copy link
Author

jerrium commented Nov 23, 2020

Can someone please test this and tell me if the HDMI Audio works now?

config_iMac20,2_5700XT_iGPU display output.plist.zip

I notice your file name include 5700xt. I have no graphic card, can I test it ?

@SchmockLord
Copy link
Owner

Yeah, it should still work.

@jerrium
Copy link
Author

jerrium commented Nov 23, 2020

test result:
1)system: Big Sur 11.0.1. Clean intall.
2)tb3(type-c) to dp cable: has video but no audio
3)hdmi to hdmi cable: no video and no audio(means no signal)

Do you need some info/data exported from hackintool for patching? You can tell me the steps, I can provide it to you.

@jamesfawcett
Copy link

I did some experimenting today and found that device-id is needed for audio over HDMI.

I created a pull request here: #125

No other changes needed, just add this to your PciRoot(0x0)/Pci(0x1F,0x3) in DeviceProperties:

<key>device-id</key>
<data>cKEAAA==</data>

@jerrium
Copy link
Author

jerrium commented Jan 9, 2021

I did some experimenting today and found that device-id is needed for audio over HDMI.

I created a pull request here: #125

No other changes needed, just add this to your PciRoot(0x0)/Pci(0x1F,0x3) in DeviceProperties:

<key>device-id</key>
<data>cKEAAA==</data>

thank you. I notice you use AppleHDAHDMI_DPDriver. Can you please provide this file?
Just now I test this setting according to your advice, and I find there is no audio device.
WX20210109-164532
WX20210109-164438

@jamesfawcett
Copy link

I think that might be a built in Apple driver, I am using Schmocklord's EFI for 20,1 exactly as it is here in his repo. I've tried with gpu, without gpu and with gpu just for computing and hdmi works with this deviceid added. If you unplug your monitor and plug it back in does it appear?

@jerrium
Copy link
Author

jerrium commented Jan 9, 2021

I think that might be a built in Apple driver, I am using Schmocklord's EFI for 20,1 exactly as it is here in his repo. I've tried with gpu, without gpu and with gpu just for computing and hdmi works with this deviceid added. If you unplug your monitor and plug it back in does it appear?

do you mean there is no file to add?

@asrath242
Copy link

@jerrium I guess I am facing the same problem on a z490. I couldn't get a sound output device via HDMI or usb-c to HDMI adapter.

I was about to give up and don't know how, but it happens I connected the HDMI cable and my usb-c to HDMI cable the same time to the screen, booted the system and out of a sudden the display pops up as output device two times (and a new sound device in Hackintool "intel kabylake HDMI").

I did not find a way with only one cable, but perhaps give it a try.

@hieplpvip
Copy link

I found this on Tonymacx86. It works for me.

https://www.tonymacx86.com/threads/applehdahdmi_dpdriver-loading-only-after-unplug-plug-dp-cable.310616/page-2#post-2243397

For my Asrock Z490M-ITX I found this workaround for getting HDMI to work:
In the EFI/OC/Kexts section add:
”FakePCIID.kext" and "FakePCIID_Intel_HDMI_Audio.kext"
and declare them in the Kernel/Add section ("FakePCIID.kext" before "FakePCIID_Intel_HDMI_Audio.kext")
Still in the config, in the 
DeviceProperties/PciRoot(0x0)/Pci(0x1f,0x3) 
section add:

device-id | Data | 709D0000

For this result:

hda-gfx | String | onboard-1
layout-id | Data | 31000000
device-id | Data | 709D0000

After a restart, your HDMI device will be in the Audio options.
It seems that using Layout-id 51 (33 -> Hex) (Asrock Steel legend)
eliminates a problem with the Front Mic (Hissing) which
is present with the default 49 (31 -> Hex) Layout-id.
(Credits to @Lorys89 and @Jolly of MacOS86.it)

@SchmockLord
Copy link
Owner

Can anyone with these HDMI issues try this approach? If it is confirmed to be working, I will add it to my config. I just cannot test it anymore as I am using Z590i Vision D now.

@jerrium
Copy link
Author

jerrium commented May 6, 2021

Can anyone with these HDMI issues try this approach? If it is confirmed to be working, I will add it to my config. I just cannot test it anymore as I am using Z590i Vision D now.

I can confirm it works well now. I have tested it via type-c=>dp(DELL S3221S) and type-c=>hdmi(H1S projector).
WX20210506-175040@2x

this is my config(which is same as the thread posted by @hieplpvip ):
WX20210506-175441@2x
WX20210506-175542@2x

@jerrium
Copy link
Author

jerrium commented May 7, 2021

but after several days, it has an issue:
after waking up, the audio device disappear. Restart computer and it appears again.
@hieplpvip @SchmockLord

@hieplpvip
Copy link

but after several days, it has an issue:
after waking up, the audio device disappear. Restart computer and it appears again.

HDMI audio still works for me after sleep. Here is my config. I use boot argument igfxonln=1. Maybe that's why audio still works.

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

6 participants