Skip to content

Commit

Permalink
mac: fix lid wake up
Browse files Browse the repository at this point in the history
  • Loading branch information
infinisil committed Feb 13, 2018
1 parent 137cdf8 commit b5ac928
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hardware/mac/default.nix
Expand Up @@ -15,6 +15,11 @@

mine.hasBattery = true;

system.activationScripts.lidWakeDisable = lib.stringAfter [ "specialfs" ] ''
# Disable lid wake ability, fixes laptop waking up a few seconds after suspending without actually doing anything
cat /proc/acpi/wakeup | grep '^LID0.*\*enabled' >/dev/null && echo LID0 > /proc/acpi/wakeup
'';

environment.systemPackages = with pkgs; [
efibootmgr
acpi
Expand Down

0 comments on commit b5ac928

Please sign in to comment.