Disable suspend and hibernate

This commit is contained in:
William 2021-03-02 22:34:08 +01:00
parent db7e7c3c6c
commit ac1446135f

View File

@ -30,3 +30,8 @@ TimeoutStartSec=0
WantedBy=default.target" > "/etc/systemd/system/monero-miner.service"
systemctl daemon-reload
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