5T33Z0 / OC-Little-Translated

ACPI Hotpatches and Guides for the OpenCore Bootmanager. Enhance and fine-tune your Hackintosh by adding devices and enabling additional features not covered in the OpenCore Install Guide. Only place that covers how to use OpenCore Legacy Patcher on PCs.
BSD 3-Clause "New" or "Revised" License
524 stars 71 forks source link

[SSDT-AWAC-STA0] Clarifications #22

Closed dreamwhite closed 2 years ago

dreamwhite commented 2 years ago

Link: https://github.com/5T33Z0/OC-Little-Translated/blob/main/01_Adding_missing_Devices_and_enabling_Features/System_Clock_(SSDT-AWAC)/SSDT-AWAC_STA0.dsl

As per ACPI 6.4. specs, _STA is a method, therefore you can't assign it as a local variable. I'd rather delete this SSDT as STAS variable patching is way cleaner and compliant.

Same speech with https://github.com/5T33Z0/OC-Little-Translated/blob/main/01_Adding_missing_Devices_and_enabling_Features/System_Clock_(SSDT-RTC0)/SSDT-RTC_STA0F.dsl

5T33Z0 commented 2 years ago

Thanks for the info. I will delete the SSDTs if you can provide alternatives. I am not well-versed enough to write them myself.

dreamwhite commented 2 years ago

Well, basically there's this approach that every programmer should follow:

P.S. In my hackintoshing experience, especially with X299 boards, the RTC device is f***ed up even if there's AWAC device and can be disabled, booting macOS still fails. Solution? Just leave AWAC enabled (so RTC won't be available) and recreate a fake RTC0 device

5T33Z0 commented 2 years ago

Okay, then I delete both SSDTs and explanations. Thanks for the eplanations