WhateverGreen

June 14, 2025 ยท View on GitHub

Build Status Scan Status

Lilu plugin providing patches to select GPUs on macOS. Requires Lilu 1.5.6 or newer.

Features

  • Fixes boot to black screen on AMD and NVIDIA
  • Fixes sleep wake to black screen on AMD
  • Fixes boot screen distortion in certain cases
  • Fixes transmitter/encoder in autodetected connectors for multimonitor support (-raddvi)
  • Fixes HD 7730/7750/7770/R7 250/R7 250X initialisation (radpg=15)
  • Allows tuning of aty_config, aty_properties, cail_properties via ACPI
  • Allows enforcing 24-bit mode on unsupported displays (-rad24)
  • Allows booting without video acceleration (-radvesa)
  • Allows automatically setting GPU model name or providing it manually for RadeonFramebuffer
  • Allows specifying custom connectors via device properties for RadeonFramebuffer
  • Allows tuning autodetected connector priority via device properties (HD 7xxx or newer)
  • Fixes an issue in AppleGraphicsDevicePolicy.kext so that we could use a MacPro6,1 board-id/model combination, without the usual hang with a black screen. Patching AppleGraphicsDevicePolicy.kext
  • Modifies macOS to recognize NVIDIA's web drivers as platform binaries. This resolves the issue with transparent windows without content, which appear for applications that use Metal and have Library Validation enabled. Common affected applications are iBooks and Little Snitch Network Monitor, though this patch is universal and fixes them all. NVWebDriverLibValFix
  • Injects IOVARendererID into GPU properties (required for Shiki-based solution for non-freezing Intel and/or any discrete GPU)
  • For Intel HD digital audio HDMI, DP, Digital DVI (Patches connector-type DP -> HDMI)
  • Fixes NVIDIA GPU interface stuttering on 10.13 (official and web drivers)
  • Fixes the kernel panic caused by an invalid link rate reported by DPCD on some laptops with Intel IGPU.
  • Fixes the infinite loop on establishing Intel HDMI connections with a higher pixel clock rate on Skylake, Kaby Lake and Coffee Lake platforms.
  • Implements the driver support for onboard LSPCON chips to enable DisplayPort to HDMI 2.0 output on some platforms with Intel IGPU.
  • Enforces complete modeset on non-built-in displays on Kaby Lake and newer to fix booting to black screen.
  • Allows non-supported cards to use HW video encoder (-radcodec)
  • Fixes choppy video playback on Intel Kaby Lake and newer.
  • Fixes black screen on Intel HD since 10.15.5.
  • Adds workaround for rare force wake timeout panics on Intel KBL and CFL.
  • Supports all valid Core Display Clock (CDCLK) freqencies on Intel ICL platforms.
  • Fixes the kernel panic caused by an incorrectly calculated amount of DVMT pre-allocated memory on Intel ICL platforms.
  • Makes brightness transitions smoother on Intel IVB+ platforms.
  • Fixes the short period garbled screen issue after the system boots on Intel ICL platforms.
  • Fixes the PWM backlight control of the built-in display that is directly wired to AMD Radeon RX 5000 series graphic cards.
  • Fixes the freeze during iGPU initialization that may occur on certain laptops such as Chromebooks on macOS 10.15 and later.

Documentation

Read FAQs and avoid asking any questions. No support is provided for the time being.

Boot arguments

Global
Boot argumentDevicePropertiesDescription
-cdfonenable-hdmi20Enable HDMI 2.0 patches on iGPU and dGPU (Not implemented for macOS 11+)
-wegbetaN/AEnable WhateverGreen on unsupported macOS versions (26 and below are enabled by default)
-wegdbgN/AEnable debug printing (available in DEBUG binaries)
-wegoffN/ADisable WhateverGreen
Switch GPU
Boot argumentDevicePropertiesDescription
-wegnoegpudisable-gpu property to each GFX0Disable all external GPUs
-wegnoigpudisable-gpu property to IGPUDisable internal GPU
-wegswitchgpuswitch-to-external-gpu property to IGPUDisable internal GPU when external GPU is installed
AMD Radeon
Boot argumentDevicePropertiesDescription
-rad24N/AEnforce 24-bit display mode
-radcodecN/AForce the spoofed PID to be used in AMDRadeonVADriver
-raddviN/AEnable DVI transmitter correction (required for 290X, 370, etc.)
-radvesaN/ADisable ATI/AMD video acceleration completely
radpg=15N/ADisable several power-gating modes (see FAQ Radeon, required for Cape Verde GPUs: Radeon HD 7730/7750/7770/R7 250/R7 250X)
Board-id
Boot argumentDevicePropertiesDescription
agdpmod=ignoreagdpmod property to external GPUDisables AGDP patches (vit9696,pikera value is implicit default for external GPUs)
agdpmod=pikeraagdpmod property to external GPUReplaces board-id with board-ix
agdpmod=vit9696agdpmod property to external GPUDisable check for board-id
Nvidia
Boot argumentDevicePropertiesDescription
-ngfxdbgN/AEnable NVIDIA driver error logging
ngfxcompat=1force-compatIgnore compatibility check in NVDAStartupWeb
ngfxgl=1disable-metalDisable Metal support on NVIDIA
ngfxsubmit=0disable-gfx-submitDisable interface stuttering fix on 10.13
Intel HD Graphics
Boot argumentDevicePropertiesDescription
-igfxblrenable-backlight-registers-fix property on IGPUFix backlight registers on KBL, CFL and ICL platforms
-igfxblsenable-backlight-smoother property on IGPUMake brightness transitions smoother on IVB+ platforms. Read the manual
-igfxbltenable-backlight-registers-alternative-fix property on IGPUAn alternative to the Backlight Registers Fix and make Backlight Smoother work on KBL/CFL platforms running macOS 13.4 or later. Read the manual
-igfxcdcenable-cdclk-frequency-fix property on IGPUSupport all valid Core Display Clock (CDCLK) frequencies on ICL platforms. Read the manual
-igfxdbeoenable-dbuf-early-optimizer property on IGPUFix the Display Data Buffer (DBUF) issues on ICL+ platforms. Read the manual
-igfxdumpN/ADump IGPU framebuffer kext to /var/log/AppleIntelFramebuffer_X_Y (available in DEBUG binaries)
-igfxdvmtenable-dvmt-calc-fix property on IGPUFix the kernel panic caused by an incorrectly calculated amount of DVMT pre-allocated memory on Intel ICL platforms
-igfxfbdumpN/ADump native and patched framebuffer table to ioreg at IOService:/IOResources/WhateverGreen
-igfxhdmidivsenable-hdmi-dividers-fix property on IGPUFix the infinite loop on establishing Intel HDMI connections with a higher pixel clock rate on SKL, KBL and CFL platforms
-igfxi2cdbgN/AEnable verbose output in I2C-over-AUX transactions (only for debugging purposes)
-igfxlspconenable-lspcon-support property on IGPUEnable the driver support for onboard LSPCON chips.
Read the manual
-igfxmlrenable-dpcd-max-link-rate-fix property on IGPUApply the maximum link rate fix
-igfxmpcenable-max-pixel-clock-override and max-pixel-clock-frequency properties on IGPUIncrease max pixel clock (as an alternative to patching CoreDisplay.framework
-igfxnohdmidisable-hdmi-patchesDisable DP to HDMI conversion patches for digital sound
-igfxnotelemetryloaddisable-telemetry-load property on IGPUDisables iGPU telemetry loading that may cause a freeze during startup on certain laptops such as Chromebooks
-igfxsklaskblN/AEnforce Kaby Lake (KBL) graphics kext being loaded and used on Skylake models (KBL device-id and ig-platform-id are required. Not required on macOS 13 and above)
-igfxtypecN/AForce DP connectivity for Type-C platforms
-igfxvesaN/ADisable Intel Graphics acceleration
igfxagdc=0disable-agdc property on IGPUDisable AGDC
igfxfcms=1complete-modeset property on IGPUForce complete modeset on Skylake or Apple firmwares
igfxfcmsfbs=complete-modeset-framebuffers property on IGPUSpecify indices of connectors for which complete modeset must be enforced. Each index is a byte in a 64-bit word; for example, value 0x010203 specifies connectors 1, 2, 3. If a connector is not in the list, the driver's logic is used to determine whether complete modeset is needed. Pass -1 to disable.
igfxframe=frameAAPL,ig-platform-id or AAPL,snb-platform-id property on IGPUInject a dedicated framebuffer identifier into IGPU (only for TESTING purposes)
igfxfw=2igfxfw property on IGPUForce loading of Apple GuC firmware
igfxgl=1disable-metalDisable Metal support on Intel
igfxmetal=1enable-metalForce enable Metal support on Intel for offline rendering
igfxonln=1force-online property on IGPUForce online status on all displays
igfxonlnfbs=MASKforce-online-framebuffers property on IGPUSpecify indices of connectors for which online status is enforced. Format is similar to igfxfcmsfbs
igfxpavp=1igfxpavp property on IGPUForce enable PAVP output
igfxrpsc=1rps-control property on IGPUEnable RPS control patch (improves IGPU performance)
igfxsnb=0N/ADisable IntelAccelerator name fix for Sandy Bridge CPUs
Backlight
Boot argumentDevicePropertiesDescription
applbkl=3applbkl propertyEnable PWM backlight control of AMD Radeon RX 5000 series graphic cards read here.
applbkl=0applbkl property on IGPUDisable AppleBacklight.kext patches for IGPU.
In case of custom AppleBacklight profile read here
2nd Boot stage
Boot argumentDevicePropertiesDescription
gfxrst=1N/APrefer drawing Apple logo at 2nd boot stage instead of framebuffer copying
gfxrst=4N/ADisable framebuffer init interaction during 2nd boot stage
Misc
Boot argumentDevicePropertiesDescription
wegtree=1rebuild-device-tree propertyForce device renaming on Apple FW

Credits

  • Apple for macOS
  • AMD for ATOM VBIOS parsing code
  • The PCI ID Repository for multiple GPU model names
  • Andrey1970AppleLife for FAQs
  • FireWolf for the DPCD maximum link rate fix, infinite loop fix for Intel HDMI connections, LSPCON driver support, Core Display Clock frequency fix for ICL platforms, DVMT pre-allocated memory calculation fix for ICL platforms, Backlight Smoother for IVB+ platforms, Display Data Buffer fix for ICL platforms, and Backlight Registers Alternative Fix.
  • Floris497 for the CoreDisplay patches
  • Fraxul for original CFL backlight patch
  • headkaze for Intel framebuffer patching code and CFL backlight patch improvements
  • hieplpvip for initial AppleBacklight patching plugin
  • igork for power-gating patch discovery and various FP research
  • lvs1974 for continuous implementation of Intel and NVIDIA fixing code
  • mologie for creating NVWebDriverLibValFix.kext which forces macOS to recognize NVIDIA's web drivers as platform binaries
  • PMheart for CoreDisplay patching code and Intel fix backporting
  • RehabMan for various enhancements
  • RemB for continuing sleep-wake research and finding the right register for AMD issues
  • Vandroiy for maintaining the GPU model detection database
  • YungRaj and syscl for Intel fix backporting
  • vit9696 for writing the software and maintaining it