fix sleep on new rotterdam motherboard
This commit is contained in:
parent
d1df81bf71
commit
ce7f597f01
1 changed files with 10 additions and 0 deletions
|
|
@ -28,4 +28,14 @@ in
|
|||
'';
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.disable-gpp0-wakeup = {
|
||||
description = "Disable GPP0 wakeup trigger to fix Aorus B550 sleep";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${pkgs.bash}/bin/bash -c 'if grep -q \"GPP0.*enabled\" /proc/acpi/wakeup; then echo GPP0 > /proc/acpi/wakeup; fi'";
|
||||
RemainAfterExit = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue