Kali/Ubuntu Linux laptop lid close actions

 

先备份,

sudo cp /etc/systemd/logind.conf  /etc/systemd/logind.conf.bak

 

修改:

sudo vim /etc/systemd/logind.conf

 

Just uncomment the "HandleLidSwitch=suspend" and change 'suspend' to the most appropriate option (ignore,halt,poweroff,kexec,hibernate,reboot,lock).

HandleLidSwitch=ignore

 

systemctl restart systemd-logind

 

来源:https://forums.kali.org/showthread.php?26887-SOLVED-Kali-Linux-laptop-lid-close-actions

posted @ 2024-06-22 16:21  profesor  阅读(2)  评论(0编辑  收藏  举报