Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to close Notebook cover Sleep standby through CentOS 7.0Power Management

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to close notebook cover sleep standby through CentOS 7.0power management". In daily operation, it is believed that many people have doubts about how to close notebook cover sleep standby through CentOS 7.0power management. The editor consulted all kinds of materials and sorted out simple and useful operation methods. I hope it will be helpful for you to answer the question of "how to turn off notebook cover sleep standby through CentOS 7.0power management"! Next, please follow the editor to study!

Power management that can be defined through / etc/systemd

Actions include:

HandlePowerKey: the action after pressing the power key HandleSleepKey: the action after pressing the suspend key HandleHibernateKey: the action after pressing the dormant key HandleLidSwitch: close the notebook cover and stand by

The values of these actions can be

Gnore (do nothing) poweroff (shutdown) reboot (restart) halt (shutdown, what's the difference from poweroff, you need to power off manually? ) suspend (standby pending) hibernate (hibernating)

By default, the system will stand by when I close the laptop screen.

What if I don't want the system to stand by when I close my laptop?

Open / etc/systemd/logind.conf with the vi editor

Remove the comment symbol # before HandleLidSwitch and change its value from suspend to ignore.

[Login] # NAutoVTs=6#ReserveVT=6#KillUserProcesses=no#KillOnlyUsers=#KillExcludeUsers=root#InhibitDelayMaxSec=5#HandlePowerKey=poweroff#HandleSuspendKey=suspend#HandleHibernateKey=hibernateHandleLidSwitch=ignore#HandleLidSwitchDocked=ignore#PowerKeyIgnoreInhibited=no#SuspendKeyIgnoreInhibited=no#HibernateKeyIgnoreInhibited=no#LidSwitchIgnoreInhibited=yes#IdleAction=ignore#IdleActionSec=30min#RuntimeDirectorySize=10%#RemoveIPC=no~

Then systemctl restart systemd-logind to make the changes take effect. If you close the lid of the notebook, you won't be on standby.

If you want to enter the standby state again, you can execute systemctl suspend.

At this point, the study on "how to close the notebook cover sleep standby through CentOS 7.0power management" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report