ACPI Hotpatching with different sizes in OpenCore?

Hey everyone,

To get my touchpad/touchscreen working, I need to patch my DSDT. It involves changing an if statement that checks a variable called USTP to always run.

Looking at the assembled ASL files, I need to change this line: 000318AA: A0 4C 48 55 53 54 50 ... ".LHUSTP"

To this one: 000318AA: A0 49 48 01 ............ ".IH."

I know ACPI hotpatches are supposed to be of the same length, but a patch like the following in Clover seems to work: Comment: Change USTP to One (to fix I2C) Find: <A04C4855 535450> Replace: <A0494801>

Unfortunately, OpenCore doesn't like the different lengths, and complains when loading.

Is there anything I can do to fix this? Does ASL have a whitespace byte?

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