Skip to content

Commit 95cb035

Browse files
authored
disable suspend, sleep, hibernate for ubuntu desktop
1 parent 5eb3d83 commit 95cb035

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

oscfg/ubuntu.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ EOF
221221
ubuntu-*-ubuntu-desktop)
222222
DEBIAN_FRONTEND=noninteractive run apt-get install -y gnome-software guake ubuntu-release-upgrader-core ubuntu-desktop bash-completion nano
223223
run appstreamcli refresh --force && run apt update
224+
run systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
224225
;;
225226
esac
226227

0 commit comments

Comments
 (0)