diff --git a/resources/build/graphics_audio.py b/resources/build/graphics_audio.py index 85a71c34e..66b173d3c 100644 --- a/resources/build/graphics_audio.py +++ b/resources/build/graphics_audio.py @@ -192,13 +192,13 @@ class build_graphics_audio: if not support.build_support(self.model, self.constants, self.config).get_kext_by_bundle_path("WhateverGreen.kext")["Enabled"] is True: # Ensure WEG is enabled as we need if for Backlight patching support.build_support(self.model, self.constants, self.config).enable_kext("WhateverGreen.kext", self.constants.whatevergreen_version, self.constants.whatevergreen_path) - - if utilities.friendly_hex(self.computer.dgpu.device_id) == "7340": + + if self.computer.dgpu.device_id == 0x7340: logging.info(f"- Adding AMD RX5500XT vBIOS injection") self.config["DeviceProperties"]["Add"][backlight_path] = {"shikigva": 128, "unfairgva": 1, "agdpmod": "pikera", "rebuild-device-tree": 1, "enable-gva-support": 1, "ATY,bin_image": binascii.unhexlify(video_bios_data.RX5500XT_64K) } logging.info(f"- Adding AMD RX5500XT boot-args") self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] += " agdpmod=pikera applbkl=3" - elif utilities.friendly_hex(self.computer.dgpu.device_id) == "6981": + elif self.computer.dgpu.device_id == 0x6981: logging.info(f"- Adding AMD WX3200 device spoofing") self.config["DeviceProperties"]["Add"][backlight_path] = {"shikigva": 128, "unfairgva": 1, "agdpmod": "pikera", "rebuild-device-tree": 1, "enable-gva-support": 1, "model": "AMD Radeon Pro WX 3200", "device-id": binascii.unhexlify("FF67")} else: