Jump to content
intruder16

Intel HD4600 banding/gradient/16-bit colors issue Y510p

127 posts in this topic

Recommended Posts

<dict>
    <key>Name</key>
    <string>AppleIntelFramebufferAzul</string>
    <key>Comment</key>
    <string>Take Three - Patch #1</string>
    <key>Find</key>
    <data>vhgAAADrZD0AAAEA</data>
    <key>Replace</key>
    <data>vhgAAADrBz0AAAEA</data>
</dict>

<dict>
    <key>Name</key>
    <string>AppleIntelFramebufferAzul</string>
    <key>Comment</key>
    <string>Take Three - Patch #2</string>
    <key>Find</key>
    <data>AAAYAAAAHgAAABIAAAAkAAAA8fz2+w==</data>
    <key>Replace</key>
    <data>AAASAAAAHgAAABIAAAAkAAAA8fz2+w==</data>
</dict>

Edit: Included base64 version

Share this post


Link to post
Share on other sites
Advertisement

These two patches are invalid still ...

 

Hmm, my bad then - apparently hex have to be lowercase to work in Clover? Or should I convert it to base64? ...

No it would not matter the case but hex will work only in Clover Configurator ... the patch format you are given is not for Clover Configurator but instead for editing the config.plist directly which only accept Base64 so yes you have to convert Hex to Base64.

 

But still, the bits are not available in the AppleIntelFramebufferAzul.kext binary and the patch is invalid.

 

 

Edit: Okay you fixed the Hex to Base64 already ...

Share this post


Link to post
Share on other sites

@eplightning:

 

I am trying to decompile the AppleIntelFranebufferAzul kext but i'm not sure how to properly do it. I've never done this.

 

If you have some time can you show me or point me to a guide perhaps on how to do this?

 

Which debug symbols did you sourced?

 

I'm following up on the Linux i915 driver.

Share this post


Link to post
Share on other sites

@eplightning:

 

I am trying to decompile the AppleIntelFranebufferAzul kext but i'm not sure how to properly do it. I've never done this.

 

If you have some time can you show me or point me to a guide perhaps on how to do this?

 

Which debug symbols did you sourced?

 

I'm following up on the Linux i915 driver.

 

I'm using IDA Pro, pretty much supports all binary formats.

 

Have you tried the latest patch? Does it still not work with Clover?

Share this post


Link to post
Share on other sites

..Have you tried the latest patch? Does it still not work with Clover?

 

I have not tried it yet. The hex string (base64->hex) is still not in AppleIntelFramebufferAzul's binary. I've tried finding it on both 10.10.2 & 10.10.3's.

 

But i'll try asap anyway and report.

Share this post


Link to post
Share on other sites

Attached AppleIntelFramebufferAzul.kext for 10.10.3.

Yosemite on VM must be frustrating.

 

Well it's slow but I only need to for installation and some testing so doesn't really matter.

 

And kext you sent is certainly different from mine, I'll post updated patch soon.

Share this post


Link to post
Share on other sites

Alright these two patches should work with 10.10.3 kext:

<dict>
    <key>Name</key>
    <string>AppleIntelFramebufferAzul</string>
    <key>Comment</key>
    <string>Take Three - Patch #1</string>
    <key>Find</key>
    <data>vhgAAADrZj0AAAEA</data>
    <key>Replace</key>
    <data>vhgAAADrBz0AAAEA</data>
</dict>

<dict>
    <key>Name</key>
    <string>AppleIntelFramebufferAzul</string>
    <key>Comment</key>
    <string>Take Three - Patch #2</string>
    <key>Find</key>
    <data>AIAYAAAAHgAAABIAAAAkAAAARFAtSA==</data>
    <key>Replace</key>
    <data>AIASAAAAHgAAABIAAAAkAAAARFAtSA==</data>
</dict>

Share this post


Link to post
Share on other sites

Alright these two patches should work with 10.10.3 kext:

<dict>
    <key>Name</key>
    <string>AppleIntelFramebufferAzul</string>
    <key>Comment</key>
    <string>Take Three - Patch #1</string>
    <key>Find</key>
    <data>vhgAAADrZj0AAAEA</data>
    <key>Replace</key>
    <data>vhgAAADrBz0AAAEA</data>
</dict>

<dict>
    <key>Name</key>
    <string>AppleIntelFramebufferAzul</string>
    <key>Comment</key>
    <string>Take Three - Patch #2</string>
    <key>Find</key>
    <data>AIASAAAAHgAAABIAAAAkAAAARFAtSA==</data>
    <key>Replace</key>
    <data>AIASAAAAHgAAABIAAAAkAAAARFAtSA==</data>
</dict>

 

It is probably best to publish patches in hex, as it make it easier to enter without editing the file with a text editor (can introduce errors). It is also easier to use the strings for a search in a hex editor (such as hexfiend), or to apply the patches with patcho (so disassembly can be compared).

 

You can do hex patches with <string>. These are equivalent to the above:

 

<dict>
    <key>Name</key>
    <string>AppleIntelFramebufferAzul</string>
    <key>Comment</key>
    <string>Take Three - Patch #1</string>
    <key>Find</key>
    <string>be18000000eb663d00000100</string>
    <key>Replace</key>
    <string>be18000000eb073d00000100</string>
</dict>
<dict>
    <key>Name</key>
    <string>AppleIntelFramebufferAzul</string>
    <key>Comment</key>
    <string>Take Three - Patch #2</string>
    <key>Find</key>
    <string>0080120000001e000000120000002400000044502d48</string>
    <key>Replace</key>
    <string>0080120000001e000000120000002400000044502d48</string>
</dict>
Note: Patch #2 does nothing. The Find and Replace are identical. In addition, the Find pattern in the second patch is not found in the binary.Probably not intentional.

Share this post


Link to post
Share on other sites

It is probably best to publish patches in hex, as it make it easier to enter without editing the file with a text editor (can introduce errors). It is also easier to use the strings for a search in a hex editor (such as hexfiend), or to apply the patches with patcho (so disassembly can be compared).

 

You can do hex patches with <string>. These are equivalent to the above:

 

Note: Patch #2 does nothing. The Find and Replace are identical. In addition, the Find pattern in the second patch is not found in the binary.Probably not intentional.

 

 

Yes I did that at the beginning, but later on I was a little confused because of posts telling me that Clover can't apply it (turned out I used wrong kext).

 

And yes, it was unintentional, edited post with correct pattern.

Share this post


Link to post
Share on other sites

... but later on I was a little confused because of posts telling me that Clover can't apply it ...

Clover accepts both <data> and <string> for KextsToPatch Find/Replace specifications.

 

<string>

- hex digits, upper or lower case

- spaces and commas are ignored, other non-hex characters cause error

- string should have even length (multiple of 2, as in 2 nibbles/byte)

 

<data>

- encoded as base64 (plist editors will do this for you)

Share this post


Link to post
Share on other sites

Yes I did that at the beginning, but later on I was a little confused because of posts telling me that Clover can't apply it ...

You were right .. apologies !

 

Clover accepts both <data> and <string> for KextsToPatch Find/Replace specifications.

 

<string>

- hex digits, upper or lower case

- spaces and commas are ignored, other non-hex characters cause error

- string should have even length (multiple of 2, as in 2 nibbles/byte)

 

<data>

- encoded as base64 (plist editors will do this for you)

 

This is new information to me, thanks for pointing this out.

Share this post


Link to post
Share on other sites

This is new information to me, thanks for pointing this out.

The best "documentation" for Clover is in the Clover source code :-)

Share this post


Link to post
Share on other sites

@RehabMan:

 

Always a pleasure to hear your suggestions.

 

Clover accepts both <data> and <string> for KextsToPatch Find/Replace specifications.

<string>
- hex digits, upper or lower case
- spaces and commas are ignored, other non-hex characters cause error
- string should have even length (multiple of 2, as in 2 nibbles/byte)

<data>
- encoded as base64 (plist editors will do this for you)

 

I knew that. I don't know why i misinterpreted this info before.

 

The best "documentation" for Clover is in the Clover source code :-)

 

Right. But it gives you a headache sometimes. 


@eplightning:

 

I'll try your patches now.

Share this post


Link to post
Share on other sites

Another set of patches, doesn't touch bpp now - instead focusing on making sure driver computes few parameters exactly like on Linux.

<dict>
    <key>Name</key>
    <string>AppleIntelFramebufferAzul</string>
    <key>Comment</key>
    <string>Force lane count to 2 and bw to 0x0a in SetupOptimalLaneCount</string>
    <key>Find</key>
    <string>55 48 89 E5 49 89 D0 44 8B 9E 9C 34 00 00 44 8A 8E ED 20 00 00 45 84 C9 74 09 0F B6 8E E1 20 00 00</string>
    <key>Replace</key>
    <string>55 48 89 E5 49 89 D0 B9 02 00 00 00 41 BB 0A 00 00 00 E9 A1 00 00 00 C9 74 09 0F B6 8E E1 20 00 00</string>
</dict>
<dict>
    <key>Name</key>
    <string>AppleIntelFramebufferAzul</string>
    <key>Comment</key>
    <string>Always call SetupOptimalLaneCount in SetupClocks</string>
    <key>Find</key>
    <string>00 00 00 03 75 10 4C 89 E7 48 89</string>
    <key>Replace</key>
    <string>00 00 00 03 90 90 4C 89 E7 48 89</string>
</dict>
<dict>
    <key>Name</key>
    <string>AppleIntelFramebufferAzul</string>
    <key>Comment</key>
    <string>Force PORT_CLK_SEL_A to PORT_CLK_SEL_LCPLL_810</string>
    <key>Find</key>
    <string>48 8B 8B 98 00 00 00 8B 49 1C 49 8B 96 40 05 00 00</string>
    <key>Replace</key>
    <string>B9 00 00 00 40 90 90 90 90 90 49 8B 96 40 05 00 00</string>
</dict>

If it still doesn't work try to add my previous patch for forcing bpp to 6 in addition to this patchset. If still no progress then I'm out of ideas for now :c

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By mpe
      Hi,
       
      After wakeup my system is slow, console input show some duplicate character when I type some commands. Intel Power Gadget is shows no more statistics.
      I am looking for solution several days, but I can't find.
       
      Maybe some one have the same system or tips for me?
       
      I have already attach the Runme.app zip
       
      Best regards,
       
      mpe
      Send me mpe.zip
    • By gk12345
      Hi everyone, after lots of attempts i managed to install Mojave 14.4 on my asus zenbook ux303ub and get almost averything working, except i wasnt able to make wifi work with sleep, i replaced the intel wifi with dw1560/bcm94352z which i made to work by installing the kexts.The problem is that when i install it sleep gets affected, when i press sleep it takes 1 minute to go to sleep and when i press the power button it wakes to a black screen that is showing only the cursor and i have to force shut down by holding power button , so in order to fix sleep the only way i have found is to select "fixregions" in config.plist acpi section but then wifi stops working, it shows "hardware not installed" when i click the icon and only bluetooth works.I have tried clover config changes, patching ssdt and dsdt, usb ssdt, installing kexts in different locations but none of them seem to work , can someone help me with this?
      I attach the files below , thanks.
      debug_25741.zip
    • By BauerMac
      Hey guys,
      I hope you can help me solve a mystery.
      Even the amazing Mald0n has been working hard to help me find a solution, but now were are both stuck.
      Creative thinking or maybe just help to see the forest for the trees would be highly appreciated.
       
      PROBLEM:
      Mac will not sleep.
      Monitors sleep fine, and come back on with touch of keyboard.
      GPU and CPU coolers are constantly running on idle to low load and will not go on standby no matter what we have tried.
      Even when using full “Shut down” via apple menu the lights from the MoBo or GPU are pulsing slowly, which they normally dont as far as I recall.
      (This specific issue could possibly be solved by using ErP Ready in BIOS. Haven´t tested this since that´s a smaller issue ATM)
       
      Everything else seems to be working fine.
      This problem started appr a week ago, and I have no idea why.
      No major installs, updates or changes that I can think of.
       
      GOALS:
      • To be able to activate sleep via apple menu.
      • To have it sleep within 15-30 secs and wake up quickly (like it did before) via push on Power button

      TECH SPEC:
      • Running 10.13.6
      • Asus Maximus X Hero Wifi
      • Gtx 1080 Ti
      • 32 GB Corsair RAM
      • Intel i7 8700K
      • 2 monitors via Displayport
      • 6 internal disks (2 HDD, 4 SSD)
      • 1 external backup
      • 1 internal USB hub/SD reader
      • 3rd party Bluetooth and Wifi (Asus MB not compatible)
      • No Blutooth mouse, KB etc

      WHAT I HAVE DONE SO FAR:
      • Used Mald0n’s custom DSDT with latest config
      • IUpdated to latest Security Update
      • Updated to latest BIOS
      • Updated NVIDIA webdriver and CUDA to latest
      • Disconnected LED monitors and tested with old Mac monitor via DVI to see if Displayports were the issue
      • Disabled Adobe CC Sync
      • Run CleanMyMac
      • No start-up apps or extensions in System Prefs
      • Disk Utility: checked all disks
      • Terminal: no info on wake reason at all. (Possibly because it doesn´t sleep, hence nothing is interrupting it).
      • Blutooth allowed to wake sleep: set to OFF
      • Power manager: only setting is “never switch off monitors”. The rest are off/unchecked
      • BIOS: Tested by setting "ErP ready" to S5 > no difference
      • DSDT and EFI folder screenshot attached.

      I think that’s it - otherwise just ask
      I have read a lot of articles on this type of issue, but none with a clear answer.
      So if anyone can solve this mystery, it would be amazing!
      Thank you in advance!
       
      Bauermac DSDT.aml.zip



      UPDATE:
      Of course it was something seemingly insignificant and stupid that prevented sleep: An unfinished PRINTER job.... 
      After clearing the printer queue, it went to sleep but woke up immediately after due to a USB power issue. Possibly an internal USB/SD hub.
      Mald0n used his magic and made a new DSDT file to fix that, and now the machine is running almost perfectly apart from a fickle Bluetooth (fingers crossed).

      Hope this can help others out there with issues.

       
    • By vlgngrbrdmn
      Hey all,
       
      This is my first time posting to this forum.
       
      Here is my problem: My main issue is random freezing of my display (i.e. cannot move my mouse) and nothing being displayed after my monitors go to sleep (i.e. lock my screen, wait a few minutes, try to move mouse/type on keyboard. My displays wake up but display "no signal"). I have to reboot in order to use my Hackintosh again.

      Another issue that I am experiencing is that, every time I reboot my system and login initially, my right and left vertical displays do not display correctly until I turn one of them off and back on again. It is kind of hard to describe what is wrong, but basically the dimensions of the display and the orientation (horizontal vs. vertical) is wrong, and my mouse does not display in the correct place on the screen.

      Either way, after some research it looks like this all may be due to my Framebuffer being incorrect. However, I am having a hard time trying to determine whether that is the case and, if so, how to fix it.

      I did manually try to add a Framebuffer ("Kamarang") into my config.plist below, however that did not seem to make a difference.

      Any help with this would be much appreciated! Also, please let me know if I should upload anymore information.

      Currently, My setup consists of 1 Dell U3415w and 2 Dell 2415 monitors in an "H" configuration (both 2415s setup vertically on either side of the U3415W).

      This is all being powered by a SAPPHIRE Radeon RX Vega 64 (https://www.newegg.com/Product/Product.aspx?Item=N82E16814202326) with each monitor plugged via a DisplayPort.

      I am currently running the latest version of macOS Mojave, 10.14.4.

      I am also using the latest version of the Clover boot loader (4920) with the following kexts located in kexts\Other:
      AppleALC.kext AtherosE2200Ethernet.kext Lilu.kext USBInjectAll.kext VegaTab_64.kext VirtualSMC.kext WhateverGreen.kext My config.plist file contains the following:
      ?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>#DisableDrivers</key> <array> <string>CsmVideoDxe</string> <string>VBoxExt4</string> </array> <key>ACPI</key> <dict> <key>DSDT</key> <dict> <key>Fixes</key> <dict> <key>FixHPET</key> <true/> <key>FixIPIC</key> <true/> <key>FixRTC</key> <true/> <key>FixShutdown</key> <true/> <key>FixTMR</key> <true/> </dict> <key>Patches</key> <array> <dict> <key>Comment</key> <string>change XHCI to XHC</string> <key>Disabled</key> <false/> <key>Find</key> <data> WEhDSQ== </data> <key>Replace</key> <data> WEhDXw== </data> </dict> <dict> <key>Comment</key> <string>change XHC1 to XHC</string> <key>Disabled</key> <false/> <key>Find</key> <data> WEhDMQ== </data> <key>Replace</key> <data> WEhDXw== </data> </dict> <dict> <key>Comment</key> <string>change SAT0 to SATA</string> <key>Disabled</key> <false/> <key>Find</key> <data> U0FUMA== </data> <key>Replace</key> <data> U0FUQQ== </data> </dict> </array> </dict> <key>DropTables</key> <array> <dict> <key>Signature</key> <string>DMAR</string> </dict> <dict> <key>Signature</key> <string>MATS</string> </dict> </array> <key>FixHeaders</key> <true/> <key>SSDT</key> <dict> <key>Generate</key> <dict> <key>PluginType</key> <true/> </dict> </dict> </dict> <key>Boot</key> <dict> <key>Arguments</key> <string>keepsyms=1 dart=0 debug=0x100 shikigva=40</string> <key>DefaultVolume</key> <string>LastBootedVolume</string> <key>Timeout</key> <integer>5</integer> </dict> <key>BootGraphics</key> <dict> <key>#DefaultBackgroundColor</key> <string>0xF0F0F0</string> <key>EFILoginHiDPI</key> <integer>1</integer> <key>UIScale</key> <integer>1</integer> </dict> <key>CPU</key> <dict> <key>#BusSpeedkHz</key> <integer>133330</integer> <key>#FrequencyMHz</key> <integer>3140</integer> <key>#HWPEnable</key> <true/> <key>#HWPValue</key> <string>0x30002a01</string> <key>#QPI</key> <integer>4800</integer> <key>#SavingMode</key> <integer>7</integer> <key>#TDP</key> <integer>95</integer> <key>#TurboDisable</key> <true/> <key>#Type</key> <string>0x0201</string> <key>#UseARTFrequency</key> <true/> </dict> <key>Devices</key> <dict> <key>Audio</key> <dict> <key>Inject</key> <integer>1</integer> <key>ResetHDA</key> <true/> </dict> <key>Properties</key> <dict> <key>PciRoot(0x0)/Pci(0x2,0x0)</key> <dict> <key>AAPL,ig-platform-id</key> <data> AAASGQ== </data> <key>framebuffer-patch-enable</key> <data> AQAAAA== </data> <key>framebuffer-stolenmem</key> <data> AAAwAQ== </data> </dict> </dict> <key>USB</key> <dict> <key>FixOwnership</key> <true/> </dict> </dict> <key>GUI</key> <dict> <key>Hide</key> <array> <string>PREBOOT</string> </array> <key>Scan</key> <dict> <key>Entries</key> <true/> <key>Linux</key> <true/> <key>Tool</key> <true/> </dict> </dict> <key>Graphics</key> <dict> <key>FBName</key> <string>Kamarang</string> <key>Inject</key> <dict> <key>ATI</key> <false/> <key>Intel</key> <false/> <key>NVidia</key> <false/> </dict> <key>RadeonDeInit</key> <true/> </dict> <key>KernelAndKextPatches</key> <dict> <key>KernelPm</key> <true/> <key>KextsToPatch</key> <array> <dict> <key>Comment</key> <string>Port limit increase</string> <key>Disabled</key> <false/> <key>Find</key> <data> g710////EA== </data> <key>InfoPlistPatch</key> <false/> <key>MatchOS</key> <string>10.12.x</string> <key>Name</key> <string>com.apple.driver.usb.AppleUSBXHCI</string> <key>Replace</key> <data> g710////Gw== </data> </dict> <dict> <key>Comment</key> <string>Port limit increase (RehabMan)</string> <key>Disabled</key> <false/> <key>Find</key> <data> g32IDw+DpwQAAA== </data> <key>InfoPlistPatch</key> <false/> <key>MatchOS</key> <string>10.13.x</string> <key>Name</key> <string>com.apple.driver.usb.AppleUSBXHCI</string> <key>Replace</key> <data> g32ID5CQkJCQkA== </data> </dict> <dict> <key>Comment</key> <string>Port limit increase (PMHeart)</string> <key>Disabled</key> <true/> <key>Find</key> <data> g/sPD4MDBQAA </data> <key>InfoPlistPatch</key> <false/> <key>MatchOS</key> <string>10.14.0</string> <key>Name</key> <string>com.apple.driver.usb.AppleUSBXHCI</string> <key>Replace</key> <data> g/sPkJCQkJCQ </data> </dict> <dict> <key>Comment</key> <string>Port limit increase (Ricky)</string> <key>Disabled</key> <false/> <key>Find</key> <data> g/sPD4OPBAAA </data> <key>InfoPlistPatch</key> <false/> <key>MatchOS</key> <string>10.14.x</string> <key>Name</key> <string>com.apple.driver.usb.AppleUSBXHCI</string> <key>Replace</key> <data> g/sPkJCQkJCQ </data> </dict> <dict> <key>Comment</key> <string>External Icons Patch</string> <key>Disabled</key> <false/> <key>Find</key> <data> RXh0ZXJuYWw= </data> <key>InfoPlistPatch</key> <false/> <key>Name</key> <string>AppleAHCIPort</string> <key>Replace</key> <data> SW50ZXJuYWw= </data> </dict> </array> </dict> <key>RtVariables</key> <dict> <key>BooterConfig</key> <string>0x28</string> <key>CsrActiveConfig</key> <string>0x67</string> <key>MLB</key> <string>C02601270QXGPF7FB</string> <key>ROM</key> <string>UseMacAddr0</string> </dict> <key>SMBIOS</key> <dict> <key>BoardSerialNumber</key> <string>C02601270QXGPF7FB</string> <key>ProductName</key> <string>iMac17,1</string> <key>SerialNumber</key> <string>C02R2HZDGG7L</string> <key>SmUUID</key> <string>91E0E343-A938-4117-BBC7-234EA3ED265E</string> </dict> <key>SystemParameters</key> <dict> <key>InjectKexts</key> <string>Yes</string> <key>InjectSystemID</key> <true/> </dict> </dict> </plist> Also, for what it is worth, sleep is disabled on my system:

      Again, thank you all for taking time out of your day to help a fellow hackintosher out!
    • By Ade866
      Hi everyone, I have been optimizing my Asus x54h for some time. But now I find myself with sierra 10.12.6 installed with the problem of sleep, well: as soon as I put the PC to sleep the fans keep running, after a while they stop for a second and then start to turn again waking up the PC. What do you think the problem is? The notebook is equipped with: Amd 6470M CPU intel core i3 2330m. 4gb Ram DDR3 SDRAM. Clover legacy bootloader.
      config.plist
      SSDT.aml
      DSDT.aml
      Andrea’s iMac.zip
×