Ubuntu Tutorial: Close the notebook and the system does not sleep

Source: Internet
Author: User
Ubuntu is A modern operating system between Niu A and Niu C. It is used by millions of users and companies around the world. Ubuntu can be used either as a workbench or as an advanced engineering machine. If you are a beginner of Ubuntu and need expert guidance during usage, pay attention to this site. We have written hundreds of Ubuntu tutorials to help you get started. From Ubuntu installation to basic system settings, we are all involved. This simple tutorial introduces you to what to do when the notebook lid is closed.

Ubuntu is A modern operating system between Niu A and Niu C. It is used by millions of users and companies around the world. Ubuntu can be used either as a workbench or as an advanced engineering machine.

If you are a beginner of Ubuntu and need expert guidance during usage, pay attention to this site. We have written hundreds of Ubuntu tutorials to help you get started. From Ubuntu installation to basic system settings, we are all involved.

This simple tutorial introduces you to what you should do when the notebook lid is closed, instead of going to sleep mode or shutting down directly.

Most modern operating systems, including Windows, sleep when their laptops are closed. This is also true for Ubuntu. If you want to keep your laptop Lid closed, follow us.

To achieve this goal, Ubuntu has two methods. The first is to openSystem Settings-> Power(The Chinese version is openSystem settings-> Power Supply), And then set. Some user settings will not take effect.

Another way is to directly edit the Login Manager configuration file (Logind. conf). This method can basically take effect. We recommend that you use this method.

Start. PressCtrl-Alt-TKey combination to open the terminal. Run the following command to open the logind. conf file. All your modifications are in this file.

sudo gedit /etc/systemd/logind.conf

After opening the file, modify the following line:

#HandleLidSwitch=suspend

Changed to this:

HandleLidSwitch=ignore

Save the file and restart the Login Manager Service:

sudo restart systemd-logind

Work completed!

The "ignore" value in the configuration file tells Ubuntu not to sleep or stop when the notebook is closed. Do not change other settings and save the file.

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

Related Article

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.