Ubuntu laptop do not suspend when lid closed

Ubuntu laptop do not suspend when lid closed. If it does not resume, try clicking the mouse or pressing a key. Per Energy Saving tab: System Settings > Power Management > Energy Saving > On AC Power (or another tab) > Button Event Handling > When laptop lid closed, and choose desired action. 4 LTS on Clevo Laptop When I shut the lid it suspends. 04 LTS. 04 to 20. The issue seems to be it has a flimsy lid, and when Dec 31, 2022 · I have a Dell Latitude 5580 laptop running Xubuntu 22. 04, there is no such option. You can then choose from the following options: Sleep: The laptop will go to sleep when you close the lid. How turn off External Display, on closing lid This used to be the default behaviour, that regardless of the gnome-power settings the laptop would not suspend upon lid-close with an external monitor present. Can you help me? I currently have Ubuntu 11. 2-1-ARCH Asus UX303UA rebooting instead of resuming from suspend Thinkpad T450 running Ubuntu 17. " May 13, 2020 · Most things work fine. target And this to re-enable it: sudo systemctl unmask sleep. To cboettig: yes, it is possible using the same method (changing the logind. 04 0 Ubuntu 20. Also, I couldn’t find the gsettings in F40 that control the lid action mentioned here May 9, 2019 · This can be a problem when hooking your laptop up to an external monitor. , power off, hibernate, do nothing, or lock) when laptop lid is closed in Ubuntu 20. Installed pm-utils. HandleLidSwitch: When the laptop is on battery power. I would like to stop Ubuntu from suspending or sleeping when the laptop lid is closed, while still turning the screen off to save power. Oct 4, 2015 · Closing the lid of my laptop does not result in the computer entering suspend mode, meaning each time I close my lid without manually suspending the computer the battery dies. Same when I close the lid. 0-51-generic, and perhaps other distros as well. 10 which was clean-installed (not upgraded) some weeks back. Sep 14, 2020 · Same issue seen on a Lenovo T460s using Ubuntu 2024: can not wake laptop up after suspend. it's run ubuntu 22. 04 laptop used to always Jan 23, 2021 · Hibernation fails with closed lid and external monitor connected Ubuntu 18. tried using Gnome Tweaks and changing the option 'Suspend when Jul 7, 2024 · I have a Lenovo Thinkpad P1Gen6 Laptop with NVidia graphics card that has been working fine with Ubuntu 22. systemd-logind[917]: Lid closed. sh, make it executable, and instruct your system to reference this file for the behavior of lid "events": Everything worked fine on Ubuntu 22. It doesn't seem to work. While the laptop lid is closed, when I remove external power, the laptop does not suspend so i have to open the lid and close to make it suspend. ) made the suspend-resume work again! How can I configure my Ubuntu 14. 14. I have tried changing the lid close action to blank but it logs me out. To undo simply: gsettings set org. Here is a little information on my machine: Kernel: Linux 6. Based on other research, here's what I've tried so far: Made sure the "Suspend" option is chosen for "When laptop lid is closed" in the Power Manager. If I close the lid and open it again within 10-15 seconds, the laptop will not even lock. Jul 26, 2018 · gsettings set org. Didn't work after upgrading to 11. After I installed this package, it suspended correctly and resumed when I opened it. But after updating to 22. 04 won't wake up from sleep. Mar 4, 2022 · My 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. My laptop spends a lot of time in my backpack and this issue can cause the laptop to grow very hot very quickly. The fan not running and when I check the log, I don't see anything running at that time. 10 and still not working now that I'm on 12. Oct 4, 2023 · Closing the lid should suspend the unit. 1. If I hold the power button for about one second, it resumes. You will need to write a script: In a terminal, create the file /etc/acpi/lid. 04 with the latest kernel 5. :) This is the version I am currently May 13, 2020 · How can you make it so when the laptop lid is closed, the PC doesn't suspend or lock but just turn off the display so that I don't have to log back in. I recently wiped and installed Ubuntu 24. conf file). Oct 21, 2016 · A different laptop with same 16. So when I close my lid and reopen it nothing has happened. Jul 5, 2020 · Also you could try downloading the Tweaks app from Ubuntu software store which has a Suspend when laptop lid is closed toggle option under General settings. freedesktop. power lid-close-ac-action 'nothing' This will disable any action when the lid gets closed, and the laptop is plugged into AC. 10 Sep 13, 2020 · I have a Dell Inspiron 5570 with Ubuntu 20. I would like to make it resume just by opening the lid. But regularly turns back on, in my bag, draining the battery and overheating. However, in TTY1, if I close the laptop lid, the computer goes to sleep and prevents the SSH and Apache server from working. 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. It saves the battery as well as your work. 04 laptop, open the System Settings > Power > Power button and lid menu. I am wondering if this delay is the reason why my laptop will not suspend with an external monitor? Nov 9, 2023 · Near the bottom, you'll see "When I Close the Lid. So, manually suspend your laptop just to be sure. 04 LTS shows the same entry in journalctl but there suspend on lid works and the lid close event is recognized by systemd-logind. Running Ubuntu on Laptop? Here’s the beginner’s guide shows how to configure and tell what to do when the lid is closed. Open the Activities overview and start typing Tweaks. When you close the lid of your laptop, your computer will suspend in order to save power. 0-041400-generic which will solve the problem of hanging when lid closed. 04, and the laptop does not suspend when the lid closes. You can resume it by opening the lid. 04, it used to give a "Suspend when lid is closed" option in the General section, but in Ubuntu 24. Apr 28, 2024 · This simple tutorial shows how to change the action (e. Basically nothing happens when I close the lid or click on "suspend" in xfce4-session-input. 04, where the screen does not turn off nor does the system suspend when the lid is closed. 04. I've tried editing lid close and lid close on dock but none of these things have worked. 4. That’s the expected behavior. 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. 10. If you do this, be careful! Closing your laptop's lid and throwing it in your bag while it's still on could cause some serious problems due to poor circulation or blocking of vents. Upon modifying the logind. 04 Laptop Lid Behaviour. 04, it suspends Ubuntu by default. If you choose to suspend from the power menu and it suspends then you have a bug that is not engaging when you close the lid to the laptop. The only way to solve the issue is downgrading kernel to 4. 6. power lid-close-battery-action suspend Nov 25, 2020 · I've been having an issue with my laptop, a Dell XPS 13 9370 running Ubuntu 18. There’s no option to change this action since the relevant settings in Dconf Editor do not work. I don't know if any logs are going to be useful; or what the cause may be. To change what happens when you close the lid of your Ubuntu 22. I'm not logged out or anything. it will be so hot. Feb 14, 2018 · You close the lid of your laptop but it keeps on running instead of going into suspend mode? Here are a few ways how you can make Ubuntu suspend when the lid is closed. Nov 15, 2020 · It detects the lid actions, but It just doesn't suspend my pc. power lid-close-ac-action 'suspend' Possible setting values instead of suspend are: Dec 7, 2020 · Ubuntu 20. I have tried going to the "Power" dialog and setting the close lid action to "Do Nothing" (as oppose to "Suspend). Because of the large power savings, it is advisable for laptops to automatically enter this mode when the computer is running on batteries and the lid is closed (or the user is inactive for some time). conf, settings are set to suspend May 17, 2020 · When laptop lid is closed in Ubuntu 20. 04 laptop used to always suspend wen the lid was closed, UNTIL I plugged in a monitor for the first time. 1-arch1-1 Mo Oct 28, 2017 · The issue is still around on Ubuntu 20. $ gsettings get org. 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. – Apr 25, 2024 · systemd-inhibit --what=handle-lid-switch zenity --info --text='Lid switch suspend blocked while open' --ok-label=Close. 10 the behaviour was changed. Jul 24, 2022 · So I just installed Linux Mint as a dual-boot with Windows 10 on a Lenovo V145. 3. Lock: The laptop will lock when you close the lid. I opened up the settings app and went to Power. Some laptops can overheat if they are left running with the lid closed, especially if they are in a confined place like a backpack. I frequently moved from room to room and like the laptop to go to sleep when I close the lid. Check to see if the following information exists, and if not add them: [Disable suspend] Identity=unix-user:* Action=org. Share. Closing the lid of my laptop does not result in the computer entering suspend mode, meaning each time I close my lid without manually suspending the computer the battery dies. Jul 31, 2019 · The following answer is adapted from this source. How to do it? Kernel version: 3. Jul 22, 2022 · I'm using a laptop name ASUS Expertbook b1400ceae. I want the system to suspend. By default Ubuntu will go suspend when you close the laptop lid. Nov 2, 2017 · In order your system to lock when you close the lid, you MUST undo the tweak (that is to Launch Tweaks, go to the "Power" section and ENABLE suspend on lid-close). Mar 5, 2024 · Ubuntu 20. I open the lid back up and, after a few seconds, it goes right back to where I left off. Note: I said lid closed because this version doesn't enter suspend mode when lid closed but some how manages to turn off screen & backlight. Feb 12, 2018 · even though I set in the settings when the laptop is on AC to do nothing when the lid is closed, I also selected on gnome-tweak-tool to not suspend but, the wireless still turns off. When I closed a laptop lid, then the laptop screen is turned off and an external montor was still turned on. conf, you’ll see three different types of default settings for the laptop lid closing. In this tutorial, we are going to configure this default lid close behavior in Ubuntu 20. How do I accomplish this? cat /proc/acpi/wakeup has Oct 4, 2015 · Closing the lid of my laptop does not result in the computer entering suspend mode, meaning each time I close my lid without manually suspending the computer the battery dies. Setting the laptop to suspend from the UI and then closing the lid works, but bringing the laptop back from suspend after opening the lid only works about 75% of the time, while 25% of the time the laptop freezes. How can I do that? This is for a Dell Precision 5550 running Ubuntu 20. This works for me on a new install of Ubuntu Server LTS 18. generating unnecessary heat). Disabling the security chip in the bios (F1 | Security | Disable Security etc. This means that the computer is not actually turned off — it has just gone to sleep. 04, while it suspends Ubuntu by default. If I press the power button quickly, nothing happens. This is not ideal as well. May 3, 2018 · There are two ways to achieve the desired result. If that still does not work, press the power button. Is this a bug or is my laptop simply too stupid? Jan 21, 2022 · When I sign in, there are no performance problems, but it refuses to lock when I close the lid. The Gnome Tweaks app says that suspend on lid close is on. You can run this command also to prevent computer from sleeping: Mar 18, 2024 · I have an Asus Zenbook 14 Oled with Ubuntu 23. It did not show an option for suspending on lid close. May 6, 2024 · I am using Ubuntu 24. gnome. power lid-close-ac-action suspend And $ gsettings get org. Also how do I set screen to "Blank" when lid is closed correctly? Doing it from dconf-editor doesn't seem to work! Nov 4, 2017 · If you do not want the computer to suspend when you close the lid, you can change the setting for that behavior. 04 installed on my Lenovo Thinkpad L560. – codlord Commented Jul 5, 2020 at 8:57 May 11, 2020 · I've noticed that the Suspend when laptop lid is closed option in Tweaks doesn't seem to have the expected behavior for some laptops. This Aug 3, 2021 · I recently updated my XPS 15 laptop from Xubuntu 18. 04 and suspend is no longer working. Issue:. My ubuntu 20. a. 04, and Ubuntu 24. The screen goes black, but the CPU and fans are still running. The fact that this is no longer the case appears to be a bug. But I found out that my monitor was staying on even when the lid was closed (a. Use the Control Panel---not Windows 10's Settings app---to change this behavior. plugins. So, if you close the lid, it actually just turns off the screen, instead of putting the laptop to sleep. When I close the lid or change the laptop's status to suspend. 04 and found the suspend would not properly wake up when invoked with a lid close. Sep 27, 2016 · I had the same issue. conf, settings are set to suspend Hot Network Questions Building rear track wheel from road wheel May 5, 2023 · I recently discovered that my laptop won't go to sleep/suspend once I close my lid and this is actually driving me crazy. If it is not, then the system is not suspending. Jun 15, 2018 · Under the menu Power you can disable Suspend when laptop lid is closed. Oct 19, 2018 · I have Ubuntu 18. Sep 2, 2022 · If you look into the content of the file /etc/systemd/logind. Jul 6, 2024 · In this article, we explored CLI and GUI methods to disable suspension on the lid close of a laptop running Linux. Feb 11, 2019 · I tested what happens when I close the lid without an external monitor and found out that there is a 20-30 second delay before the laptop will suspend. When the laptop lid is open, then I remove power, then close, it works fine. conf file through the CLI or using the gnome-tweaks tool for the GNOME desktop environment, we now have the flexibility to disable suspend-on-lid-close in Linux laptops according to our preferences. After checking this post I also checked this command Nov 25, 2021 · This is closely related to this question: How can I tell Ubuntu to do nothing when I close my laptop lid?. target From man systemctl: mask NAME Aug 20, 2024 · Ubuntu 22. conf file to change the action of lid in Ubuntu. . systemd-logind[917]: Lid opened. We are going to tweak the logind. When the laptop lid closed, the screen turned black and the fan was still on and didn't resume when I opened the lid. When I close the lid nothing happens. 1 and an external monitor and I have followed many articles, used gnome tweaks and more but my laptop will not suspend on the closing of the lid but it moves the things on the other screen and doesn't suspend. However, closing the lid suspends the computer (as expected), but opening the lid does not resume. I can move a mouse pointer to the closed screen and windows are opened sometimes on the closed laptop screen. I then close the dialog, close the lid and still Ubuntu goes into suspended mode. When I press a key it asks for the user password. Ubuntu 18. 04 When using a GUI, I have the power options set to not sleep at all even when the laptop lid is closed, but recently I stopped the X-System and am now using TTY1 instead to save resources. target hybrid-sleep. g. Apr 29, 2018 · As of 2021 it still not solved. When I close the lid, the laptop doesn't suspend. Aug 1, 2021 · On Ubuntu 16. Works by cutting off power to most parts of the machine aside from the RAM, which is required to restore the machine's state. Aug 31, 2022 · If you use Ubuntu on a laptop, you might have noticed that the system is suspended when you close the lid. Both screens are turned on. The settings for this are turned on. Also, I am unsure as to whether or not the Live booting would have anything to do with this issue. 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. target suspend. When that happens the external monitor will turn off. $ sudo journalctl -b -u systemd-logind I can see these in the last 2 lines of the output of above line. 04 preinstalled. If you want your laptop to stay awake with the lid closed only while plugged in, use the drop-down menu in the "Plugged In" column and select "Do Nothing. I have to use the terminal each time I want to prevent laptop doing to suspended state when I close the lid. How can I make the Wi-Fi working with the lid closed, on AC? I'm on Ubuntu 17. When opening the lid the laptop screen would briefly show some text and the display goes dark. 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). " If you want your laptop to stay awake while not plugged in (and on battery power only), choose "Do Nothing" under the "On Battery" column. The power button misbehaves (will not work) and all battery is drained when shutting down the OS normally. upower. The proper settings are set in Power Management -- suspend the laptop on lid close for both AC and DC, but these do not have an effect on actual behavior. It has been great so far, but I'm getting a slight issue where the system does not suspend when closing the laptops lid (only the screen shuts off). The answer from @user386160 worked great to prevent my laptop from going to sleep. 3. All Settings Brightness & Lock is configured with Lock ON, Lock screen after Screen turns off. suspend ResultActive=no Doing this makes suspend do nothing when you click it; it will disappear from the menu after you restart your computer. You lift the lid, the system wakes up, and you can log in and continue your work. target hibernate. 04, logging in using Gnome 3, to lock the screen when I close my laptop lid? All Settings Power only offers Do nothing or Suspend as options when I close the lid. 04, computer keeps shutting down when I close the lid, I've already checked logind. – Apr 26, 2016 · This helped getting the laptop to suspend after closing the lid, but my laptop now freezes every time I open the lid. 04, Ubuntu 22. 04 LTS, I successfully used the following to disable suspend: sudo systemctl mask sleep. I don't want my laptop go to sleep when I close the lid. This used to work in Ubuntu 11. settings-daemon. Feb 21, 2014 · sudo apt-get install laptop-mode-tools I had the same problem listed here. k. Be very careful if you change this setting. Nov 30, 2010 · # run this in the as the same user (or root) that xwindow is using # test for required parameter --> empty not allowed if [ "$1" == "" ]; then echo "Please provide true or false" echo "True means keep running when lid is closed" echo "False means suspend the computer when lid is closed" exit; fi # "running true" means keep running even if the May 25, 2012 · Turn off laptop screen when closed. HandleLidSwitchExternalPower: When the laptop is plugged into a power outlet. edignr hllb bolid cbpfq ejetvaz xvtta rgiwx kkg hsvuexzy bhi