$ systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

# 查看
$ systemctl status sleep.target

○ sleep.target
     Loaded: masked (Reason: Unit sleep.target is masked.)
     Active: inactive (dead)