From 972664c2546ae07cf1e4d02706af2a8d86505033 Mon Sep 17 00:00:00 2001 From: "Reid \"reidlab" Date: Fri, 31 May 2024 16:28:57 -0700 Subject: [PATCH] WE CAN FINALLY SUSPEND --- hosts/goopnet-interface/apple-macbook-air-9-1.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hosts/goopnet-interface/apple-macbook-air-9-1.nix b/hosts/goopnet-interface/apple-macbook-air-9-1.nix index 6ee508f..23e6046 100644 --- a/hosts/goopnet-interface/apple-macbook-air-9-1.nix +++ b/hosts/goopnet-interface/apple-macbook-air-9-1.nix @@ -19,6 +19,18 @@ my.apple-firmware ]; + # handle suspend issues (fuck you broadcom!) + powerManagement.powerDownCommands = '' + ${pkgs.kmod}/bin/modprobe -r brcmfmac_wcc + ${pkgs.kmod}/bin/modprobe -r brcmfmac + ${pkgs.kmod}/bin/modprobe -r hci_bcm4377 + ''; + powerManagement.resumeCommands = '' + ${pkgs.kmod}/bin/modprobe hci_bcm4377 + ${pkgs.kmod}/bin/modprobe brcmfmac + ${pkgs.kmod}/bin/modprobe brcmfmac_wcc + ''; + # VA-API hardware.opengl = { extraPackages = with pkgs; [