Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
The first post of this thread is a WikiPost and can be edited by anyone with the appropiate permissions. Your edits will be public.

ZeroKool79

macrumors newbie
Jan 11, 2019
10
0
France
I can post the whole procedure here. My test shows very safe actually, worst case just some apps can’t open, and a warning window pops up.

WARNING: only do the following if the WhateverGreen method in post #1 doesn’t work, AND you know how to recovery the ENTIRE OS.

1) Remove all Lilu, WhateverGreen, and boot argument if applicable. (If you need innie, you can keep Lilu). If you remove boot argument by NVRAM reset, you have to disable SIP again in order to modify system files.

2) Go to System⁩ ▸ ⁨Library⁩ ▸ ⁨PrivateFrameworks⁩

3) right click AppleGVA.framework

4) Duplicate this file

5) single click the ORIGINAL AppleGVA.framework

6) Press “Command + i”

7) in the pop up window, rename “AppleGVA.framework” to “AppleGVA.framework.bak” (the file icon should now change to normal folder icon)
View attachment 841933

8) Rename the duplicated “AppleGVA copy.framework” to “AppleGVA.framework”. (This file’s permission should be wrong at this moment, but tests shows no adverse effect. In fact, make it easier for us to mod. For beta testing, I intentionally keep this “wrong” file permission)

9) double click the current AppleGVA.framework, you should able to open it.

10) continue to Version -> A, and locate “AppleGVA” (this file has no extension)
View attachment 841938

11) open this AppleGVA file with a Hex editor.

12) find 37 42 41 35 42 32 44 39 45 34 32 44 44 44 39 34 (should have TWO match result in Mojave. If you want to try this in 10.15, you may find only one result)
View attachment 841940 View attachment 841939

13) replace BOTH by 46 32 32 31 42 45 43 38 00 00 00 00 00 00 00 00 (make sure you replace the original byte, NOT insert).
View attachment 841942 View attachment 841941

14) save the file

15) open terminal

16) enter
Code:
sudo codesign -f -s - /System/Library/PrivateFrameworks/AppleGVA.framework/Versions/A/AppleGVA

17) in Finder, in that folder “A”, continue go into folder “Resources”

18) open the info.plist with text editor

19) search 7BA5B2D9E42DDD94
View attachment 841944

20) replace that by F221BEC8
View attachment 841943

21) Reboot.

The Hardware acceleration state now should be same as using the WhateverGreen method.

For those who prefer to keep SIP ON. Once you confirm everything is working as expected, you may now turn SIP back on.

Optional steps to repair all modified files' permission.

22) In terminal, enter
Code:
sudo codesign --deep -fs - /System/Library/PrivateFrameworks/AppleGVA.framework

23) Enter
Code:
sudo chown -R root:wheel /System/Library/PrivateFrameworks/AppleGVA.framework

24) Enter
Code:
sudo update_dyld_shared_cache -force


If anything wrong. Do the following recovery action.

A) go to System⁩ ▸ ⁨Library⁩ ▸ ⁨PrivateFrameworks⁩

B) delete AppleGVA.framework

C) rename AppleGVA.framework.bak to AppleGVA.framework (you should able to see the icon change again).

Now, your system should back to normal.


One of the advantage of using this alternate method is that you can turn ON/OFF hwaccel without reboot.

To turn OFF:

1) Rename the modded AppleGVA.framework to AppleGVA.framework.mod.bak.

2) And rename the original AppleGVA.framework.bak to AppleGVA.framework.


To turn it back ON:

1) Rename the original AppleGVA.framework to AppleGVA.framework.bak.

2) And rename the modded AppleGVA.framework.mod.bak to AppleGVA.framework.

Hi I'm French . I would like to know which hex editor you use?
 

ZeroKool79

macrumors newbie
Jan 11, 2019
10
0
France
Thank you very much Startergo, but I already tried with this one and I can't find the lines modified ... Can you give me the name of the one you use in this tutorial. Thank you
 
Last edited:

two-mac-jack

macrumors member
Mar 25, 2016
38
17
I already tried with this one and I can't find the lines modified ...

I was able to use Hex Fiend as follows -- it was very easy and worked great:

Open the AppGVA file as instructed. Invoke "Edit > Find" (Command + F). Copy hex string #1 from the instructions ("37 42 41 35 42 32 44 39 45 34 32 44 44 44 39 34") and paste it into the "Find" text box. Now copy hex string #2 from the instructions ("46 32 32 31 42 45 43 38 00 00 00 00 00 00 00 00") and paste it into the "Replace" text box. Click the "Replace All" button.

Then save the file, and continue with the instructions.

I have H264 hardware-assisted encode/decode working, and HEVC decode, on a dual-processor cMP 5,1 with an RX580 running Mojave 10.14.6.
 
  • Like
Reactions: JedNZ

ZeroKool79

macrumors newbie
Jan 11, 2019
10
0
France
I was able to use Hex Fiend as follows -- it was very easy and worked great:

Open the AppGVA file as instructed. Invoke "Edit > Find" (Command + F). Copy hex string #1 from the instructions ("37 42 41 35 42 32 44 39 45 34 32 44 44 44 39 34") and paste it into the "Find" text box. Now copy hex string #2 from the instructions ("46 32 32 31 42 45 43 38 00 00 00 00 00 00 00 00") and paste it into the "Replace" text box. Click the "Replace All" button.

Then save the file, and continue with the instructions.

I have H264 hardware-assisted encode/decode working, and HEVC decode, on a dual-processor cMP 5,1 with an RX580 running Mojave 10.14.6.


Thank you very much I finally understood. But I cannot modify the .Plist file. It is locked: /
 

two-mac-jack

macrumors member
Mar 25, 2016
38
17
You must disable SIP first. Type “csrutil status” in a terminal window to check the current setting.

If SIP is disabled and the plist file is locked, perhaps you have it open in more than one editor window, or in a different terminal session.
 
  • Like
Reactions: ZeroKool79

startergo

macrumors 603
Sep 20, 2018
5,021
2,283
Thank you very much I finally understood. But I cannot modify the .Plist file. It is locked: /
The Easy Way To Edit .plist file

Step1:


Open a terminal session: Finder –> Applications –> Utilities –> Terminal (See Figure 1.)


terminal.jpg


Figure 1.


Change to super user by entering the following command: sudo -s and then enter your password and press enter again. (See Figure 2.)


term2.jpg


Figure 2.


Change to the required directory (cd /Path/to/file) then hit enter. (See Figure 3.)


term3.jpg


Figure 3.


Edit the .plist file file by typing: (nano filename.plist) then hit enter. (See Figure 4.)


term4.jpg


Figure 4.
 
Last edited:
  • Like
Reactions: JedNZ

aacemyan

macrumors regular
Nov 20, 2017
135
206
TX
@h9826790 I'm on Catalina and using the latest config.plist that you've uploaded which achieves hardware acceleration without spoofing the iMac Pro smbios. While I'm able to get havoc encode / decode to work fine, I'm unable to get appletv + or Netflix to work. What is weird is that in Apple TV+ the video plays and I hear sound but image is black. I'm on a Vega 56 dual processor system btw.
 

aacemyan

macrumors regular
Nov 20, 2017
135
206
TX
Screen Shot 2020-01-20 at 8.59.47 PM.png
 

aacemyan

macrumors regular
Nov 20, 2017
135
206
TX
Sorry, don't know how to use Hackintool. When encording a 1080p h.264 video to HEVC using VideoProc, CPU is at around 50% (very low) and GPU hovers around 30-40% when monitoring using OpenGL monitoring tool.

The latest config.plist from H9826790 doesn't have you use clover configurator to generate iMac pro related info, so i'd look over it to see what he's changed (sorry i'm not savy enough to explain...)
 

aacemyan

macrumors regular
Nov 20, 2017
135
206
TX
What exactly do you mean? I am lost in this sentence.
I'm referring to the revised config.plist from the guide on post #594. It used to have you use clover configurator to generate UUID, Serial number, etc. to spoof iMac Pro but is no longer required.
 

startergo

macrumors 603
Sep 20, 2018
5,021
2,283
I'm referring to the revised config.plist from the guide on post #594. It used to have you use clover configurator to generate UUID, Serial number, etc. to spoof iMac Pro but is no longer required.
No you are wrong. It is still spoofed (partially). That is why the frequency is reported 3.5GHZ and the CPU idling is broken. As I said, with unpatched smbios your CPU will report 3.46Ghz. This is what we have been trying to work on lately, but cannot find a solution until this moment. If you set shikigva=80 as a boot argument (or 144) you should also get Netflix in Safari, Prime video and Apple TV working with this config.
 

aacemyan

macrumors regular
Nov 20, 2017
135
206
TX
Thank you for the clarification!

Regarding the boot arguments are you referring to this portion of the config.plist. I tried both 80 and 144 but neither made a difference and video is still black.

Screen Shot 2020-01-20 at 10.25.02 PM.png
 

startergo

macrumors 603
Sep 20, 2018
5,021
2,283
Thank you for the clarification!

Regarding the boot arguments are you referring to this portion of the config.plist. I tried both 80 and 144 but neither made a difference and video is still black.

View attachment 889827
You have the latest WEG and LILU kexts right? Is your video card attached under GFX0 in the registry? I had the black video once in a while too. Try signing out/in Appstore. You may also try 208 (80+128) or 16.
 

aacemyan

macrumors regular
Nov 20, 2017
135
206
TX
You have the latest WEG and LILU kexts right? Is your video card attached under GFX0 in the registry? I had the black video once in a while too. Try signing out/in Appstore. You may also try 208 (80+128) or 16.
Changing the shikigva values makes no difference and neither does signing in/out of app store. When you mention that video card should be attached under GFX0 in regisry, where do i check this setting? I it under the AppleGraphicsDevicePolicy.kext?
 

h9826790

macrumors P6
Original poster
Apr 3, 2014
16,656
8,587
Hong Kong
Changing the shikigva values makes no difference and neither does signing in/out of app store. When you mention that video card should be attached under GFX0 in regisry, where do i check this setting? I it under the AppleGraphicsDevicePolicy.kext?

1) Which Lilu and WEG version you are using? You MUST use the latest build to get DRM streaming work.

2) My config plist file assume the user install graphic card in slot 1
 

aacemyan

macrumors regular
Nov 20, 2017
135
206
TX
1) Which Lilu and WEG version you are using? You MUST use the latest build to get DRM streaming work.

2) My config plist file assume the user install graphic card in slot 1

I’m running the latest release versions of both lilu and WEG. Graphics card is also in slot 1.
 

aacemyan

macrumors regular
Nov 20, 2017
135
206
TX
So i did a little test and used the old method (spoofing iMac Pro), which used to work for drm streaming previously, and it no longer works either. Any ideas what could be causing the issue....seems like it might be a MacOS related problem.
 

ZeroKool79

macrumors newbie
Jan 11, 2019
10
0
France
You must disable SIP first. Type “csrutil status” in a terminal window to check the current setting.

If SIP is disabled and the plist file is locked, perhaps you have it open in more than one editor window, or in a different terminal session.
You must disable SIP first. Type “csrutil status” in a terminal window to check the current setting.

If SIP is disabled and the plist file is locked, perhaps you have it open in more than one editor window, or in a different terminal session.

Thanks for that . I'm going to try this on Friday. I'm not in front of my mac before
 

calmasacow

macrumors member
Jun 13, 2012
53
8
Houston, TX
Does RX 580 not support HVEC Hardware Acceleration?
after the fix my h.264 works but the HVEC says unsupported

is 10.14.6

2010 Mac Pro 5,1 12 core
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.