Skip to content

Commit

Permalink
ath11k suspend still broken
Browse files Browse the repository at this point in the history
unload module to mitigate
  • Loading branch information
michaelmnemonic committed Dec 3, 2024
1 parent 3abdd3c commit 3766ece
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pluto.nix
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,28 @@
wantedBy = ["multi-user.target"];
};

# load ath11k modules after suspend
systemd.services.ath11k-resume = {
description = "Load ath11k_pci module after suspend";
after = ["suspend.target"];
serviceConfig = {
Type = "simple";
ExecStart = ''${pkgs.kmod}/bin/modprobe ath11k_pci'';
};
wantedBy = ["suspend.target"];
};

# unload ath11k modules before suspend
systemd.services.ath11k-suspend = {
description = "Unload ath11k_pci module before suspend";
before = ["sleep.target"];
serviceConfig = {
Type = "simple";
ExecStart = ''${pkgs.kmod}/bin/rmmod ath11k_pci'';
};
wantedBy = ["sleep.target"];
};

# ssh server with public key authentication only
services.openssh = {
enable = true;
Expand Down

0 comments on commit 3766ece

Please sign in to comment.