Black screen after CentOS7 combination on laptop but not sleep mode

Source: Internet
Author: User

Black screen after CentOS7 combination on laptop but not sleep mode
CentOS 7 is built with a black screen, but does not enter sleep mode. Modify systemd to handle some power-related ACPI events. You can configure it by using the following options from/etc/system/logind. conf:

HandlePowerKey action after pressing the power key
HandleSleepKey: the behavior of pressing the hold key
HandleHibernateKey action after pressing the sleep key
HandleLidSwitch

The behavior can be ignore, poweroff, reboot, halt, suspend, hibernate, hybrid-sleep, lock, or kexec.

The default settings are as follows:

HandlePowerKey = poweroff
HandleSuspendKey = suspend
HandleHibernateKey = hibernate
HandleLidSwitch = suspend

You only need to set the HandleLidSwitch option to the following:

HandleLidSwitch = lock

Note: After the settings are saved, run the systemctl restart systemd-logind command.


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.