美文网首页
禁止ubuntu休眠

禁止ubuntu休眠

作者: semiscone | 来源:发表于2021-02-17 14:35 被阅读0次

    禁止ubuntu休眠

    bill@NUC:~$ sudo systemctl status sleep.target 
    ● sleep.target - Sleep
         Loaded: loaded (/lib/systemd/system/sleep.target; static; vendor preset: enabled)
         Active: inactive (dead)
           Docs: man:systemd.special(7)
    
    2月 10 18:23:27 NUC systemd[1]: Reached target Sleep.
    2月 10 18:29:59 NUC systemd[1]: Stopped target Sleep.
    bill@NUC:~$ sudo systemctl mask sleep.target 
    Created symlink /etc/systemd/system/sleep.target → /dev/null.
    
    bill@nuc:/ # sudo 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.
    bill@nuc:/etc/pm/sleep.d#
    

    相关文章

      网友评论

          本文标题:禁止ubuntu休眠

          本文链接:https://www.haomeiwen.com/subject/cxukxltx.html