Dell OptiPlex 780 + AMD Radeon RX 640 (Lexa / Polaris 23) — macOS Monterey with full Metal acceleration
A legacy-BIOS Core 2 Duo desktop from 2009 running macOS Monterey 12.6.7 with a Dell OEM Radeon RX 640 4 GB
fully accelerated (Metal: Supported, 4 GB VRAM, Metal compositor) — a combination nobody had documented:
- Legacy BIOS only (no UEFI) → OpenCore via OpenDuet
- Penryn CPU without SSE4.2/AVX → AAAMouSSE SSE4.2 emulation for the AMD Metal driver
- RX 640 = device
0x6987 rev C1 ("POLARIS23") → not supported by any macOS; the usual 0x67FF spoof makes the
display work but breaks the accelerator (CAIL_ASICSetup() failed)
Also works on macOS High Sierra 10.13.6 with full acceleration → HIGH_SIERRA.md
(including the discovery that OCLP's AAAMouSSE hooks the wrong kernel-table slot on xnu-4570 and a 3-byte fix).
The working answer is: keep the real device-id, add 0x6987 to Apple's AMD driver matching with a codeless
injector kext loaded from /Library/Extensions (Auxiliary KC), and let WhateverGreen reorder the connectors
so the display runs on display pipe 0.
Proof: diagnostics/proof_acceleration_working.txt
Chipset Model: AMD Radeon RX 640 VRAM (Total): 4 GB
Device ID: 0x6987 Revision ID: 0x00c1 Metal: Supported
Framebuffer Depth: 30-Bit Color (ARGB2101010)
AMDRadeonX4000_AMDBaffinGraphicsAccelerator <... registered, matched, active ...>
WindowServer: Metal compositor activated.
WhateverGreen rad: getConnectorsInfo installed 3 connectors
Hardware
| Part |
Detail |
| Machine |
Dell OptiPlex 780 (Q45 / ICH10, legacy BIOS only) |
| CPU |
Intel Core 2 Duo E7xxx/E8xxx @ 2.93 GHz (Penryn: SSE4.1, no SSE4.2, no AVX) |
| RAM |
4 GB DDR3-1066 |
| GPU |
Dell OEM AMD Radeon RX 640 4 GB, 1002:6987 rev C1, subsys 1028:1713, VBIOS 113-D0914300-101 (ATOMBIOS "POLARIS23"), ports: 1× DP + 2× mini-DP |
| Display |
Dell SE2717H on the full-size DisplayPort |
| Ethernet |
Intel 82567LM-3 (8086:10DE) |
| Audio |
ADI AD1984A (AppleALC alcid=11) |
Final software stack
| Item |
Version / note |
| macOS |
Monterey 12.6.7 (21G651) — also boots Mojave 10.14.6 (display only, no accel — see below) |
| OpenCore |
1.0.7 via OpenDuet (boot file + boot0/boot1f32 on an MBR FAT32 partition) |
| SMBIOS |
iMacPro1,1 (dGPU-only, supported through Sequoia) |
| Lilu / WhateverGreen |
1.7.2 / 1.7.0 (DEBUG builds currently in the EFI — swap for RELEASE when done) |
| AAAMouSSE |
0.95-Dortania (from OpenCore Legacy Patcher) — required or WindowServer dies with SIGILL on pcmpgtq |
| telemetrap |
Mojave+ on non-SSE4.2 |
| ASPP-Override, AppleMCEReporterDisabler |
Monterey 12.3+ on Penryn with iMacPro1,1 (from OCLP) |
| RX640Injector |
codeless kext in /Library/Extensions (NOT in OpenCore) — see why below |
| SIP |
csr-active-config = 0x203 (allow unsigned + unapproved kexts) |
Repository layout
| Path |
What |
EFI-internal-final/ |
⭐ The final EFI, copied off the machine's internal ESP. Real ID + injector, connector reorder, SSDT-RX640-CODEC (hardware encode/decode), VoodooHDA audio, no -v. The config.plist.before-* files are the step-by-step backups. SMBIOS redacted. |
EFI-HighSierra/ |
⭐ macOS High Sierra 10.13.6 — fully GPU-accelerated (Metal, 4 GB, 1080p60), verified on the machine. Stage-1 config (safe VESA) + stage-2 config (real ID + High-Sierra-built injector + connector SSDT + AAAMouSSE patched for xnu-4570). Full recipe and root-cause write-up: HIGH_SIERRA.md. Scripts: make_usb_highsierra.sh, make_highsierra_bundle.sh, patch_mousse_highsierra.py, highsierra/. |
extras/AAAMouSSE-orig/ |
The stock AAAMouSSE 0.95 (OCLP) that the High Sierra patch starts from. |
EFI-USB-working/ |
The recovery USB's EFI (first working acceleration config: verbose boot, AppleALC, no codec spoof). SMBIOS redacted. |
extras/RX640Injector-Monterey-LE.kext |
The key piece. Install to /Library/Extensions (see step 6). Built from Monterey 12.6.7's own AMD personalities. |
acpi-src/ |
SSDT sources (.dsl) + compiled .aml: connector reorder, the various spoof attempts, decompiled patched Dell DSDT |
configs/ |
Every config.plist variant tried during the journey (all SMBIOS-redacted) |
scripts/ |
make_usb_monterey.sh (builds the legacy-boot USB), install_internal.sh (OpenDuet on the internal disk), make_injector.py (rebuild the injector for any macOS build), build_config_*.py (generate each config from OpenCore's Sample.plist) |
extras/ |
OpenDuet LegacyBoot files, AAAMouSSE, ASPP-Override, AppleMCEReporterDisabler, the (failed) OpenCore-injected injector variant |
EFI-Mojave-stable-vesa/ |
Mojave EFI that boots reliably with no GPU acceleration (VESA 7 MB) — safe fallback |
EFI-original-2020-downloaded/ |
The ancient OC 0.6 EFI this project started from (for reference only; don't use) |
diagnostics/ |
Proof output, Lilu/WhateverGreen debug log and kernel AMD log from the working boot, linkev's 7050 config used as reference |
AGENT_PLAYBOOK.md |
Step-by-step reproduction guide written for AI agents / humans, with every dead end and the log lines that identify each failure |
Not included on purpose: the Dell RX 640 VBIOS ROM and the AMD GOP driver extracted from it (proprietary AMD/Dell
firmware — get the ROM from TechPowerUp #230554 if you need it; it
turned out not to be needed), and macOS installers.
The recipe (short version)
- BIOS: SATA = AHCI, Legacy USB on, TPM/TXT off, VT-d can stay (DisableIoMapper is on).
- USB: MBR, FAT32
OPENCORE (300 MB) + HFS+ installer partition. Clone a createinstallmedia-style Monterey
volume with asr, write OpenDuet boot0 to the MBR and boot1f32 to the FAT32 boot sector, mark it active, copy
boot + EFI/. → scripts/make_usb_monterey.sh
- OpenCore config essentials (all in
EFI-USB-working/EFI/OC/config.plist):
Booter > Quirks > FixupAppleEfiImages = true — required with OpenDuet + SecureBootModel=Disabled, otherwise
OCB: LoadImage failed - Volume Corrupt.
UEFI > APFS > MinDate/MinVersion = -1, HfsPlusLegacy.efi (no RDRAND on Penryn), OpenVariableRuntimeDxe (LoadEarly) for emulated NVRAM.
ACPI: patched Dell DSDT.aml + SSDT-RX640-CONNECTORS.aml (connector reorder; no device-id spoof).
- Kexts: AAAMouSSE (first), Lilu, VirtualSMC, WhateverGreen, AppleALC, Intel82566MM, SATA-unsupported, telemetrap,
VoodooPS2, ASPP-Override + AppleMCEReporterDisabler (MinKernel 21.4.0).
- Kernel patch
IOHIDFamily _isSingleUser → mov eax,1; ret (MinKernel 20.0.0) for UHCI keyboards on Big Sur+.
FadtEnableReset, ReleaseUsbOwnership, csr-active-config 03020000, boot-args -v keepsyms=1 debug=0x100 alcid=11 agdpmod=pikera.
- Install Monterey (fresh or upgrade) — the display works in VESA mode with this config before step 6.
- On the Dell monitor OSD set Input Color Format = RGB if you ever see a purple/pink tint.
- Install the injector into the Auxiliary Kernel Collection (this is what makes acceleration + display work together):
sudo cp -R RX640Injector-Monterey-LE.kext /Library/Extensions/RX640Injector.kext
sudo chown -R root:wheel /Library/Extensions/RX640Injector.kext
sudo chmod -R 755 /Library/Extensions/RX640Injector.kext
sudo kmutil load -p /Library/Extensions/RX640Injector.kext # kernelmanagerd adds it to the AuxKC
sudo reboot
(kmutil install --update-all fails with Read-only file system on the sealed volume — use kmutil load -p.)
Final state (internal disk)
|
|
| boot-args |
keepsyms=1 debug=0x100 agdpmod=pikera -radcodec -liludbgall liludump=90 |
| GPU |
real 0x6987 in PCI config space (CAIL OK, Metal), device-id property 0x67FF + no-gfx-spoof + -radcodec → video engine sees a Baffin PID (SSDT-RX640-CODEC) |
| Video |
HEVC hardware encode ✅, HEVC hardware decode ✅ (H.264 encode uses the same engine but was not measured) — 600-frame 1080p HEVC encode in 29 s (~21 fps, encoder ~0% CPU); HEVC playback smooth with the decoder at 1–3% CPU. Test: scripts/Test-RX640-Video.command |
| Audio |
VoodooHDA 2.9.2 in /Library/Extensions (approved in Security & Privacy); AppleALC + OC VoodooHDA entry disabled |
/Library/Extensions |
RX640Injector.kext (codeless), VoodooHDA.kext |
| SIP |
csr-active-config 0x203 |
Why it works (the short explanation)
| Approach |
Chip init (CAIL) |
Display |
Why |
Spoof device-id 0x67FF (± revision-id 0xFF) |
❌ CAIL_ASICSetup() failed |
✅ |
HWLibs sees Baffin; can't init a Polaris 23. Mojave and Monterey HWLibs both fail. |