Created
February 24, 2024 20:35
-
-
Save zoliky/f23f6b9581b58a2e94d7bfce142831cc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo mkdir -p /etc/systemd/sleep.conf.d | |
$ sudo chmod 0644 /etc/systemd/sleep.conf.d | |
$ echo "[Sleep]\nAllowSuspend=no\nAllowHibernation=no\nAllowSuspendThenHibernate=no\nAllowHybridSleep=no" | sudo tee /etc/systemd/sleep.conf.d/nosuspend.conf | |
$ sudo chmod 0644 /etc/systemd/sleep.conf.d/nosuspend.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment