Ubuntu shuts down when lid closed

Ubuntu shuts down when lid closed. conf, settings are set to suspend 0 Can't ping or remote connect to Ubuntu 18. It is set to suspend when the lid is closed but nothing happens. $ gsettings get org. It's an HP notebook. You can alternatively turn off power saving for Wi-Fi and Bluetooth if they are giving you problems. 04 0 Ubuntu 20. 04, while it suspends Ubuntu by default. Jun 12, 2021 · Ubuntu 20. 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. Jan 20, 2022 · under Ubuntu, if I close the lid the computer usually shuts down. " 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. 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. 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. 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. 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. Lock: The laptop will lock when you close the lid. How turn off External Display, on closing lid in Nov 25, 2021 · gsettings set org. 2. However, this Oct 4, 2023 · Ubuntu 20. May 1, 2020 · Ubuntu server - How do disable sleep when laptop screen is closed but allow screen to shut off 1 Ubuntu 19. It has a Broadcom BCM4313. 04 laptop, open the System Settings > Power > Power button and lid menu. If it does not resume, try clicking the mouse or pressing a key. 10. Is there a way to prevent this from happening? Oct 28, 2017 · The issue is still around on Ubuntu 20. 0-51-generic, and perhaps other distros as well. Ubuntu 20. 04 won't wake up from sleep. 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 . sudo apt-get install gnome-tweaks Then open the gnome-tweaks and follow below steps: Jun 15, 2018 · Laptop shuts down on lid close. Is there a way to change this so that it will always be running? P. Sep 17, 2018 · Ubuntu 20. As soon as I open the lid the desktop appears with the icons etc- for a second and then the PC reboots. sudo nano /etc/systemd/logind. so i think you have to change it manually. power lid-close-ac-action shutdown gsettings set org. Closes all programs and shuts the laptop down, turning off the power. 6. If you're here you probably, like me, want to keep it awake. Share The problem is that closing the lid still shuts off my external monitor. not suspends or anything, it completely No idea what's wrong with my laptop. 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. 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. 04, where the screen does not turn off nor does the system suspend when the lid is closed. power lid-close-battery-action suspend Sep 24, 2020 · Working on an Asus K550L, just installed Ubuntu 20. You can resume it by opening the lid. So, I tried to put the lid on my laptop. It is set to suspend. g. Check your Settings->Power configuration. However, I didn't want to leave the lid of my laptop open all the time. I tried some ways of preventing this, like modifying the /etc/systemd/logind. 04. – Whenever i close the lid , my laptop immediately shuts down I am using ubuntu 22. k. Live USB not saving setting to not suspend when laptop lid is closed. generating unnecessary heat). This works for me on a new install of Ubuntu Server LTS 18. Best is to not close lid and use screen dimming or close lid and use ethernet which is faster anyway. 04, computer keeps shutting down when I close the lid, I've already checked logind. 4. However, if I have the lid closed while the laptop is docked, and I unplug the dock, the computer shuts down. It saves the battery as well as your work. power lid-close-ac-action 'nothing' This will disable any action when the lid gets closed, and the laptop is plugged into AC. 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. Customize Ubuntu’s Power setting so that Ubuntu Laptop auto-shutdowns or hibernate when the lid is closed. sudo apt-get install gnome-tweak-tool Launch Tweaks, go to the "Power" section and disable suspend on lid-close. 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. 04, it used to give a "Suspend when lid is closed" option in the General section, but in Ubuntu 24. But then, the system hibernates. I managed to disabled suspending when closing the lid (through gnome-tweaks) which solves the problem but it wastes a lot of battery. . Undo the above steps before following this. My laptop spends a lot of time in my backpack and this issue can cause the laptop to grow very hot very quickly. Aug 19, 2015 · 13. 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. 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. 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. When I close the lid, I have the setting all set to suspend. (Image credit after i read your question, i checked my system settings. 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). settings-daemon. All this is well. 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. When I open the lid again it restarts. “Hibernate –” saves the current session and shuts down the laptop. Install Tweaks (gnome-tweak-tool) by running. , power off, hibernate, do nothing, or lock) when laptop lid is closed in Ubuntu 20. Related. Jul 26, 2018 · gsettings set org. 04, there is no such option. conf. Mar 9, 2019 · Using Ubuntu 18. Mar 18, 2024 · Ubuntu 20. The Gateway NE56R41u is not Ubuntu certified. gnome. Feb 14, 2018 · In the power setting, make sure that the option for ‘When the lid is closed’ is set to Suspend. This means that the computer is not actually turned off — it has just gone to sleep. 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. 1. Whenever I close the lid to my Asus laptop, it will shut down my computer. conf, settings are set to suspend 0 Cannot reboot the laptop using an external monitor. 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. Reply I have the same question (0) Jan 23, 2021 · Hibernation fails with closed lid and external monitor connected Ubuntu 18. I. 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). 04 , it this some related to ubuntu or it might be the hardware issue ??, when i had 20. 10, hibernate or shutdown laptop when lid is closed. If not, then follow the workaround in the next section. Nov 30, 2010 · To disable Ubuntu doing anything closing the laptop lid: Open the /etc/systemd/logind. Nov 1, 2016 · On Ubuntu 16. 2 LTS on a Dell xps 15. Ubuntu suspends when the lid is closed after pressing shutdown. 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. If you had a different setting here, you should check if you are able to suspend Ubuntu by closing the lid. 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. Jun 3, 2016 · Hi I installed Ubuntu on this laptop. Apr 28, 2024 · This simple tutorial shows how to change the action (e. As a result, I always have to hold the power button to shut it down and then power it up again. 04 with the latest kernel 5. Also, SAVE ALL YOUR WORK, the second command would require you to reboot. 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. 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. Here's how to close the lid without putting your PC to sleep. To change what happens when you close the lid of your Ubuntu 22. gsettings set org. It is rather complicated to enable it. I had Windows running originally on my laptop, and whenever I would close the lid it would just shut down my computer. You can then choose from the following options: Sleep: The laptop will go to sleep when you close the lid. 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. In an internet speed test with the lid closed I got about 2 Mbps down. Jun 22, 2023 · I have Ubuntu Server installed on my laptop and it works fine when I leave the lid of my laptop uncovered. 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. conf file in a text editor as root, for example, sudoedit /etc/systemd/logind. Actions to take when closing the laptop lid are configured with command gnome-power-preferences (menu: System -> Preferences -> Power management). – Apr 18, 2021 · After installing I noticed closing the lid meant it would go to sleep and everything on the system would stop running. s2both(8) is an hybrid-suspend implementation. Sep 27, 2016 · I had the same issue. power lid-close-ac-action 'nothing' Then repeat the first command and the response should be nothing. And if I open the lid it is shows the lock screen for a few seconds and shuts down. Hibernate is similar to sleep, but uses less battery and takes longer to resume activity. On Windows 11, by default, when you close your laptop’s lid, the system will put it to sleep. 04, computer keeps shutting down Sep 2, 2022 · After a lot of search, I have found two methods to do it. Use the drop-down menu and select the "Show only on 2" option. Apr 22, 2001 · My Ubuntu 22. The answer from @user386160 worked great to prevent my laptop from going to sleep. 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). 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. I don't know if any logs are going to be useful; or what the cause may be. On one occasion I shut the lid, cycled home and by the time I got there it was overheating. If HandleLidSwitch is not set to ignore then change it: HandleLidSwitch=ignore. sleep instead of shutting down when lid is closed. 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. e. 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. 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. Ubuntu: Auto Shutdown/Hibernate When Lid Closed Step 1 Nov 2, 2017 · To disable suspend on lid-close. Maybe it's so it's not lighting up the room or you want to tuck the laptop away. Aug 3, 2018 · It shouldn't happen under Ubuntu 18. plugins. 04 on a dual-boot, and I have windows running as the second OS. 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. To enable lock on lid-close. 04 LTS Remember to remove the ‘#’. You lift the lid, the system wakes up, and you can log in and continue your work. 04 in system settings - power i had chosen 'when lid is closed do nothing' but now, after the upgrade to 13. 04 and Ubuntu 16. Another consideration although probably impractical, is propping up front to change angle. power lid-close-ac-action 'blank' gsettings set org. May 6, 2024 · I am using Ubuntu 24. 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. May 11, 2020 · Edit: My Ubuntu version is 18. 10 Laptop goes to sleep instead of shutting down when lid is closed. It's a long standing bug (there is at least one bug report describing this behavior) with rather slim chances of being fixed, IMHO. 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. To quickly change the action to shutdown when the lid is closed, open a terminal window and run. Aug 31, 2022 · If you use Ubuntu on a laptop, you might have noticed that the system is suspended when you close the lid. Dec 7, 2020 · Ubuntu 20. System: Feb 12, 2014 · I am running 12. 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. Aug 13, 2020 · Ubuntu 20. in ubuntu 13. 04, as I'm typing to you with my laptop lid closed, using external keyboard, bluetooth mouse and monitor. Prevent Your Laptop from Shutting Down When You Close the Screen First, open Windows Settings by pressing Windows+i on your keyboard. 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. After I close the lid it just shuts off the screen and stays on. conf file, checking power settings and using Tweaks. 04, and Ubuntu 24. 04, Ubuntu 22. power lid-close-ac-action suspend And $ gsettings get org. When you close the lid of your laptop, your computer will suspend in order to save power. To undo simply: gsettings set org. Every time I close the lid and the computer is disconnected from power it shuts down. Method 1: Using GNOME Tweaks First we have to install gnome-tweaks-tool. “Sleep –” puts the laptop in low power usage. 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. Some laptops just don't allow you operate the laptop with the lid closed at all too. The laptop does not respond to keystrokes and power button clicks. I'm running Ubuntu 20. 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. 4 I googled power management and downloaded an app through Ubuntu Software which has a setting for when the lid is closed. If that still does not work, press the power button. 10 it is changed in 'when lid is closed suspend'. 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. “Shut down –” powers down the laptop. 04 it had never happened . 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. 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. But I found out that my monitor was staying on even when the lid was closed (a. 01 (dual booted along with windows on my HP laptop) keeps shutting down when I close the lid. a. That’s the expected behavior. 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. power lid-close-ac-action If the printed reply is not nothing then use this command: gsettings set org. 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. 10 server laptop to keep running with the lid closed but I loose any attempts to connect to it by ssh. 0. See my power saving screen shot. NOTE: I am using a Gateway NE56R41u if that helps. nzramc ycdtg fdour xieeu brbk dvtn kxwrgcq sdtl npfrx fkun