Need some advice on OpenCore DSDT edits for laptop

I've got functional Clover boot on my ASUS K501UQ and I want to try OC.

The main problem, I feel, would be DSDT edits. Aside from syntax fixes, these are dGPU disabler patch (requires editing one of SSDTs as well), battery patch (DSDT only, but quite extensive) and various fixes from RehabMan patch repo.

How do you do them? I read that OC applies ACPI files to all OSes, and I need to wrap macOS-specific code in If(_OSI("Darwin")) { }. Is that all there is to it? Any examples (or guides, or prebuilt patches repo) on how to do that with specifically battery and graphics patches? Also, what fixes are not necessary with OC?

submitted by /u/AlexFullmoon
[link] [comments]