Contribute
Register

An iDiot's Guide To Lilu and its Plug-ins

jaymonkey

Moderator
Joined
Aug 27, 2011
Messages
3,771
Motherboard
ASRock-Z97 EX6
CPU
i7-4790K OC @ 4.8GHz
Graphics
Vega 64LC + HD4600
Mac
MacBook Air, MacBook Pro
Mobile Phone
Android, iOS
Thanks for the guide! I've been trying to setup headless iGPU on a 9900k but FBpatcher crashes everytime I try to Generate Patch (after inputting all the correct settings). Any suggestions? Thanks!
@robnlauren,

The only time i've seen that is if Lilu & WhatEverGreen are not already installed or not installed correctly.

Cheers
Jay
 
Joined
May 5, 2018
Messages
8
Motherboard
Gigabyte H370 HD3
CPU
i3-8100
Graphics
UHD 630
Mobile Phone
iOS
Thank you @jaymonkey for this really nice tutorial.
I have a suggestion for the AppleALC section if you think it's ok. I spent the last week trying to get my sound working on ALC269, testing all 34 layouts (yup)... many times, looking at the official AppleALC forum and trying to understand all the pin config, layout and platform .xml stuff just to find out that actually because of an IRQ conflict AppleHDA was never loading... I try to keep DSDT/SSDT patching and Clover options at minimal just adding them when I need them. The alc-layout-id was changing to what I wanted and layout-id was 07000000... so everything was as expected and no sign that AppleALC was not loading (at least for a noob like me). So my suggestion:
After installing Lilu and AppleALC in order to check if kexts were loaded and also that AppleHDA is loading enter in terminal:
Code:
kextstat | grep 'Lilu\|AppleALC\|AppleHDA'
You should see all three kext in the list.
If you don't see AppleHDA you may have an IRQ conflict. You could try enabling FixHPET from Clover (which also worked for me) but I think you should patch the DSDT with @RehabMan (thank you!) MaciASL "[sys] IRQ Fix" patch.
 
Last edited:

jaymonkey

Moderator
Joined
Aug 27, 2011
Messages
3,771
Motherboard
ASRock-Z97 EX6
CPU
i7-4790K OC @ 4.8GHz
Graphics
Vega 64LC + HD4600
Mac
MacBook Air, MacBook Pro
Mobile Phone
Android, iOS
So my suggestion, After installing Lilu and AppleALC in order to check if kexts were loaded and also that AppleHDA is loading enter in terminal:
Code:
kextstat | grep 'Lilu\|AppleALC\|AppleHDA'
You should see all three kext in the list.
If you don't see AppleHDA you may have an IRQ conflict. You could try enabling FixHPET from Clover (which also worked for me) but I think you should patch the DSDT with @RehabMan (thank you!) MaciASL "[sys] IRQ Fix" patch.
@buzzvicky,

Thanks for your feedback and your suggestion for debugging the AppleALC and AppleHDA kexts.
I haven't seen that issue myself as the HPET issue is an issue with AppleHDA rather than AppleALC.
However what you suggest makes a lot of sense and i think it could help those with similar issues...
I've added a new section to the bottom of the AppleALC part of the guide that deals with the HPET issue.

Cheers
Jay
 
Last edited:
Joined
Aug 25, 2012
Messages
905
Motherboard
Gigabyte Z390 Designare
CPU
i9 9900k
Graphics
RX480
Mac
MacBook Pro
Classic Mac
Performa, Power Mac, PowerBook
Mobile Phone
iOS
Hi Jay,
Thanks for this very clear tutorial. I still have a problem though: in 10.13.1 I can play HEVC 8-bit movies with proper HW acceleration, but in 10.14.2 this stutters and doesn't work right, not in QT, not in VLC, not in preview.

Any ideas how to fix this?

Shuhung said if it works in High Sierra, it will work in Mojave, but not in my case with Skylake/HD530/RX480.
 

jaymonkey

Moderator
Joined
Aug 27, 2011
Messages
3,771
Motherboard
ASRock-Z97 EX6
CPU
i7-4790K OC @ 4.8GHz
Graphics
Vega 64LC + HD4600
Mac
MacBook Air, MacBook Pro
Mobile Phone
Android, iOS
I still have a problem though: in 10.13.1 I can play HEVC 8-bit movies with proper HW acceleration, but in 10.14.2 this stutters and doesn't work right, not in QT, not in VLC, not in preview.
@zipb,

Sorry I have not had any experience with SkyLake CPU's and have not seen this issue myself. I assume that since you have RX480 dGPU that your using a headless PlatformID ?

Intel i7 6700K has HD 530 IGPU so the correct AAPL-platform-id value would be "01001219" (PlatformID = 0x19120001) and the recommended SMBIOS would be iMac 17,1 which according to MacTracker would be the closest match.

You could also try injecting the Device Property "device-id" with a value of "12190000" which may (or may not) help, see Examples Note-1 in the WEG Configuration Continued section of the guide for more info.

If your already using those values then it might be worth posting on the WhatEverGreen thread your specs and see if anyone else with the same CPU/IGPU is also having a similar issue ...

Cheers
Jay
 
Last edited:
Joined
Nov 14, 2010
Messages
1
Motherboard
MAC Lion 10.7.4
CPU
Quad-Core Intel Xeon
Graphics
nVidia GeForce 9800 GT
Mac
MacBook Air, Mac Pro
Classic Mac
Mobile Phone
Other
Can I just use Lilu instead of Clover? Or do you need both.
 

Feartech

Moderator
Joined
Aug 3, 2013
Messages
17,360
Motherboard
Asus N752VX-OpenCore
CPU
i7-6700HQ / HM170
Graphics
HD 530 1920 x 1080
Mac
iMac
Mobile Phone
iOS
Can I just use Lilu instead of Clover? Or do you need both.
clover is a bootloader

lilu is a plugin

you will need both as they do different things
 
Joined
Dec 14, 2016
Messages
353
Motherboard
Asus Prime z370 A-II
CPU
i9-9900K
Graphics
Radeon VII
Mac
MacBook Pro, Mac Pro
Mobile Phone
iOS
@jaymonkey Great information and tutorial, thanks for your efforts. Really helpful!

Wondering if you could provide any insight on how DRM uses the iGPU vs. AMD or Nvidia.

Based on posts here, it seems most users who have AMD/Nvidia are able to get DRM working in Mojave but only by disabling the iGPU.

Doing that though breaks hardware acceleration for things like Final Cut. Enabling the iGPU/hardware acceleration disables DRM. We can’t seem to get both at the same time.

Any thoughts?
 

jaymonkey

Moderator
Joined
Aug 27, 2011
Messages
3,771
Motherboard
ASRock-Z97 EX6
CPU
i7-4790K OC @ 4.8GHz
Graphics
Vega 64LC + HD4600
Mac
MacBook Air, MacBook Pro
Mobile Phone
Android, iOS
Wondering if you could provide any insight on how DRM uses the iGPU vs. AMD or Nvidia. Based on posts here, it seems most users who have AMD/Nvidia are able to get DRM working in Mojave but only by disabling the iGPU.

Doing that though breaks hardware acceleration for things like Final Cut. Enabling the iGPU/hardware acceleration disables DRM. We can’t seem to get both at the same time.
@Scott1204,

Sorry Scott its not a problem that i've personally run into as I don't watch any DRM content on my Hacks although I am aware of the issue and as you say, for a lot of users it does seem to necessitate having to choose between either having QuickSync working with the IGPU Enabled or being able to play DRM content via dGPU with the IGPU disabled.

In the past i think the solution was to use the Shiki Lilu plugin which has since been incorporated into WhatEverGreen ... so that is where i would start ... try working through the Shiki FAQ (its in the WEG Manual) and see if it makes any sense, however its not made clear just what WEG does automatically and what it does not with regards to the Shiki so it might be worth posting on the WhatEverGreen support thread for some advice ...

I don't have any DRM content so i cant really test it myself but if you manage to get somewhere please post back here so we can update the guide and help others ...

Cheers
Jay
 
Joined
Nov 30, 2011
Messages
117
Motherboard
Gigabyte H370M-D3H-Clover
CPU
i3-8350K
Graphics
RX 570, 1920x1080
Mobile Phone
iOS
@jaymonkey

Deciphering the IGPU and dGPU are one of my last issues I've been investigating on my new build.

https://www.tonymacx86.com/threads/...i3-8350k-ga-h370m-d3h-16gb-ram-rx-570.267682/

I've enable Internal Graphics in BIOS and my DGPU is set as the primary display adapter. My SMBIOS is 14,2. Reviewing IOREG, VideoProc and VDA DecoderChecker, all seems to be what you show as working.

You mention that if I don't use a correct SMBIOS, which I'm assuming "should" be 18,x, I might see an unstable system. Right now, I'm not noticing anything out of the ordinary/unstable. System sleeps, wakes, restarts, shutdowns normally. Quicklook works. Able to play DRM videos via iTunes. No random system freezes.

Based on my screenshots below, is the IGPU set correctly? As long as I don't start noticing problems, I would see this as a functional/correct setup?

upload_2018-12-29_22-17-9.png


upload_2018-12-29_22-18-3.png

upload_2018-12-29_22-18-35.png
 
Top