My condition to check wheter to enter ACPI mode was incorrect. I only entered ACPI mode if I already was in ACPI mode :DD