Ubuntu shuts down when lid closed


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