zearp / OptiHack

Dell OptiPlex 7020/9020 Hackintosh Stuff
https://zearp.github.io/OptiHack/
155 stars 53 forks source link

No video when reaching desktop #41

Closed BrunoGM closed 3 years ago

BrunoGM commented 3 years ago

More times than not, after finishing the boot in verbose mode the screen will just turn off instead of giving the login screen. I m using a (not DVI) DP to HDMI adapter. Any ideas on what the issue could be?

BrunoGM commented 3 years ago

Just found the note about the solutions for DP to HDMI adapter, gonna try them out.

zearp commented 3 years ago

DVI sounds like you're using a dGPU. It might be needed to add its port to the frame buffer config cuz it stays black.

Check out these two pages and if it doesn't seem too daunting go ahead and try it out.

1: https://dortania.github.io/OpenCore-Post-Install/gpu-patching/intel-patching/connector.html 2: https://dortania.github.io/OpenCore-Post-Install/gpu-patching/intel-patching/busid.html

Step one might be the only step needed.

When browsing for DP -> hdmi cables check the direction is right or is bi-directional.

The best connection for video is one without conversion, but not always an option. macOS doesn't like all conversion cables/dongles.

BrunoGM commented 3 years ago

Actually i m not using any dGPU, the video is coming from an HD4600 from a 4790k. Looks like the problem didn't happen anymore since I applied the patches you left on the tutorial tho, hope it is fixed. I ll keep you updated.

zearp commented 3 years ago

I hope so too!

Whats your exact model? Cuz I haven't seen any of these with a DVI output.

BrunoGM commented 3 years ago

Oh, My bad! It is Display Port to HDMI connector, not DVI, I don't know what i had in mind when i wrote that! Sorry for the mistake. But it is a SFF 7020 with 2 display ports.

zearp commented 3 years ago

Ah haha, it happens! I have the same machines and can confirm not all DP -> hdmi cables will work. I have no glitches apart from one when it switches from text to graphical on start up. I think that can be prevented with some flag, I never considered it as something annoying enough to fix.

I'm using this one, it should be for sale on most Amazon sites. I also had good luck with these cheap adapter plugs.

If you can, enable screen sharing on your machine and the next time it boots into a black screen try to login to it using VNC from another device. It might just work, if it does check the current frame buffers settings in IOreg (the sections below the IGPU entry). I wonder what it will be show there and if there's any monitors connected and what type of connection they use.

The last few days we've been working on sorting out the connectors once and for all in an attempt to finish up all the frame buffer settings so that it works at 4k in Big Sur.

I added the force-online option that should fix this but maybe it doesn't work on all screens? I'm not really sure what exactly it does but does fix black screens for me on an AOC display. My Samsung display doesn't need any of it. It's kind of weird and there doesn't seem to be logic behind it.

Btw I'm not sure if macOS is to blame for some cables not functioning properly or that the ports themselves are picky and some cheap cables will add glitches since they lack shielding or don't make proper connections. Ideally run any display connections without any conversion. Use DP -> DP on the Dell for the best results.

BrunoGM commented 3 years ago

The problem is back... The problem sometimes happen when I wake up from sleep too, actually. I have no idea if my DP to HDMI cable is bidirectional, my cable looks like this. But if the problem only happens a few times maybe its not the cable? Since when i have video, i can have it on for a week without glitches... PS: I have a LG monitor.

zearp commented 3 years ago

If the problem can’t be reproduced reliably it’s hard to solve it. If not impossible as it could be caused by a lot of factors. Nothing changes in your hard and software setup yet you get different results from the same actions.