1
0
Fork 0
mirror of https://github.com/samueldr/wip-pinebook-pro.git synced 2024-11-27 05:19:44 +01:00

Force s2idle until suspend is fixed.

This commit is contained in:
Samuel Dionne-Riel 2020-01-16 20:16:01 -05:00
parent d47d354dea
commit 002045ab17

View file

@ -54,6 +54,13 @@
pkgs.pinebookpro-firmware pkgs.pinebookpro-firmware
]; ];
# Until suspend is fixed, this at least prevents the user from shooting
# themselves in the foot by suspending accidentally, then forced to restart
# the system forcibly..
systemd.tmpfiles.rules = [
"w /sys/power/mem_sleep - - - - s2idle"
];
# The default powersave makes the wireless connection unusable. # The default powersave makes the wireless connection unusable.
networking.networkmanager.wifi.powersave = lib.mkDefault false; networking.networkmanager.wifi.powersave = lib.mkDefault false;
} }