Taking care of your laptop is something that cannot get out of hand. These teams are so important in today’s daily work that a failure is a headache.
So, for your well-being and that of your computer, it is best to learn how to handle certain tricks. That is why you should know how to do so that Ubuntu does not suspend when lowering the laptop lid.
Go ahead and walk through this interesting and nutritious read with one of the simplest and most interesting Linux tricks. You will want to share it with everyone!
The Ubuntu Linux system
Tackling the world’s most popular and used operating systems isn’t something that happens overnight. Linux is an operating system released in 1991, its main feature? What is a free software.
This, however, did not attract the attention of many people at the time. However, in recent years it has experienced a constant and considerable growth in the number of users. His progress has been such that he ranks as the third most used operating system on desktop or laptop computers.
Its Ubuntu distribution was released in 2004. This is, in turn, the preferred distribution of many. This is due to its versatility and, of course, its customization capacity.
And it is precisely the customization capacity that continues to talk about for this article. Can you imagine the scope it can have? Here’s a hint: you can change the way your laptop save energy.
That’s right, if you want to know how to speed up the startup or boot time of Ubuntu system easily, this article will serve as a starting point! All this thanks to a simple and very frequent action: lower the laptop lid.
What happens when you lower the lid?
Usually this action has an immediate consequence. Every time you lower the lid of your laptop, it goes into ‘sleep’ or ‘hibernate’ mode. If you still don’t know what these modes are, you may want to review what the difference is between suspend and hibernate.
The truth is that not all laptops support these functions. And although they are usually harmless, can cause some instability in older computers. Reasons enough to know how to optimize and clean your Ubuntu Linux system.
Learning how to activate hibernate or suspend mode on my laptop by closing the lid is extremely simple … you do it and that’s it! But … haven’t you done it accidentally and wish that Ubuntu does not suspend when lowering the laptop lid?
It’s time to change
As you can see, this is a function that not entirely intuitive. Sometimes lowering the lid of the computer does not mean that it should enter ‘sleep’ or ‘hibernate’ mode. Normally, it would be advisable to learn how to program an automatic power on and off in Ubuntu Linux. However, this trick will save you much more time.
- Use your system terminal to enter the following command: sudo nano /etc/systemd/logind.conf
- Locate the section that contains: # HandleLidSwitch = suspend.
- You can simply remove the comment (suspend) or modify it by hibernate (so that it goes into ‘hibernate’ mode when closing the lid).
You can also modify the behavior of your laptop when closing the lid in a different way. From your computer’s desktop, enter the system configuration and:
- Access the “Energy” section.
- Next, go to the section “When closing the cover”.
- The options “Suspend” and “Do nothing” are shown in the options bar.
Easy, fast and useful
Than Ubuntu do not suspend when lowering the laptop lid it is highly recommended if you are constantly on the go. Since, many times, to change the table or room, it is necessary to lower the lid without it going into suspension.
Despite not save so much energy As you normally would with the active option, you save yourself inconvenience when working. If you want to know more tricks, surely you are interested in how to activate or deactivate the touchpad while writing in Ubuntu Linux.