From ac1446135fc3a16da23faf1ff46c2e95540a7daa Mon Sep 17 00:00:00 2001 From: William Date: Tue, 2 Mar 2021 22:34:08 +0100 Subject: [PATCH] Disable suspend and hibernate --- install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b68210f..52774bf 100644 --- a/install.sh +++ b/install.sh @@ -29,4 +29,9 @@ TimeoutStartSec=0 [Install] WantedBy=default.target" > "/etc/systemd/system/monero-miner.service" systemctl daemon-reload -systemctl enable monero-miner.service --now \ No newline at end of file +systemctl enable monero-miner.service --now + +# disable suspend and hibernate +systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target systemd-logind.service +# do this to revert previous changes +#systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target systemd-logind.service \ No newline at end of file