69>>centos7 behavior after closing the lid of the Notebook

Source: Internet
Author: User

Set the CentOS7 notebook with a black screen but not into sleep mode


SYSTEMD is capable of handling certain power-related ACPI events, which you can do through the/etc/system/logind.conf

The following options are configured:
Handlepowerkey behavior after pressing the Power key
Handlesleepkey behavior after pressing the suspend key
Handlehibernatekey behavior after pressing the Hibernate key
Handlelidswitch behavior after closing the lid of the Notebook

Behavior can be ignore, poweroff, reboot, Halt, suspend, Hibernate, Hybrid-sleep,

Lock or Kexec.

The system default setting is:

Handlepowerkey=poweroff
Handlesuspendkey=suspend
Handlehibernatekey=hibernate
Handlelidswitch=suspend

Just set the Handlelidswitch option to the following:
Handlelidswitch=lock

Note: After you save the settings, run the systemctl restart Systemd-logind command to make the settings effective.



Halt; Hang up

Suspend; suspend is a shell built-in directive that suspends the shell that is currently executing. To

Recovery, you must use the Sigcont information. All processes will be paused, but not gone (halt is process shutdown)

Sleep, the hard drive is off, the memory is active, the CPU is in a semi-active state,

The system state is kept in memory, and when the system is activated (mouse, or key on the keyboard), the system immediately returns to

The state before sleep

Hibernate is primarily designed for notebook functions, and when you choose to hibernate the system will

Store all the data in the memory on the hard disk (default C:\hiberfil.sys), then the process of shutdown, when

The next time you turn on the computer, the system will read the previously stored files back into memory, so you can go back to the state before hibernation

(e.g. which programs and windows are open)

Hybrid-sleep, hybrid sleep, designed primarily for desktops, is a combination of sleep and sleep

, when you choose Hybird, the system copies the data from the memory to the hard disk like hibernation (C:

\hiberfil.sys), then go to sleep state, i.e. memory and CPU or active, other settings are inactive, so

You want to use the computer can quickly restore to the previous state, notebook generally do not use this function.

Lock

Kexec Linux, a way to restart a system without detecting hardware



Reference


http://wwwtt0401.blog.163.com/blog/static/3614930620116615955930/
http://www.bkjia.com/Linuxjc/964474.htmlhttp://jingyan.baidu.com/article/306

5b3b6cc19f6becef8a476.html
Http://blog.sina.com.cn/s/blog_406be8d10100nmh7.html
Http://baike.baidu.com/view/1436072.htm

69>>centos7 behavior after closing the lid of the Notebook

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.