kingo132 / a51m-r2-5700m-hackintosh

Hackintosh for alienware a51m r2 with 5700m gpu
25 stars 2 forks source link

⚠️ DO NOT UPGRADE TO SONOMA. IT WILL BREAK THE WIFI.

Reference: https://www.insanelymac.com/forum/topic/357087-macos-sonoma-wireless-issues-discussion/?do=findComment&comment=2807454

ChangeLog

20230401

  1. Fixed the backlight problem for Mac OS 13.3 Ventura

20221025

  1. Support the backlight adjustment for Mac OS 13.0 Ventura

20220818

Greetings everyone. This changelog is a piece of good news. However, this has nothing to do with software.

I just changed my built-in display from B173ZAN06.1 to B173ZAN06.6. This 06.6 is a 4K@120hz Mini-LED display with 737 nits brightness (1000 nits peak), compared to 06.1 which has 480 nits (peak unknown). It has all the merits of 06.1 despite a bit gray in saturation in my experience (maybe no or tiny difference, just my perception). The most important is it is Mini-LED, which will have great black color and HDR support. I've tested several HDR videos on Mac OS. I have to say the experience is nearly as good as the display of a MacBook Pro 14inch 2021, which has 1000 nits (1600 nits peak) brightness. When compared to this MacBook Pro, the MacBook Pro does a little brighter and higher in contrast than 06.6, but the difference is not that much. So, in my opinion, this display is nearly 80% percent great when compared to the XDR display in MacBook Pro.

However, this 06.6 display has a problem in Windows. The AMD driver can not automatically recognize it well. By default, the AMD driver will crash after it detects this display. There are a few steps needed to adjust to using this display in Windows. First, you need to close the lid and use an external monitor, and then use this tool Custom Resolution Utility to change the resolution information of this display in EDID in the registry. If you need detailed instructions, I will post them later.

Plus, this 06.6 display uses 0.5mm gap 40 pin connector.

20220808

Great thanks to @TechProgenitor. This Hackintosh is incredibly perfect now after his modification and advice.

  1. Fixed trackpad guesture problem.
  2. Fixed all the sound card related problem.

20220726

  1. Fixed Lid sleep/wake and Battery indicator problem. By switching SSDT-EC-USBX-DESKTOP.aml to SSDT-EC-USBX-LAPTOP.aml.
  2. Added boot chime of a Windows ME/2000 boot sound, which is my favorite.

20220724

  1. Fixed sleep/wake related issues. The built-in display wake black issue seems fixed, by SSDT-AOACWAKE.aml.

20220710

  1. Fixed sleep/wake issue. However, the built-in display will wake with black screen after a long sleep (maybe 10+ hours). Other components seem fine after the wake, and I can hear the system sound while typing on my keyboard. This black screen problem can not be recovered. The only choice is to do a force reboot. I have tried several ways to fix it but with no success.

20220705

You can upgrade to Monterey now. You may, however, encounter failure during the second step of the OTA updating process with a boot error "ocb: starting image failed". Maybe it is due to the Secure boot option or the configuration of this EFI. I don't know the exact reason, and I just circumvent it by using another 10900k EFI and then switching back to my one. So be careful if you are using OTA to update to the Monterey. Anyway, fresh install Monterey looks fine.

  1. Added rx5700m GPU temperature sensor for iStat Menus
  2. Fixed Monterey backlight patch for rx5700m
  3. Updated Opencore to 0.8.2

a51m-r2-5700m-hackintosh

Hackintosh for alienware area 51m r2 with 5700m gpu, support Bigsur & Monterey

The specification

CPU Brand Name:      10900K
Video Chipset:       Intel UHD 630
Built-in Monitor:    1920x1080@144hz, changed to B173ZAN06.1 (4k@120hz)
Touch Pad:           I2C HID Device
Audio Adapter:       RealTek ALC215
Wireless Adapter:    Changed to BCM94352Z
DGPU:                AMD RX57000M
Card Reader:         Realtek RTS5260 PCI-E Card Reader, 10EC:5260, 1028:099B

Everything works except

AlienFX for Mac

I wrote a mac program to adjust the keyboard backlight brightness under Mac os, you can test it here

https://github.com/kingo132/AlienFX-For-MacOS

Unlock the performace of rx5700m in MacOS

By default, this rx5700m can only get 20000 Geekbench Metal score in MacOS, compared to Windows it can get 50000+ score. Here is the step to unlock it's performance. No need to modify any thing. Just resave the vBIOS using RED BIOS EDITOR tool. After the modification, the score will be 60000, enough for the performance of this rx5700m under MacOS.

  1. Dump the original vBIOS using a tool called amdvbflash.exe, save it to a51m.orig.rom.
  2. Download the RED BIOS EDITOR tools here: https://www.igorslab.de/en/red-bios-editor-and-morepowertool-adjust-and-optimize-your-vbios-and-even-more-stable-overclocking-navi-unlimited/3/
  3. Run MorePowerTool, open a51m.orig.rom, click save to save a mpt file a51m.orig.mpt
  4. Run Red BIOS Editor, open a51m.orig.rom, then load a51m.orig.mpt, then save to a51m.resave.rom
  5. run command "head -c 65536 a51m.resave.rom > a51m.resave.rom.64k" to get the first 64k of the rom
  6. run command "xxd -p a51m.resave.rom.64k | tr -d '\n' > a51m.resave.rom.64k.txt" to get the txt of the hex value of this 64k rom
  7. open a51m.resave.rom.64k.txt, copy all the content to ATY,bin_image

image

Here is the binary comparation of the original vBIOS rom and the resaved vBIOS rom.

image

As you can see, although we didn't modify anything when resave the vBIOS file using RED BIOS EDITOR, it still has some modifications. I don't know what it modified, if you know, please tell me. And anyway, the performance is unlocked.

Replace the built-in display to 4k@120hz

I replaced the built-in display to B173ZAN06.1, which is 4k@120hz. And the stock dp cable (DC02C00JU00, 0.5mm gap 40 pin connector) is not compatible. It needs to be changed to DC02C00MY00, which has a 0.4mm gap 40 pin connector.

And there's another panel, B173ZAN06.0, which is 4k@60hz, is capatible with the stock dp cable. There's no need to buy a new cable if you change to this panel.

And there's some small issue with B173ZAN06.1.

Releated issue