Disable Suspend and Hibernation
$ sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
$ reboot
$ systemctl status sleep.target suspend.target hibernate.target hybrid-sleep.target
$ sudo vim /etc/systemd/logind.conf
[Login]
HandleLidSwitch=ignore
HandleLidSwitchDocked=ignore
Enable Suspend and Hibernation
$ sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target
沒有留言:
張貼留言