关闭睡眠


z@x79:~$ systemctl status sleep.target
● sleep.target - Sleep
   Loaded: loaded (/lib/systemd/system/sleep.target; static; vendor preset: enab
   Active: inactive (dead)
     Docs: man:systemd.special(7)

z@x79:~$ systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
Created symlink /etc/systemd/system/sleep.target → /dev/null.
Created symlink /etc/systemd/system/suspend.target → /dev/null.
Created symlink /etc/systemd/system/hibernate.target → /dev/null.
Created symlink /etc/systemd/system/hybrid-sleep.target → /dev/null.
z@x79:~$ systemctl status sleep.target
● sleep.target
   Loaded: masked (Reason: Unit sleep.target is masked.)
   Active: inactive (dead)

posted on 2023-02-03 12:45  zxddesk  阅读(53)  评论(0编辑  收藏  举报

导航