通过systemd设置禁止合上笔记本屏幕suspend
禁用屏幕关闭时suspend
HandleLidSwitch=ignore
HandleLidSwitchDocked=ignore #这行设置是默认的systemctl restart systemd-logindHandlePowerKey=poweroff
HandleSuspendKey=suspend
HandleLidSwitch=suspend
HandleHibernateKey=hibernate参考
Last updated