In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "CentOS7 setting notebook cover non-dormant method". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Find the configuration file
We find the corresponding configuration file under CentOS7, the directory is / etc/systemd/logind.conf, and open it with the vim command
Vim / etc/systemd/logind.conf modify configuration
Find the configuration item we want to modify in the configuration file:
The behavior after HandlePowerKey presses the power key, the default behavior after power offHandleSleepKey presses the suspend key, the default behavior after suspendHandleHibernateKey presses the dormant key, the default behavior after hibernateHandleLidSwitch closes the laptop cover, and the default suspend
We modify the suspend after HandleLidSwitch to lock, that is:
HandleLidSwitch=lock
Note that if the configuration item is preceded by a # sign, delete it. # means comment.
Where the optional scope of the following configuration items is:
Ignore ignore, skip power off shutdown eboot restart halt suspend
Suspend shell built-in instruction to pause the currently executing shell. To recover, you must use SIGCONT information. All processes will pause, but not disappear (halt is a process shutdown) hibernate puts notebooks into dormant state hybrid-sleep mixed sleep, mainly designed for desktops, is a combination of sleep and hibernation, when you select Hybird, the system will copy the data in memory to the hard disk like hibernation, and then enter the sleep state, that is, memory and CPU are still active, other settings are not active In this way, you can quickly return to your previous state when you want to use your computer, and notebooks generally don't use this feature. Lock only locks the screen and the computer continues to work.
Application takes effect
You must use the following command for the above configuration to take effect
Systemctl restart systemd-logind "CentOS7 set notebook cover does not sleep method" content is introduced here, thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.