![](http://www.kxtry.com/wp-content/uploads/2023/06/image-3.png)
查看休眠模式的情况。
systemctl status sleep.target
如果显示sleep的状态为loaded,表示休眠是处于开启状态。
![](http://www.kxtry.com/wp-content/uploads/2023/06/image-4.png)
systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
关闭休眠模式。
![](http://www.kxtry.com/wp-content/uploads/2023/06/image-5.png)
systemctl status sleep.target查看是否休眠
![](http://www.kxtry.com/wp-content/uploads/2023/06/image-6.png)
查看休眠模式的情况。
systemctl status sleep.target
如果显示sleep的状态为loaded,表示休眠是处于开启状态。
systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
关闭休眠模式。
systemctl status sleep.target查看是否休眠
因为向日葵必须是lightdm环境,故自安装lightdm后,发现无法快捷健锁屏,可有以两种方法解决。
1.切换回gdm3的桌面环境。
sudo dpkg-reconfigure gdm3
2.在系统中增加自定义快捷键。
Name: dm-tool lock
Command: dm-tool lock
ShortCut: Window+L