Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
misc:acpi_patch [2025/06/28 22:26] 92.40.32.213misc:acpi_patch [2025/10/29 22:26] (current) h3artbl33d
Line 14: Line 14:
 ===== Affected Models ===== ===== Affected Models =====
   * [[:A1502]] Early 2015 Macbook Pro   * [[:A1502]] Early 2015 Macbook Pro
-  * Maybe others?+  * [[:A1466]] Macbook Air ([[https://marc.info/?l=openbsd-misc&m=176103403030425&w=2|reported on misc@)]] 
 +  * [[:A1465]] Early 2015 Macbook Air ([[https://marc.info/?l=openbsd-misc&m=176115553125606&w=2|reported on misc@]]) 
 + 
 +==== Lazy way to fix the ACPI bug ==== 
 + 
 +We've prepared a custom image that contains the ACPI patch. If you trust us enough (hint: you shouldn't) then you may grab the installer and sets here: 
 + 
 +https://mirror.openbsdonapple.wiki/pub/OpenBSD/7.8/amd64/
  
 ==== Patch to fix the ACPI bug ==== ==== Patch to fix the ACPI bug ====
  
-<code> +**Download links:** 
-Index: sys/dev/acpi/acpi.+  * For OpenBSD 7.7 {{ :misc:macbook-acpi-patch-77.tar.gz |macbook-acpi-patch-77.tar.gz}} 
-=================================================================== +  * For OpenBSD 7.8 {{ :misc:macbook-acpi-patch-78.tar.gz |macbook-acpi-patch-78.tar.gz}}
-RCS file/cvs/src/sys/dev/acpi/acpi.c,v +
-diff --p -u -r1.444 acpi.+
---- sys/dev/acpi/acpi.c 24 Mar 2025 09:53:20 -0000 1.444 +
-+++ sys/dev/acpi/acpi.c 20 Apr 2025 19:45:13 -0000 +
-@@ -823,8 +823,8 @@ acpi_pci_set_powerstate(pci_chipset_tag_ +
-  } +
- #endif /* NACPIPWRRES > 0 */ +
-  +
-- if (state == ACPI_STATE_D0 && pre) +
-- aml_evalname(sc, pdev->node, "_PS0", 0, NULL, NULL); +
-+// if (state == ACPI_STATE_D0 && pre) +
-+// aml_evalname(sc, pdev->node, "_PS0", 0, NULL, NULL); +
- } +
-  +
- int +
-</code>+
  
 ==== How to patch ==== ==== How to patch ====