Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Fix GPP0 suspend fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosuavio committed Aug 29, 2023
1 parent e8f37fe commit 0575821
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions module/polaris.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,13 @@ in
};
};

systemd.services = {
# Maybe try to figure out whats going on with this device. Try a bios update.
# B550I-AORUS-PRO-AX
suspend-fix = {
enable = true;

wants = [ "multi-user.target" ];
after = [ "multi-user.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Description = "Disable GPP0 to fix suspend issue";
Type = "simple";
ExecStart =
"${pkgs.bashInteractive}/bin/sh -c \"${pkgs.coreutils}/bin/echo GPP0 > /proc/acpi/wakeup\"";
};
};
};
# Fix for B550I-AORUS-PRO-AX
# TODO: Instead of greping threw I would like a static path to check
powerManagement.powerDownCommands = ''
if (grep "GPP0.*enabled" /proc/acpi/wakeup > /dev/null); then
echo GPP0 > /proc/acpi/wakeup
fi
'';

services = {
openssh = {
Expand Down

0 comments on commit 0575821

Please sign in to comment.