Decorative
students walking in the quad.

Ubuntu shuts down when lid closed

Ubuntu shuts down when lid closed. in ubuntu 13. gnome. As a result, I always have to hold the power button to shut it down and then power it up again. 04 laptop, open the System Settings > Power > Power button and lid menu. Whenever I close the lid to my Asus laptop, it will shut down my computer. My laptop spends a lot of time in my backpack and this issue can cause the laptop to grow very hot very quickly. confUncomment this line#HandleLidSwitch=suspendAnd change it toHandleLidSwitch=ignoreSave, then dosudo service systemd-logind r Feb 7, 2015 · So in order to configure your system to shut down when the lid is closed, you would run: powercfg -SETACVALUEINDEX 381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 3 powercfg -SETDCVALUEINDEX 381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f . Apr 6, 2024 · In my "Change What Closing The Lid Does" option, it is set to sleep the laptop either with battery and plugged-in, but every time I close the lid, it shuts down. Aug 13, 2020 · Ubuntu 20. As soon as I open the lid the desktop appears with the icons etc- for a second and then the PC reboots. Maybe it's so it's not lighting up the room or you want to tuck the laptop away. 04 it had never happened . 10 Laptop goes to sleep instead of shutting down when lid is closed. Since this will be left running 24/7, i'd like the screen to shut off so as not to Mar 5, 2024 · gsettings get org. On Windows 11, by default, when you close your laptop’s lid, the system will put it to sleep. What you can do is change the following: Go to the System Settings and select Power setting; Change the When the lid is closed option to Do Nothing; That's it. Every time I close the lid and the computer is disconnected from power it shuts down. It is rather complicated to enable it. The Gateway NE56R41u is not Ubuntu certified. plugins. Aug 31, 2022 · If you use Ubuntu on a laptop, you might have noticed that the system is suspended when you close the lid. power lid-close-battery-action shutdown Even after enabling it, some laptops won't boot at all with the lid closed (when they have power buttons accessible on the side) and you will have to open it, power it on, wait a few seconds, then close it. 04, computer keeps shutting down when I close the lid, I've already checked logind. conf, settings are set to suspend 0 Can't ping or remote connect to Ubuntu 18. Hibernate is similar to sleep, but uses less battery and takes longer to resume activity. 10 - Laptop won't reboot/shutdown if the lid is closed (SSH) Mar 17, 2012 · I've changed the power management settings on my Ubuntu 10. Mar 25, 2020 · I'm having a little problem when shutting down my laptop: when I select "Shut down" in the "Leave" menu and I immediately close the lid of my laptop it suspends instead of shutting down. May 11, 2020 · Edit: My Ubuntu version is 18. Often, I observe that instead of shutting down, the system suspends (because I closed the lid right after) and the shut down process resumes after I reopen the lid which wakes it up. 04 LTS Remember to remove the ‘#’. To enable lock on lid-close. But then, the system hibernates. 0-51-generic, and perhaps other distros as well. “Sleep –” puts the laptop in low power usage. The laptop does not respond to keystrokes and power button clicks. power lid-close-ac-action 'nothing' This will disable any action when the lid gets closed, and the laptop is plugged into AC. Aug 19, 2015 · 13. , power off, hibernate, do nothing, or lock) when laptop lid is closed in Ubuntu 20. It's a long standing bug (there is at least one bug report describing this behavior) with rather slim chances of being fixed, IMHO. How turn off External Display, on closing lid in Nov 25, 2021 · gsettings set org. 04, while it suspends Ubuntu by default. How can I ensure that the laptop suspends when the lid is closed? I also installed the Tweaks (gnome-tweaks) tool and in Ubuntu 22. 04 , it this some related to ubuntu or it might be the hardware issue ??, when i had 20. 0. conf file in a text editor as root, for example, sudoedit /etc/systemd/logind. Reply I have the same question (0) Jan 23, 2021 · Hibernation fails with closed lid and external monitor connected Ubuntu 18. power lid-close-ac-action shutdown gsettings set org. Although the power settings provide only the ‘Suspend’ and ‘Do nothing’ options for the closing actions of your laptop, you can make a small change in the Systemd configuration file to do more actions. Ubuntu: Auto Shutdown/Hibernate When Lid Closed Step 1 Nov 2, 2017 · To disable suspend on lid-close. Ubuntu from sleeping when Sep 11, 2021 · pm-suspend-hybrid Hybrid-suspend is the process where the system does everything it needs to hibernate, but suspends instead of shutting down. To change what happens when you close the lid of your Ubuntu 22. If you're here you probably, like me, want to keep it awake. Mar 18, 2024 · Ubuntu 20. Apr 28, 2024 · This simple tutorial shows how to change the action (e. I'm running Ubuntu 20. power lid-close-battery-action suspend Sep 24, 2020 · Working on an Asus K550L, just installed Ubuntu 20. Under settings - power - Suspend and power button, I only have two options, one for automatic suspend (on for both plugged and unplugged after 20 min), and when power Jul 5, 2020 · Ubuntu 20. This means that your computer can wake up quicker than for normal hibernation if you do not run out of power, and you can resume even if you run out of power. 04 with the latest kernel 5. Closes all programs and shuts the laptop down, turning off the power. sudo nano /etc/systemd/logind. power lid-close-ac-action 'blank' gsettings set org. 04 when I close computer lid May 17, 2020 · HandleLidSwitch=poweroff – It will shut down your system when lid is closed HandleLidSwitch=hibernate – It will hibernate Ubuntu 20. g. The answer from @user386160 worked great to prevent my laptop from going to sleep. – Apr 18, 2021 · After installing I noticed closing the lid meant it would go to sleep and everything on the system would stop running. All this is well. Ubuntu 20. On one occasion I shut the lid, cycled home and by the time I got there it was overheating. Best is to not close lid and use screen dimming or close lid and use ethernet which is faster anyway. Use the drop-down menu and select the "Show only on 2" option. It's an HP notebook. On the Power settings page, it's set to Suspend when the lid is closed, but for the last few days - out of nowhere, having not edited any power settings myself - whenever I open up my laptop lid the laptop boots up from scratch, so it clearly isn't going into hibernation anymore. “Shut down –” powers down the laptop. To quickly change the action to shutdown when the lid is closed, open a terminal window and run. However, this Oct 4, 2023 · Ubuntu 20. 1. You will need to set two options: "When laptop lid is closed" to "Do nothing", and also "Put computer to sleep when inactive for" to "Never" (otherwise the laptop won't sleep automatically when you close the lid, but will soon afterwards because it Nov 25, 2020 · I've been having an issue with my laptop, a Dell XPS 13 9370 running Ubuntu 18. Jun 22, 2023 · I have Ubuntu Server installed on my laptop and it works fine when I leave the lid of my laptop uncovered. 01 (dual booted along with windows on my HP laptop) keeps shutting down when I close the lid. You will need to set two options: "When laptop lid is closed" to "Do nothing", and also "Put computer to sleep when inactive for" to "Never" (otherwise the laptop won't sleep automatically when you close the lid, but will soon afterwards because it Mar 22, 2022 · On many hardware, this does not work reliably, and therefore this mode is disabled on Ubuntu by default. And if I open the lid it is shows the lock screen for a few seconds and shuts down. 4. Prevent Your Laptop from Shutting Down When You Close the Screen First, open Windows Settings by pressing Windows+i on your keyboard. 04, Ubuntu 22. May 1, 2020 · Ubuntu server - How do disable sleep when laptop screen is closed but allow screen to shut off 1 Ubuntu 19. Install Tweaks (gnome-tweak-tool) by running. 04 won't wake up from sleep. 04. It is set to suspend. While previous modes allow a system to resume quickly, the time needed to start up a system that has been suspended to disk is comparable with the time needed for a cold start. power lid-close-battery-action 'blank' As you see, you can set different actions depending on whether the computer is on AC power (lid-close-ac-action) or on battery power (lid-close-battery-action). It is set to suspend when the lid is closed but nothing happens. NOTE: I am using a Gateway NE56R41u if that helps. Jun 12, 2021 · Ubuntu 20. When I open the lid again it restarts. Customize Ubuntu’s Power setting so that Ubuntu Laptop auto-shutdowns or hibernate when the lid is closed. conf, settings are set to suspend Hot Network Questions I want to be a observational astronomer, but have no idea where to start May 25, 2012 · Turn off laptop screen when closed. What if you want your machine go to sleep, power off, hibernate, or just do nothing when you close the laptop lid? Well, you can do this by changing the configuration file for the systemd-logind service. conf, settings are set to suspend Apr 26, 2011 · Actions to take when closing the laptop lid are configured with command gnome-power-preferences (menu: System -> Preferences -> Power management). System: Feb 12, 2014 · I am running 12. When I close the lid, I have the setting all set to suspend. How do I make it so my speed is just as fast when the lid is closed? NOTE: In an internet speed test with the lid open I got about 20 Mbps down. Nov 1, 2016 · On Ubuntu 16. power lid-close-ac-action suspend And $ gsettings get org. If that still does not work, press the power button. Aug 6, 2022 · The odd thing is that when the lid isn't closed, the system stays awake as long as I want it to. 04 in system settings - power i had chosen 'when lid is closed do nothing' but now, after the upgrade to 13. Ubuntu suspends when the lid is closed after pressing shutdown. May 9, 2019 · You'll need to manually put your laptop to sleep, hibernate it, or shut it down using its power buttons or in the options in the Start menu rather than simply closing the lid. 04 0 Ubuntu 20. s2both(8) is an hybrid-suspend implementation. Nov 9, 2023 · If you'd like to use your Windows 11 laptop with an external monitor, mouse, and keyboard, it's often nice to keep the lid closed. Some laptops just don't allow you operate the laptop with the lid closed at all too. 04 on a dual-boot, and I have windows running as the second OS. However, if I have the lid closed while the laptop is docked, and I unplug the dock, the computer shuts down. 10, hibernate or shutdown laptop when lid is closed. conf. 10 it is changed in 'when lid is closed suspend'. I had Windows running originally on my laptop, and whenever I would close the lid it would just shut down my computer. So, I tried to put the lid on my laptop. not suspends or anything, it completely No idea what's wrong with my laptop. 2. conf, settings are set to suspend 1 Cannot set the system to automatically suspend and then hibernat when closing the lid Feb 27, 2022 · Macbook Pro 2019 13 inch keeps restarting when closing the lid Hey guys, I have been using my Macbook Pro for 10 months now - but recently, everytime I put it to sleep (by closing the lid) and open it again for a few hours, it doesn't wake up automatically on opening the lid. $ gsettings get org. To undo simply: gsettings set org. You can then choose from the following options: Sleep: The laptop will go to sleep when you close the lid. 04 and Ubuntu 16. Basically it's as if I send the request to reboot or power-off to Ubuntu but it won't do it as long as the lid is closed. It saves the battery as well as your work. Feb 14, 2018 · In the power setting, make sure that the option for ‘When the lid is closed’ is set to Suspend. 10. sudo apt-get install gnome-tweaks Then open the gnome-tweaks and follow below steps: Jun 15, 2018 · Laptop shuts down on lid close. I tried some ways of preventing this, like modifying the /etc/systemd/logind. When you close the lid of your laptop, your computer will suspend in order to save power. a. Mar 9, 2019 · Using Ubuntu 18. Method 1: Using GNOME Tweaks First we have to install gnome-tweaks-tool. conf file, checking power settings and using Tweaks. Apr 22, 2001 · My Ubuntu 22. Another consideration although probably impractical, is propping up front to change angle. If I close the lid while on power and docked (dock can't supply enough power through usb-c so I need external power) it does nothing except turn of the internal screen. 04, there is no such option. Jun 3, 2016 · Hi I installed Ubuntu on this laptop. Sep 27, 2016 · I had the same issue. You lift the lid, the system wakes up, and you can log in and continue your work. power lid-close-ac-action If the printed reply is not nothing then use this command: gsettings set org. e. (Image credit after i read your question, i checked my system settings. However, I didn't want to leave the lid of my laptop open all the time. 04, and Ubuntu 24. Nov 30, 2010 · To disable Ubuntu doing anything closing the laptop lid: Open the /etc/systemd/logind. 04, computer keeps shutting down Sep 2, 2022 · After a lot of search, I have found two methods to do it. This means that the computer is not actually turned off — it has just gone to sleep. S: It works perfectly with the lid open Aug 31, 2020 · After your laptop lid is opened, hibernate restores it to the state it was in before the lid was closed. gsettings set org. Does anyone know how I can keep Ubuntu Server in my laptop with the lid closed from hibernating? Nov 4, 2022 · Once you complete the steps, when you close the lid, the laptop will remain operational from the second display. Lock: The laptop will lock when you close the lid. Live USB not saving setting to not suspend when laptop lid is closed. 04, as I'm typing to you with my laptop lid closed, using external keyboard, bluetooth mouse and monitor. Aug 3, 2018 · It shouldn't happen under Ubuntu 18. Dec 7, 2020 · Ubuntu 20. I. Related. See my power saving screen shot. 6. sudo apt-get install gnome-tweak-tool Launch Tweaks, go to the "Power" section and disable suspend on lid-close. . “Hibernate –” saves the current session and shuts down the laptop. sleep instead of shutting down when lid is closed. Workaround to make Ubuntu suspend when laptop lid is closed Nov 25, 2018 · To configure Ubuntu to shut down when the Laptop lid is closed, you can open the “System Settings” and go to the “Power” item. 10 server laptop to keep running with the lid closed but I loose any attempts to connect to it by ssh. This works for me on a new install of Ubuntu Server LTS 18. Sep 17, 2018 · Ubuntu 20. Issue: Whenever the laptop suspends (either due to a closed lid or due to a black screen for a certain time), I cannot wake it up. k. You can resume it by opening the lid. Jan 20, 2022 · under Ubuntu, if I close the lid the computer usually shuts down. settings-daemon. Is there a way to prevent this from happening? Oct 28, 2017 · The issue is still around on Ubuntu 20. It has a Broadcom BCM4313. In an internet speed test with the lid closed I got about 2 Mbps down. conf, settings are set to suspend 1 Cannot set the system to automatically suspend and then hibernat when closing the lid Jun 20, 2018 · The only problem is that now the screen never shuts off when the lid is closed. If it does not resume, try clicking the mouse or pressing a key. 4 I googled power management and downloaded an app through Ubuntu Software which has a setting for when the lid is closed. But I found out that my monitor was staying on even when the lid was closed (a. May 6, 2024 · I am using Ubuntu 24. generating unnecessary heat). After I close the lid it just shuts off the screen and stays on. Check your Settings->Power configuration. Actions to take when closing the laptop lid are configured with command gnome-power-preferences (menu: System -> Preferences -> Power management). If HandleLidSwitch is not set to ignore then change it: HandleLidSwitch=ignore. Is there a way to change this so that it will always be running? P. Also, SAVE ALL YOUR WORK, the second command would require you to reboot. What was happening was when I closed my laptop's lid, it went into a suspended state thereby shutting off my wifi (along with some other side effects). 04, where the screen does not turn off nor does the system suspend when the lid is closed. so i think you have to change it manually. Shut down. 2 LTS on a Dell xps 15. Here's how to close the lid without putting your PC to sleep. Usually when I am in a hurry I press the shutdown button on the bar and close the lid of my laptop just after that. conf, settings are set to suspend Hot Network Questions Does the question "will I get transplanted" make sense to your ears? May 28, 2019 · Some laptops have two antennae wires and let you pick #1 or #2 for best reception. A couple of times it didn't but the keyboard didn't light up and flashed regularly, and the only way to solve it was to reboot. If not, then follow the workaround in the next section. 04) decides it's time to turn the screen black, shut down the volume, and I can't do anything but opening the lid again, pressing some buttons, reinsert the password. Jul 26, 2018 · gsettings set org. That’s the expected behavior. I managed to disabled suspending when closing the lid (through gnome-tweaks) which solves the problem but it wastes a lot of battery. " I have a laptop linked to a huge TV that I use as main screen, but if I close the laptop's lid Ubuntu (16. 04, it used to give a "Suspend when lid is closed" option in the General section, but in Ubuntu 24. I don't know if any logs are going to be useful; or what the cause may be. If you had a different setting here, you should check if you are able to suspend Ubuntu by closing the lid. conf, settings are set to suspend 0 Cannot reboot the laptop using an external monitor. power lid-close-ac-action 'nothing' Then repeat the first command and the response should be nothing. – Whenever i close the lid , my laptop immediately shuts down I am using ubuntu 22. Share The problem is that closing the lid still shuts off my external monitor. You can alternatively turn off power saving for Wi-Fi and Bluetooth if they are giving you problems. To change the default behavior of Windows 10 when you close the lid, right-click the battery icon in the system tray, and then click on "Power Options. Undo the above steps before following this. power lid-close-ac-action 'suspend' Possible setting values instead of suspend are: Apr 28, 2023 · “Do nothing –” keeps the device running when closing the lid.

--