Kali之——设置不休眠(关闭笔记本盖子不休眠 - Preventing Lid Close Suspension)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/l1028386804/article/details/83340594

转载请注明出处:https://blog.csdn.net/l1028386804/article/details/83340594

一、设置不休眠

二、关闭笔记本盖子不休眠 - Preventing Lid Close Suspension

安装包:

sudo apt-get install gnome-tweak-tool 

之后具体操作如下:

For GNOME, this is now handled by systemd in Fedora 18+.
As root, edit /etc/systemd/logind.conf. You're looking for the definition for HandleLidSwitch, it may be commented out.
The default is: HandleLidSwitch=suspend
You can set it to ignore, poweroff, reboot, halt, suspend, hibernate, hybrid-sleep, lock or kexec. Since your laptop screen is broken, you just want to set it to ignore, so add this to /etc/systemd/logind.conf:
HandleLidSwitch=ignore
Then, run systemctl restart systemd-logind, or simply reboot for it to take effect.

猜你喜欢

转载自blog.csdn.net/l1028386804/article/details/83340594
今日推荐