Ubuntu do nothing when lid is closed



  • Ubuntu do nothing when lid is closed. Feb 7, 2015 · I often need to change it on my laptop whether I want it to do nothing when the lid is closed or go to sleep. Dec 16, 2013 · This my first time using Ask Ubuntu so something might go wrong. I'm able to do this in Kubuntu 18. Set Lock screen or Switch off display in When laptop lid is closed option). If it is not, then the system is not suspending. Aug 22, 2019 · I'm running Ubuntu Studio, which is based on Ubuntu 19. Fortunately, there’s an easy way to prevent Ubuntu 22. 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. " There are two separate options here: On Battery and Plugged In. 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. 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. – Jul 6, 2024 · In this article, we explored CLI and GUI methods to disable suspension on the lid close of a laptop running Linux. 10 it is changed in 'when lid is closed suspend'. conf, settings are set to suspend May 6, 2024 · I am using Ubuntu 24. 04, it used to give a "Suspend when lid is closed" option in the General section, but in Ubuntu 24. Regards, Tom 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. 10 to Lubuntu 14. settings-daemon. I found these options in dconf-editor for the laptop to do 'nothing'. plugins. The latter might be the key, since I don't see it mentioned in your question. The change-log contained several ACPI and power management fixes. 04 via the Power settings. Feb 15, 2022 · But when I close the screen (the "lid") to pack it away, it immediately wakes up. It is set to suspend when the lid is closed but nothing happens. " 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. 04 where in certain circumstances windows would be opened while lid was closed. All Settings Brightness & Lock is configured with Lock ON, Lock screen after Screen turns off. – codlord Commented Jul 5, 2020 at 8:57 Jul 23, 2019 · To have the lid closed without doing anything:. System Settings -> Power - "When the lid is closed" is set to "Do nothing" for both battery and A/C; Laptop doesn't hibernate when I close the lid in Ubuntu 14. 10 under power management. 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. pm-powersave. You lift the lid, the system wakes up, and you can log in and continue your work. Closing the lid doesn’t do anything, the screen just stays on. This is a new problem in Ubuntu 10. conf 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. Login. Many thanks. That’s the expected behavior. 04 running with an Nvidia card on a W510 Thinkpad. I have found nothing on duckduckgo and I know that it works differently for 20. (e. If that still does not work, press the power button. How can I make the Wi-Fi working with the lid closed, on AC? I'm on Ubuntu 17. To save some energy: I want to have my screen blank, but in that case, I can NOT connect anymore with RDP. When you open it again, you can see the entire screen do a weird refresh. When I change the power settings to "Do nothing" when "Lid closed" it still keeps the system running which is great. Click on Devices. If you have a power manager such as xfce4-power-manager-settings, it is a good practice to make sure it is configure properly first before doing the change above. Dec 23, 2022 · I'm running Ubuntu 22. I tried changing the power setting to Do nothing when the lid is closed, but the system does not respect that setting. Mar 13, 2018 · Finally, to test we closed the lid and the server was operating as expected. 7. Open the Settings app. Configuring Lid Close Actions in Ubuntu 22. I don't know if any logs are going to be useful; or what the cause may be. Sep 2, 2022 · I am using ubuntu 22. power lid-close-suspend-with-external-monitor. Nov 30, 2010 · To disable Ubuntu doing anything closing the laptop lid: Open the /etc/systemd/logind. Here is how you can do it. I close the lid frequently when moving around my house and don't want to computer to suspend or hibernate. 04 to 24. Xfce power manager is set to do nothing with lid closes, and that setting seems to be respected I've set up power management so that, when plugged in, my laptop does nothing when the lid is closed. 04, there were separate configurations for when on AC or Battery, and there was an option 'Do Nothing' when lid is close. power lid-close-ac-action 'nothing' Then repeat the first command and the response should be nothing. 10 on a Dell XPS m1330 laptop. Here’s how to do it: 1. But when I am running on battery and I close the lid, the laptop locks. 04 will stay awake. This simple tutorial shows how to change the action (e. Unfortunately, I have to keep the laptop lid open. But if I do, the laptop suspend. # 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 Hi! I am running 9. 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. $ sudo journalctl -b -u systemd-logind I can see these in the last 2 lines of the output of above line. Does anyone know how I can keep Ubuntu Server in my laptop with the lid closed from hibernating? Aug 14, 2018 · Hello gm10 Thanks a lot for your answer. Go to System Setting then power management and make sure to disable suspend when lid is closed and on power. Nov 9, 2023 · Near the bottom, you'll see "When I Close the Lid. xrandr default-monitors-setup 'follow-lid' gsettings set org. , power off, hibernate, do nothing, or lock) when laptop lid is closed in Ubuntu 20. Laptop is a Dell E7240. 2 LTS # 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 Jul 6, 2016 · It is set to "Do Nothing" but the display clearly goes off when the lid gets a couple inches from the keyboard. power lid-close-ac-action 'nothing' This will disable any action when the lid gets closed, and the laptop is plugged into AC. Note. This is causing me to be unable to gamestream while lid is closed which is inconvenient. Unable to upgrade from Ubuntu Server 22. Keeping your laptop on or awake when the lid is closed is easy to enable on Mac. 4 I googled power management and downloaded an app through Ubuntu Software which has a setting for when the lid is closed. 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 I am running Ubuntu 9. 1 May 11, 2020 · Edit: My Ubuntu version is 18. 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). However, the laptop still goe Apr 28, 2023 · To change the lid close action on Windows 11, open Control Panel > Hardware and Sound > Power Options, and click “Choose what closing the lid does,” use the “When I close the lid” setting and choose the action for “On Battery” and “Plugged in:” “Do nothing –” keeps the device running when closing the lid. 2. 04 from sleeping when you close the lid. 04, while it suspends Ubuntu by default. Wondering if anyone ran into similar issues and has any May 13, 2020 · Learn how to customize the behavior of your laptop when you close the lid without suspending it. I have configured Ubuntu to "do nothing" if the lid is closed and AC is plugged and this works just fine. So I had this on Ubuntu 18 and want it now for Ubuntu 20. I have tried setting "HandleLidSwitch=ignore" on both normal and external power, and changing "lid-close-ac-action" to nothing through dconf. Before this function had the options "do nothing" and "suspend" and maybe "shutdown". Closing the screen without suspending in advance does nothing; it just keeps going. Find answers from other Ubuntu users and experts. conf file in a text editor as root, for example, sudoedit /etc/systemd/logind. This means that the computer is not actually turned off — it has just gone to sleep. You can choose different options for each. In the power setting, make sure that option for ‘When the lid is closed’ is set to Suspend. However, if I remote in via SSH and trigger a reboot then the system does not reboot properly. Jul 31, 2019 · The following answer is adapted from this source. Figure 1: Open Terminal for Ubuntu Open a Terminal for Red Hat Enterprise 7 using the keyboard command of Ctrl + Alt + T. Tried the BIOS and nothing, no option about the lid. So I 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 top answer to this question does a good job of explaining how to do this for both AC and battery modes, along with instructions on how to change it back to blanking the screen: How can I tell Ubuntu to do nothing when I close my laptop lid? Jun 3, 2016 · Hi I installed Ubuntu on this laptop. so i think you have to change it manually. In 9. In this tutorial, we are going to configure this default lid close behavior in Ubuntu 20. Now, let’s explore how to configure your Ubuntu laptop to do nothing when you close the lid. 04, Ubuntu 22. I don't want that and there is no option for this in 9. You will need to write a script: In a terminal, create the file /etc/acpi/lid. Nov 4, 2020 · The distros I’ve used so far (Ubuntu, Mint) and Windows simply come with a “Do Nothing” option when the lid is closed. Currently there is no menu option for this but maybe there is a file I could alter in the terminal? Do nothing when lid is closed Ubuntu? Go to System Settings and then click on Power. log seems to be updated between lid movements. Aug 31, 2022 · If you use Ubuntu on a laptop, you might have noticed that the system is suspended when you close the lid. Now for configuration. 04 in system settings - power i had chosen 'when lid is closed do nothing' but now, after the upgrade to 13. 10 with default GNOME desktop environment. Click the “Apple” icon in the top left A previous question suggests looking into ACPI configuration and removing lid close scripts there, but I seem to have no scripts that do anything with the lid in /etc/acpi. 04 in my HP Pavilion 15 today. We would like to show you a description here but the site won’t allow us. 04 installed, lid closed, external monitor is connected. I have changed the logind. Power option set to "Do nothing" when lid is closed. conf. power lid-close-ac-action, 2. I have one external monitor connected. May 30, 2022 · How do I change the close lid options in Ubuntu 22. This involves editing system configuration files, which should be done with care. Oct 21, 2016 · Upgrading to the 4. By answering duplicate questions that have already been asked and answered elsewhere, it makes our site more difficult to navigate. May 25, 2012 · when I close the lid, the ssh server stops working and, I guess, wlan0 too. Feb 13, 2010 · Hi! I am running 9. 04? Thanks! Adv Reply . I am running Ubuntu 13. However, the laptop still goe # 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 Jun 3, 2016 · Closing the lid on my Dell Studio 15 which is running Ubuntu 10. 04, it suspends Ubuntu by default. NOTE: This tutorial is also tested and works in Ubuntu 22. Mar 31, 2016 · There was an issue around 15. # 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 Jun 22, 2023 · I have Ubuntu Server installed on my laptop and it works fine when I leave the lid of my laptop uncovered. the screen still turns off. systemd-logind[917]: Lid closed. If you only want to close the lid and not put your laptop to sleep, continue below to learn how to do it in Ubuntu. 1 LTS on an old laptop. power lid-close-battery-action suspend Nov 2, 2017 · Since my upgrade to Ubuntu 17. 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. It doesn't seem to work. Jan 23, 2021 · Hibernation fails with closed lid and external monitor connected Ubuntu 18. any other methods I might have to go through to force the lid to not affect the system? whenever I "wake" the system from that state. Mar 19, 2021 · # 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 Dec 27, 2013 · Most modern operating systems, including Windows is designed to put the laptop to sleep when the lid is closed. I also haven't been able to find anything to do with lid closes in /etc/udev. May 30th, 2022 #2. $ gsettings get org. You can not close your lid on battery and have the laptop stay on, no matter what you do. If it does not resume, try clicking the mouse or pressing a key. 04 0 Ubuntu 20. . after i read your question, i checked my system settings. 04. The top answer to this question does a good job of explaining how to do this for both AC and battery modes, along with instructions on how to change it back to blanking the screen: How can I tell Ubuntu to do nothing when I close my laptop lid?. in ubuntu 13. My laptop spends a lot of time in my backpack and this issue can cause the laptop to grow very hot very quickly. If HandleLidSwitch is not set to ignore then change it: HandleLidSwitch=ignore. I would like to find a way to have the computer "do nothing" when the laptop lid is closed. conf is the default login manager configuration file for Linux Ubuntu Systems. Mar 14, 2021 · HandleLidSwitch=hibernate –> hiberante when lid is closed HandleLidSwitch=ignore –> do nothing when lid is closed HandleLidSwitch=poweroff –> shutdown when lid is closed HandleLidSwitch=lock –> lock when lid is closed. Aug 15, 2021 · It's better to close the question as a duplicate since the question and answer are exactly the same. You can resume it by opening the lid. 10 there's no option in the settings about what to do when the notebook-lid is closed any more. When I close the lid, I can see through the crack it is still on. I want it to do nothing when I close the laptop lid. 04 which did not exist in 9. I actually do appreciate. Seems to have gone away in 15. Open lid wakes it up. I'm making a server (Not a Ubuntu server) and I need to 24/7, I normally have my laptop charging and the lid closed. Oct 4, 2023 · Closing the lid should suspend the unit. – A subreddit for asking question about Linux and all things pertaining to it. However, I didn't want to leave the lid of my laptop open all the time. After I close the lid it just shuts off the screen and stays on. 10/early 16. I have opened a topic in the development section to report it as a problem but I’m not sure I’ve done it properly (there was no option to flag it as a problem or bug report). the following text shows up on the screen Apr 13, 2017 · This is not the same as this question. May 15, 2020 · On Ubuntu change lid close behaviour using the logind. Apr 13, 2017 · The issue is solved temporary using the method in this forum, but only if I have fresh boot, if i suspend my laptop and wake it again, Ubuntu will ignore my rules, and suspend when i close the lid. 04 freezes the screen. Jun 10, 2019 · Ubuntu: How can I tell Ubuntu to do nothing when I close my laptop lid?Question: I would like closing the laptop lid to be a no-op. To undo simply: gsettings set org. Nov 26, 2023 · How to Keep a Laptop on and Close it on Mac. conf, settings are set to suspend Apr 28, 2022 · I installed Ubuntu 22. And Gnome Tweaks only offer a switch to enable/disable ‘Suspend when the laptop lid is closed. Expected behaviour is definitely to turn display off when lid is closed, even if no other action such as `suspend` is enabled. 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. conf file in a text editor as root, for example. sudo -H gedit /etc/systemd/logind Jul 26, 2018 · gsettings set org. View Profile View Forum Posts Private Message eat, ride, sleep however. Under When I close the lid, select Do nothing. # 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 Open a Terminal following the steps below for your specific operating system: . May 17, 2020 · When laptop lid is closed in Ubuntu 20. " Nov 25, 2021 · gsettings set org. How can I tell Ubuntu to do nothing when I close my laptop lid? Nov 15, 2020 · It detects the lid actions, but It just doesn't suspend my pc. Open a Terminal for Ubuntu (Figure 1): . Click on Power. systemd-logind[917]: Lid opened. power lid-close-suspend-with-external-monitor false gsettings set org. power lid-close-ac-action suspend And $ gsettings get org. I have looked at several similar questions and tried the below methods already. It's like the laptop screen close switch is backwards. Reboot. whenever I close the lid. Any suggestions? Mar 5, 2024 · Ubuntu listens to ACPI events to perform actions like suspending the system when the lid is closed. 10 Jun 17, 2014 · The issue is following: laptop (HP6570p) with Kubuntu 14. Nov 19, 2021 · Anyone have issues with their Framework refusing to suspend when the lid is closed? I just installed Ubuntu 20. But On opening lid there is just a black screen there is no effect of any input from keyboard or mouse. Using this method on Ubuntu turn off display when lid is closed; change laptop close lid behaviour on Linux Ubuntu Systems. and the os "freezes" until I open the lid and press a button ssh is also unresponsive in that state. My only choice is to force shut down pc using power off button. 04 on my dell laptop with processor intel core i3 4gb and 1tb storage. 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. So, I tried to put the lid on my laptop. I want to make my laptop to not suspend when I close laptop lid. Then I rebooted the service with $ sudo service systemd-logind restart, but if I close the lid the whole screen turns off, so nothing changed! I've even tried rebooting the pc for the sake of trying Apr 13, 2017 · This is not the same as this question. 04 Gnome desktop, there’s no option in Settings utility for configuring laptop lid close actions. Among other issues, Whenever I close my laptop lid (it should ideally suspend and work normal whenever I open it back). 4. Tried ls -lrt /var/log between lid derivatives, but I can't understand those satanic logs. To make Ubuntu do nothing when laptop lid is closed: Open the /etc/systemd/logind. # 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 Jun 2, 2020 · The "When lid is closed" setting is at "Do Nothing". This Dec 1, 2011 · When that is the case, I want to close the lid. It's an HP notebook. Might as well leave it active on battery as nothing is going to stop that. That’s it! Now, when you close the lid of your laptop, Ubuntu 22. (different hardware than seen with before So this morning on an Hp laptop I have with touchpad enabled & a touch screen I went out & simply closed the lid. 04, where the screen does not turn off nor does the system suspend when the lid is closed. 04 but has showed up again here in spades. I have tried playing with all the settings in System->Preferences->Screensaver but nothing seems to make any difference. But then, the system hibernates. May 9, 2019 · From the drop-down menu for "When I close the lid," select "Do Nothing. I can share them if needed. When that happens the external monitor will turn off. gnome. 10. I don't know how to do it. More: I want to close the lid of my laptop, turn the screen off, but keep RDP-connection enabled I already tried to edit Nov 25, 2020 · I've been having an issue with my laptop, a Dell XPS 13 9370 running Ubuntu 18. 04, computer keeps shutting down when I close the lid, I've already checked logind. But I do support too the first suggestion of "Nocturn Adrift" for a simple option which would suspend all actions except turning off the light of the screen when we close the lid of a laptop. As far as Windows goes, everything works fine, but for Ubuntu, everything works decently except for the fact that whenever I close the lid, I cannot wake up the system from sleep/suspension. lid-close-ac-action was set to 'ignore' lid-close-battery-action was set to 'ignore' lid-close-suspend-with-external-monitor was left unchecked. Others also seemed to have this Problem. Jun 2, 2019 · This setup works fine when I leave the lid open; but the open windows stop responding when I close the lid, although the cursor still moves and some tasks can still be performed (e. Any help would be greatly appreciated. 04, there is no such option. If you are using nano you can close and save the file by pressing [ctrl] + [x] then [y] and then [enter May 3, 2018 · There are two ways to achieve the desired result. 04, and Ubuntu 24. But I can't get this to work in Ubuntu 19. 3. Then close the lid again. Mar 18, 2024 · # 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 I'm using an HP laptop as a server, so the lid is almost always closed and it is the only display "plugged". Everything is fine. 04, and Ubuntu 23. power lid-close-ac-action 'blank' gsettings set org. conf default login manager configuration file. power lid-close-ac-action 'suspend' Possible setting values instead of suspend are: I am trying to use a laptop as a server, but can't get it to stay on with the lid closed. Different model (X540SA) but had the same issue. Save file. Apr 28, 2024 · This simple tutorial shows how to change the action (e. Dec 15, 2021 · gsettings set org. g. From windows, I can connect with the RDP-protocol, no problem. After checking this post I also checked this command Aug 29, 2014 · I upgraded my OS from Lubuntu 13. 1fallen. It saves the battery as well as your work. 04 LTS. How can I do that?Solutio Power Change options in dconf-editor I want my laptop to do nothing when I close the laptop lid. For example, you might want to have your laptop stay on when you close the lid while it's plugged in but go to sleep when it's on battery. Upon modifying the logind. Methods I have tried: Gnome Tweaks - disable the automatic suspend on lid close; edit /etc/systemd/logind. power lid-close-ac-action If the printed reply is not nothing then use this command: gsettings set org. Version: Ubuntu 18. 04 a few days ago, and now my screen locks when the lid is closed, while I want nothing to happen when lid is closed. Hibernation fails with closed lid and external monitor connected Ubuntu 18. Ubuntu also does this. conf file already and also all other conf files in the systemd Aug 2, 2019 · In Ubuntu 18. I tried turning off the laptop monitor to see if that made a difference, but it doesn't. I just want my laptop to keep running as usual with the lid closed. When my laptop is plugged into power and I close the lid, it only turns off the screen, so when I open it up again, it comes back right away, and I can give use my media keys on the outside while it is closed. I have Ubuntu 12. My wlan0 is a RaLink RT3090. I do this so that I can use as a desktop with my external monitor with the screen closed and the laptop scurried away from my desktop. power lid-close-ac-action 'nothing May 19, 2012 · The battery is totally shot and does not even register anymore, so I am using it as a desktop instead, with an external monitor. There is no reason to burn the backlight when the lid is closed. Have someone else close the lid for you. The "do nothing" function did something: when the lid was closed, the display went dark and the screen was locked with the password. 04 and I’m using the GitHub - lightrush/framework-laptop-formula: Salt formula for setting up Ubuntu on the Framework Laptop salt stack to get things working. There are two ways to go about making this work in Ubuntu. execute the following commands: gsettings set org. 9-rc1 kernel fixed the problem on my Asus. The logind. Your suggestion works fine after rebooting the system. sh, make it executable, and instruct your system to reference this file for the behavior of lid "events": How can I configure my Ubuntu 14. I just need to find out how to let my Ubuntu terminal running even if my lid is closed, and when its not charged. Mar 6, 2024 · gsettings get org. gsettings get org. power lid-close-battery-action and 3. 10 on a laptop. When you close the lid of your laptop, your computer will suspend in order to save power. Jun 15, 2018 · Power Change options in dconf-editor I want my laptop to do nothing when I close the laptop lid. Laptop shows KDM login screen for a seconds and immediately goes to sleep. It is set to suspend. dragging windows). In the askubuntu thread that I linked to, there is no answer for ubuntu 20. Mar 5, 2024 · gsettings get org. I've somewhat avoided this problem by having Ubuntu do nothing when the lid is closed, but if I suspend Ubuntu then close the lid, the computer will not Remember that all the "Mac" rules still apply. tmrx jpwlq rku pmndv yhzb qzsg zkwlyzo uqawq dafrpmgr grof