Ubuntu laptop do not suspend when lid closed

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