Skip to content

Ubuntu laptop do not suspend when lid closed

Ubuntu laptop do not suspend when lid closed. k. Apr 28, 2024 · This simple tutorial shows how to change the action (e. I don't know if any logs are going to be useful; or what the cause may be. You lift the lid, the system wakes up, and you can log in and continue your work. I've tried editing lid close and lid close on dock but none of these things have worked. $ sudo journalctl -b -u systemd-logind I can see these in the last 2 lines of the output of above line. All Settings Brightness & Lock is configured with Lock ON, Lock screen after Screen turns off. When I close the lid or change the laptop's status to suspend. However, closing the lid suspends the computer (as expected), but opening the lid does not resume. " May 13, 2020 · Most things work fine. " 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. Sep 27, 2016 · I had the same issue. 04 LTS, I successfully used the following to disable suspend: sudo systemctl mask sleep. This Aug 3, 2021 · I recently updated my XPS 15 laptop from Xubuntu 18. Check to see if the following information exists, and if not add them: [Disable suspend] Identity=unix-user:* Action=org. So, manually suspend your laptop just to be sure. Installed pm-utils. It doesn't seem to work. power lid-close-ac-action suspend And $ gsettings get org. Can you help me? I currently have Ubuntu 11. 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 Laptop Lid Behaviour. You can then choose from the following options: Sleep: The laptop will go to sleep when you close the lid. Feb 21, 2014 · sudo apt-get install laptop-mode-tools I had the same problem listed here. I frequently moved from room to room and like the laptop to go to sleep when I close the lid. I would like to make it resume just by opening the lid. Sep 14, 2020 · Same issue seen on a Lenovo T460s using Ubuntu 2024: can not wake laptop up after suspend. suspend ResultActive=no Doing this makes suspend do nothing when you click it; it will disappear from the menu after you restart your computer. 1-arch1-1 Mo Oct 28, 2017 · The issue is still around on Ubuntu 20. Be very careful if you change this setting. My laptop spends a lot of time in my backpack and this issue can cause the laptop to grow very hot very quickly. 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. When opening the lid the laptop screen would briefly show some text and the display goes dark. 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 file). 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. freedesktop. 04, where the screen does not turn off nor does the system suspend when the lid is closed. Nov 15, 2020 · It detects the lid actions, but It just doesn't suspend my pc. target From man systemctl: mask NAME Aug 20, 2024 · Ubuntu 22. plugins. 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). 3. Upon modifying the logind. 04 installed on my Lenovo Thinkpad L560. 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. 10 and still not working now that I'm on 12. We are going to tweak the logind. Oct 19, 2018 · I have Ubuntu 18. You can run this command also to prevent computer from sleeping: Mar 18, 2024 · I have an Asus Zenbook 14 Oled with Ubuntu 23. 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. Sep 2, 2022 · If you look into the content of the file /etc/systemd/logind. $ gsettings get org. This means that the computer is not actually turned off — it has just gone to sleep. Jul 26, 2018 · gsettings set org. The settings for this are turned on. If it does not resume, try clicking the mouse or pressing a key. 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). 04, there is no such option. 04 0 Ubuntu 20. If I press the power button quickly, nothing happens. May 3, 2018 · There are two ways to achieve the desired result. How can I do that? This is for a Dell Precision 5550 running Ubuntu 20. 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. But I found out that my monitor was staying on even when the lid was closed (a. If it is not, then the system is not suspending. Share. 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. generating unnecessary heat). When the laptop lid closed, the screen turned black and the fan was still on and didn't resume when I opened the lid. If I close the lid and open it again within 10-15 seconds, the laptop will not even lock. I can move a mouse pointer to the closed screen and windows are opened sometimes on the closed laptop screen. 04 laptop used to always Jan 23, 2021 · Hibernation fails with closed lid and external monitor connected Ubuntu 18. In this tutorial, we are going to configure this default lid close behavior in Ubuntu 20. 04. systemd-logind[917]: Lid opened. 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. a. 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. settings-daemon. target And this to re-enable it: sudo systemctl unmask sleep. Didn't work after upgrading to 11. 04 to 20. How can I make the Wi-Fi working with the lid closed, on AC? I'm on Ubuntu 17. By default Ubuntu will go suspend when you close the laptop lid. The answer from @user386160 worked great to prevent my laptop from going to sleep. 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. To undo simply: gsettings set org. 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. Jul 24, 2022 · So I just installed Linux Mint as a dual-boot with Windows 10 on a Lenovo V145. Here is a little information on my machine: Kernel: Linux 6. The only way to solve the issue is downgrading kernel to 4. Aug 1, 2021 · On Ubuntu 16. 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. Lock: The laptop will lock when you close the lid. 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). Jun 15, 2018 · Under the menu Power you can disable Suspend when laptop lid is closed. 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. 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. gnome. So when I close my lid and reopen it nothing has happened. When I press a key it asks for the user password. If that still does not work, press the power button. I opened up the settings app and went to Power. 04, it suspends Ubuntu by default. 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. The fact that this is no longer the case appears to be a bug. The screen goes black, but the CPU and fans are still running. Open the Activities overview and start typing Tweaks. Apr 29, 2018 · As of 2021 it still not solved. 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. 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. The Gnome Tweaks app says that suspend on lid close is on. 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. 3. So, if you close the lid, it actually just turns off the screen, instead of putting the laptop to sleep. 4 LTS on Clevo Laptop When I shut the lid it suspends. 04 won't wake up from sleep. – 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. To cboettig: yes, it is possible using the same method (changing the logind. But after updating to 22. 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. I'm not logged out or anything. power lid-close-ac-action 'nothing' This will disable any action when the lid gets closed, and the laptop is plugged into AC. 10 which was clean-installed (not upgraded) some weeks back. Same when I close the lid. Jul 22, 2022 · I'm using a laptop name ASUS Expertbook b1400ceae. 04 LTS. systemd-logind[917]: Lid closed. Ubuntu 18. To change what happens when you close the lid of your Ubuntu 22. The power button misbehaves (will not work) and all battery is drained when shutting down the OS normally. 04, Ubuntu 22. There’s no option to change this action since the relevant settings in Dconf Editor do not work. When the laptop lid is open, then I remove power, then close, it works fine. ) made the suspend-resume work again! How can I configure my Ubuntu 14. But regularly turns back on, in my bag, draining the battery and overheating. I have to use the terminal each time I want to prevent laptop doing to suspended state when I close the lid. You will need to write a script: In a terminal, create the file /etc/acpi/lid. It's a long standing bug (there is at least one bug report describing this behavior) with rather slim chances of being fixed, IMHO. 2-1-ARCH Asus UX303UA rebooting instead of resuming from suspend Thinkpad T450 running Ubuntu 17. 04 LTS shows the same entry in journalctl but there suspend on lid works and the lid close event is recognized by systemd-logind. This is not ideal as well. power lid-close-ac-action 'suspend' Possible setting values instead of suspend are: Dec 7, 2020 · Ubuntu 20. 04 laptop used to always suspend wen the lid was closed, UNTIL I plugged in a monitor for the first time. You can resume it by opening the lid. 10. 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. Mar 5, 2024 · Ubuntu 20. When that happens the external monitor will turn off. conf, settings are set to suspend May 17, 2020 · When laptop lid is closed in Ubuntu 20. target hibernate. 14. 4. 04 and found the suspend would not properly wake up when invoked with a lid close. Mar 4, 2022 · My ubuntu 20. 04, it used to give a "Suspend when lid is closed" option in the General section, but in Ubuntu 24. 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. 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. 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 close the lid nothing happens. 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. 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. Issue:. I have tried going to the "Power" dialog and setting the close lid action to "Do Nothing" (as oppose to "Suspend). 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. I recently wiped and installed Ubuntu 24. This used to work in Ubuntu 11. When you close the lid of your laptop, your computer will suspend in order to save power. 0-51-generic, and perhaps other distros as well. When I close the lid, the laptop doesn't suspend. conf, you’ll see three different types of default settings for the laptop lid closing. Some laptops can overheat if they are left running with the lid closed, especially if they are in a confined place like a backpack. 04 with the latest kernel 5. 10 the behaviour was changed. :) 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. HandleLidSwitchExternalPower: When the laptop is plugged into a power outlet. 04, computer keeps shutting down when I close the lid, I've already checked logind. 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. After I installed this package, it suspended correctly and resumed when I opened it. – Apr 25, 2024 · systemd-inhibit --what=handle-lid-switch zenity --info --text='Lid switch suspend blocked while open' --ok-label=Close. However, in TTY1, if I close the laptop lid, the computer goes to sleep and prevents the SSH and Apache server from working. May 6, 2024 · I am using Ubuntu 24. 04, while it suspends Ubuntu by default. How to do it? Kernel version: 3. it's run ubuntu 22. target hybrid-sleep. If I hold the power button for about one second, it resumes. That’s the expected behavior. It saves the battery as well as your work. I don't want my laptop go to sleep when I close the lid. This works for me on a new install of Ubuntu Server LTS 18. 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. HandleLidSwitch: When the laptop is on battery power. upower. 04 preinstalled. It did not show an option for suspending on lid close. Jul 6, 2024 · In this article, we explored CLI and GUI methods to disable suspension on the lid close of a laptop running Linux. 04, and Ubuntu 24. – 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. , power off, hibernate, do nothing, or lock) when laptop lid is closed in Ubuntu 20. Disabling the security chip in the bios (F1 | Security | Disable Security etc. 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. I then close the dialog, close the lid and still Ubuntu goes into suspended mode. 04 and suspend is no longer working. Basically nothing happens when I close the lid or click on "suspend" in xfce4-session-input. Jul 31, 2019 · The following answer is adapted from this source. 04, and the laptop does not suspend when the lid closes. 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. Aug 31, 2022 · If you use Ubuntu on a laptop, you might have noticed that the system is suspended when you close the lid. 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. My ubuntu 20. . Both screens are turned on. 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. 0-041400-generic which will solve the problem of hanging when lid closed. conf file to change the action of lid in Ubuntu. I want the system to suspend. 1. 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 open the lid back up and, after a few seconds, it goes right back to where I left off. Running Ubuntu on Laptop? Here’s the beginner’s guide shows how to configure and tell what to do when the lid is closed. 6. 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. Oct 4, 2023 · Closing the lid should suspend the unit. 10 Sep 13, 2020 · I have a Dell Inspiron 5570 with Ubuntu 20. sh, make it executable, and instruct your system to reference this file for the behavior of lid "events": Everything worked fine on Ubuntu 22. The fan not running and when I check the log, I don't see anything running at that time. Use the Control Panel---not Windows 10's Settings app---to change this behavior. Oct 21, 2016 · A different laptop with same 16. Also, I am unsure as to whether or not the Live booting would have anything to do with this issue. Works by cutting off power to most parts of the machine aside from the RAM, which is required to restore the machine's state. 04 laptop, open the System Settings > Power > Power button and lid menu. 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?. g. target suspend. I have tried changing the lid close action to blank but it logs me out. 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. it will be so hot. eqmez qvfeh fpqx xgjwfmg xhh rcwymvqp jemkak fmeaqbm lqpc wbcjep