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