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

AGDC incorrectly detects internal display as YCbCr444 #255

Open
BreezeConfirmingWms opened this issue Apr 27, 2024 · 8 comments
Open

AGDC incorrectly detects internal display as YCbCr444 #255

BreezeConfirmingWms opened this issue Apr 27, 2024 · 8 comments
Assignees
Labels
Bug Something isn't working Help wanted Extra attention is needed

Comments

@BreezeConfirmingWms
Copy link

macOS Version

Ventura

What is your CPU's model?

AMD Ryzen 9 4900HS with Radeon Graphics

Please describe the behaviour in detail.

My laptop is ASUS ROG Zephyrus-G15-GA502IV,and its internal display not work properly,the color is grey and the display become blurred and flickering

when I connect to my external 2k display, the internal display is broken grey:
hackintoshgrey
when I disconnect and use internal display alone
hackintoshgreybroken

the infomation of internal monitor shown in terminal is:

LQ156M1JW09:
     Resolution: 1920 x 1080 (1080p FHD - Full High Definition)
     UI Looks like: 1920 x 1080 @ 240.00Hz
     Framebuffer Depth: 30-Bit Color (ARGB2101010)
     Mirror: Off
     Online: Yes
     Automatically Adjust Brightness: Yes
     Connection Type: Internal

Additionaly,I found lower refresh rate like transfer 240hz to 60hz could help erase the black stripes in the picture above while there is still a blurred and grey screen probelm

What should've happened instead?

The built-in monitor should display normally

If applicable, attach the .gpuRestart, .panic, etc file related to this issue.

I just command /System/Library/Extensions/AppleGraphicsControl.kext/Contents/MacOS/AGDCDiagnose -a to get:
agdcdiganose.txt

Copy link

github-actions bot commented Apr 27, 2024

Greetings. It seems like this is the first issue you open on this repository.

We are letting you know that these are for bug reports or feature requests. Most of the reports we receive in this GitHub Organisation are user errors.

For the sake of saving time, here are the most common cases:

  • Outdated version of this kext.
  • Conflicts with other kexts (e.g. WhateverGreen).
  • Issues caused by other kexts like memory corruption (e.g. AirportItlwm).
  • Intended behaviour by Apple (e.g. V-Sync or cursor rendering).
  • Using cheap hacks like kext/library downgrades (e.g. OCLP, BFixup).
  • Duplicate kexts.
  • Malformed config.plist caused by configurator software (OCAT, OCC, etc).
  • Lack of TSC synchronisation (use AmdTscSync).
  • Incorrectly configured TSC synchronisation (set IOCPUNumber in the Info.plist to number of threads minus one for macOS 11 and older, 0 for anything newer).
  • Outdated macOS minor version (e.g. macOS 11.0.0 instead of latest).
  • Using beta versions of macOS.
  • Using the kext during installation or update. There is a Lilu bug which makes macOS stall during the last install phase.
  • Incorrect SMBIOS. Please use iMac20,1, MacBookPro16,3, MacPro7,1 or iMacPro1,1.
  • (e)DP link training failure. -NRedDPDelay will fix this as mentioned in the README. This is last resort, black screen can be caused by other factors mentioned.
  • Insufficient VRAM size.

We will never support the use of configurator software, solutions like OCLP/BFixup, or using macOS beta versions.

This issue will be looked over by the respective maintainer when they can. In the meantime, look if you can resolve this yourself via checking the above.

Be patient, we are hobbyists.

@VisualEhrmanntraut

This comment was marked as outdated.

@VisualEhrmanntraut VisualEhrmanntraut added Invalid This doesn't seem right and removed Bug Something isn't working labels May 1, 2024
@VisualEhrmanntraut VisualEhrmanntraut closed this as not planned Won't fix, can't repro, duplicate, stale May 1, 2024
@VisualEhrmanntraut
Copy link
Member

oh... wait, I think the patch that changes the value is actually broken 🤦🏻‍♂️ My bad

@VisualEhrmanntraut
Copy link
Member

anyway... the problem is that macOS detected your laptop's pixel encoding as YCbCr444

@VisualEhrmanntraut VisualEhrmanntraut changed the title Internal Display Become Blurred and Flickering AGDC incorrectly detects internal display as YCbCr444 May 1, 2024
@VisualEhrmanntraut VisualEhrmanntraut removed the Invalid This doesn't seem right label May 1, 2024
@VisualEhrmanntraut
Copy link
Member

VisualEhrmanntraut commented May 2, 2024

You can try creating an override file using https://gist.github.com/adaugherity/7435890
the files created with it should go in /Library/Displays/Contents/Resources/Overrides

sudo mkdir -p /Library/Displays/Contents/Resources/Overrides
open /Library/Displays/Contents/Resources/Overrides

@BreezeConfirmingWms
Copy link
Author

Thanks for your reply. I have tried to override file but my internal display problem still exists.And I check my AGDCDiganose -a info,it shows my internal dispaly pixel encoding is RGB444. The previous txt uploaded I can find OUTPUT: Pixel Encoding 1 (RGB444) for my internal display Window (Active) 1920 x 1080,and YCbCr444 for My external display Window (Active) 2560 x 1440 ,which is connected through HDMI port.So I think it no matter. When i use internal display alone, the grey screen doesn't change at all.

I'm compeletly an rookie of macos or hackintosh, so could you give me more debug command to check the configuration or other useful logfile?
If it's outside of the scope of support ,I feel regretful about this. Thanks again!I will continue to pay attention to your guidance until the problem is closed

@BreezeConfirmingWms
Copy link
Author

Below is output of ioreg -l -d0 -w 0 -r -c AppleDisplay

+-o AppleDisplay  <class AppleDisplay, id 0x100000662, registered, matched, active, busy 0 (0 ms), retain 9>
    {
      "IOClass" = "AppleDisplay"
      "CFBundleIdentifier" = "com.apple.iokit.IOGraphicsFamily"
      "IOProviderClass" = "IODisplayConnect"
      "DisplayProductID" = 10021
      "IODisplayEDID" = <00ffffffffffff004d672527010000002b210103803c2178af7c56ab5048a7270b5053a7cf0081c081809500a9c0b300d1c0010101015d5e00a0a0a029503020350055502100001e023a801871382d40582c450055502100001e000000fd00309219fa3c000a202020202020000000fc00483237543232530a202020202001d3020347f34f0102030405101213141f5d5f61603f23090707830100006a030c001000387820000067d85dc40178c003681a000001013092ede305c000e60607015d4937e30f003c197600a0a0a02a503040450055502100001e6fc200a0a0a055503020350055502100001ef9e300a0a0a032501040350055502100001e00006a>
      "IODisplayPrefsKeyOld" = "IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/GP17@8,1/IOPP/IGPU@0/AMDRadeonX6000_AmdRadeonControllerNavi10/ATY,RadeonFramebuffer@1/display0/AppleDisplay-4d67-2725"
      "IODisplayPrefsKey" = "IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/GP17@8,1/IOPP/IGPU@0-4d67-2725-e0edc1fca52fb1cc"
      "IOProbeScore" = 2000
      "IOPowerManagement" = {"CapabilityFlags"=49152,"MaxPowerState"=3,"CurrentPowerState"=3}
      "IODisplayParameters" = {"pscn"={"min"=7500,"max"=10000,"value"=10000},"rgsc"={"min"=0,"max"=65536,"value"=65536},"bgsc"={"min"=0,"max"=65536,"value"=65536},"vblm"={"min"=0,"max"=196608,"value"=65536},"ownr"=4294968542,"ggsc"={"min"=0,"max"=65536,"value"=65536}}
      "IOMatchCategory" = "IODefaultMatchCategory"
      "IOPersonalityPublisher" = "com.apple.iokit.IOGraphicsFamily"
      "IODisplayConnectFlags" = <00000000>
      "CFBundleIdentifierKernel" = "com.apple.iokit.IOGraphicsFamily"
      "IODisplayAttributes" = {"IODisplayVSDB1A0000"=<01013092ed>,"IODisplayVSDB030C00"=<10003878200000>,"IODisplayAttributes"=<676174760000000073676c6600000000726c6f63110100006364670080808000676c666401000000>,"IODisplayVSDBD85DC4"=<0178c003>}
      "DisplayVendorID" = 19815
      "DisplaySerialNumber" = 1
    }

@VisualEhrmanntraut
Copy link
Member

honestly, the driver stack for this part of macOS is designed pretty badly

@VisualEhrmanntraut VisualEhrmanntraut added Bug Something isn't working Help wanted Extra attention is needed labels May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Help wanted Extra attention is needed
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants