Questions tagged [lid]
For questions regarding what Ubuntu does when you physically open or close a laptop or clamshell style computer. Common subjects are suspending/hibernation, and locking.
162
questions
55
votes
3
answers
52k
views
Ubuntu 17.10 and later: Don't suspend when lid is closed, just lock screen
Since my upgrade to Ubuntu 17.10 there's no option in the settings about what to do when the notebook-lid is closed any more.
Before this function had the options "do nothing" and "suspend" and ...
15
votes
4
answers
8k
views
Python program starts running again after pc wakes up?
I am running a python program that takes a few hours to complete. If I close the lid of my laptop (ie I put it to sleep), will the program start again when I reopen my laptop? It's been a few hours ...
14
votes
4
answers
7k
views
Ubuntu Studio 20.04 freezes everything but mouse after lid closes and opens
(¿Could anybody please bounty this? I have been having this issue since march)
As title says; I recently installed Ubuntu Studio 19.10 Eoan (Now upgraded to Ubuntu Studio 20.04 Focal Fossa, still ...
12
votes
3
answers
5k
views
Unable to wake with external keyboard while lid is closed
I have Ubuntu 16.04 on my Acer Aspire 7750G laptop connected to an external monitor with the built-in screen disabled. I also have an external keyboard and mouse connected to the laptop.
When I ...
11
votes
1
answer
10k
views
Lid Closed Suspend then Hibernate
I would love for the lid closing behavior to "suspend" for a certain amount of time (1 or 2 hours) and then "hibernate" to save battery. Is there a way to change the settings of "suspend" so that it ...
10
votes
1
answer
14k
views
Catch lid close and open events
I tried to write a script like this suggestion:
How do I configure the screen to lock when I close the lid?
I created a directory and a new script file:
mkdir /etc/acpi/local
gksudo gedit /etc/...
9
votes
1
answer
17k
views
How can I tell Ubuntu 18.04 to do nothing when I close my laptop lid? [duplicate]
Power Change options in dconf-editor
I want my laptop to do nothing when I close the laptop lid. I found these options in dconf-editor for the laptop to do 'nothing'. However, the laptop still goes ...
8
votes
1
answer
7k
views
Closing lid problem
When I close lid and then I open it black screen appears (display seems to be turned off). I have tried all options in power management (screen turn off, suspend, block screen). Screen turn off and ...
8
votes
0
answers
7k
views
Logind.conf HandleLidSwitchDocked
I've been trying to do a clamshell mode setup for my computer and I've seen many suggestions to use HandleLidSwitch=ignore. However this is not really what I want to do since I only want to keep the ...
7
votes
1
answer
7k
views
20.04 LTS Since upgrade from 19.10 laptop doesn't suspend anymore after lid close
My Lenovo P50 laptop used to suspend nicely when I closed the lid on Ubuntu 19.10. After the upgrade this doesn't work anymore. When I execute the command sudo systemctl suspend then the laptop still ...
7
votes
0
answers
1k
views
Ubuntu 17.10.1 doesn't suspend on lid close with 2 displays
I run Ubuntu 17.10.1 on Acer Aspire V17 Nitro (VN7-791G).
I am booting from a secondary hard drive that is installed instead of a DVD drive, I also have a secondary display connected using a VGA (...
6
votes
2
answers
5k
views
Suspend laptop when closing lid in Kubuntu 18.04
When I close the lid nothing happens in Kubuntu 18.04 and I see no option in Power settings regarding this.
6
votes
4
answers
9k
views
When I close the lid of my laptop, the Wifi should not disconnect automatically
I am running Ubuntu 16.04 and when the lid of my laptop is closed the wifi disconnects and needs to be turned on manually when the lid is opened.
I have tried the following without any success:
sudo -...
6
votes
2
answers
7k
views
Laptop doesn't hibernate when I close the lid in Ubuntu 14.04
Ok, I know there already are several questions related to this. I tried many solutions to no avail. I'm going to detail here what I did and how are my config files in the hope that a good soul will ...
6
votes
1
answer
2k
views
Disable screen on lid close but don’t sleep
In Ubuntu 18.04 server I want to be able to shut the lid of my laptop and have the following happen:
The screen turns off.
The laptop itself keeps running and does not go to sleep.
If I set this in /...
6
votes
0
answers
881
views
Restrict waking up from suspend to specific buttons only
I have an Acer Aspire notebook with 16.04 installed on it.
Currently when I suspend, it wakes up on basically everything, including:
opening the lid
pressing the Power button
pressing any keyboard ...
6
votes
0
answers
2k
views
Disable touchscreen on closing laptop lid
I configured my laptop so the display screen stays on and unlocked when I close the lid, because I want to do sleep and lock manually when I need it to.
This works fine so far with only one drawback, ...
5
votes
2
answers
12k
views
How to Prevent Ubuntu from sleeping when Closing Lid
I want to prevent my system (Ubuntu 22.04 on old HP laptop) from sleeping when closing the lid.
I already tried to edit my /etc/systemd/logind.conf :
[Login]
#NAutoVTs=6
#ReserveVT=6
#...
5
votes
1
answer
5k
views
How do you disable the Laptop Lid Switch in Ubuntu 20.04? [duplicate]
Is there a way to just stop the OS from using the Laptop Lid Switch all together, regardless of what you want to happen?
If not, I want to close the lid and open it with out having to log back in.
5
votes
2
answers
6k
views
How to use a key press to wake a suspended laptop when using a KVM switch?
I'm using a wireless Logitech Keyboard with a Logitech Unifying Receiver plugged into a KVM switch. I created a systemd suspend shortcut to suspend the laptop, a Lenovo IdeaPad. The laptop's lid is ...
5
votes
1
answer
1k
views
Suspended Ubuntu 17.04 , when "wake up" does full reboot
After installing Ubuntu 17.04 a week ago on my /dev/sda1 partition, all was working properly.
Closing the lid put my computer into suspend mode.
Opening it up, touching a keyboard touch turned it on,...
5
votes
2
answers
2k
views
Configure closing the lid to suspend the laptop when an external monitor is used
When I use an external monitor the laptop does not automatically suspend when I close the lid. Instead the external monitor is then still in use.
I want to configure ubuntu in such a way that the ...
5
votes
3
answers
4k
views
How do I turn off the monitor when I close the lid?
My problem is that when lid is closed, it just shows blank screen and not turning off the monitor, so my monitor is always on. But when I use Win 7 and I close the lid it turns off the monitor, so I ...
4
votes
3
answers
17k
views
Lubuntu 14.04: how to avoid lock screen on closing laptop lid?
I upgraded my OS from Lubuntu 13.10 to Lubuntu 14.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.
I have already set the right ...
4
votes
2
answers
5k
views
Ubuntu thinkpad e15 gen2 lid and fn keys not working
I just got the thinkpad e15 gen2 (amd) and I installed ubuntu 20.04 lts on it and I can't seem to be able to get the fn keys working nor can I get the laptop to suspend when closing the lid. For the ...
4
votes
3
answers
2k
views
Laptop automatically suspending after lid closed and reopened
My current kernel version
Linux xorist-Blade-Stealth 4.18.0-041800-generic #201808122131 SMP Sun Aug 12 21:33:20 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
The issue I'm having
First I feel it's ...
4
votes
1
answer
115
views
Crashplan service prevents suspend
After a long trial/error process, I finally identified crashplan service as the reason for my laptop not suspending after lid is closed. I have two different Ubuntu laptops, both are suffering from ...
4
votes
1
answer
391
views
How to prevent an unintended resume from suspend (Lenovo x240)?
Updated 2015-04-19, 15:56 - I am using a Lenovo x240 notebook and the problem is valid for Ubuntu 14.04 and 14.10 at least.
General description of the problem
If I close the notebook's lid, the ...
4
votes
3
answers
3k
views
Dell Laptop Won't Suspend When Lid Closed (Ubuntu 20.04.1 LTS)
So here are the things related with my problem:
I uncommented these lines
$ grep -v '^#' /etc/systemd/logind.conf
[Login]
HandleLidSwitch=suspend
HandleLidSwitchExternalPower=suspend
...
4
votes
0
answers
2k
views
Lock + suspend behavior on laptop lid close
I've installed Ubuntu 16.04 on two different laptops:
Lenovo Thinkpad T460s
HP Probook 6470b
My configuration is similar across both laptops. I have i3 WM installed, with lightdm (the default on 16....
3
votes
2
answers
7k
views
Laptop lid close doesn't suspend then the battery dies
I am using Ubuntu 16.04. I followed the steps in the given link to send my laptop to sleep on closing the lid.
Immediately lock screen when I close laptop lid under Gnome 3 (14.04)
It worked. But ...
3
votes
1
answer
4k
views
Ubuntu 18.04 freezes when running `systemctl restart systemd-logind.service`
I am trying to change my laptop's lid close behavior following this article: http://tipsonubuntu.com/2018/04/28/change-lid-close-action-ubuntu-18-04-lts/
When I get to run:
systemctl restart systemd-...
3
votes
3
answers
3k
views
Suspend on lid close doesn't work 16.04
I've checked each and every option and possible solutions but my ASUS laptop doesn't suspend when I close the lid. All settings were set proper via the menues but nothing happens. When I perform a ...
3
votes
2
answers
4k
views
How turn off External Display, on closing lid in Ubuntu 20.04
I believe that there are a lot of questions asking the other way around. However for me, on closing my laptop's lid the external monitor is still running which I would like it to stop continuing to ...
3
votes
1
answer
888
views
When I close the lid of my HP Zbook v15 the screen goes off but the laptop doesn't suspend/hibernate!
I am working with a HP Zbook 15 Workstation with Ubuntu 18.04 installed. When I close my laptop lid the screen goes black but doesn't suspend. When I open it again I don't have to login or anything.
...
3
votes
1
answer
717
views
Can you execute a custom shell command on power button or lid close?
I am trying to make hibernate work on my Ubuntu 18.04.
I followed all the tutorials around (mostly from the answers here: How can I hibernate on Ubuntu 16.04?)
So far, executing pm-hibernate on the ...
3
votes
0
answers
80
views
Ubuntu won't react after I close the lid
I have Ubuntu-Mate Disco Dingo installed on my IdeaPad which is working perfectly fine, except for one thing. If I close the lid and open it up later I can't click anything anymore. The desktop shows ...
3
votes
1
answer
2k
views
Disable laptop lid sleep
Xubuntu 14.04. I've already done the following:
HandleLidSwitch=ignore
LidSwitchIgnoreInhibited=no
xset -dpms
disabled xfce power manager in session and start up
set power settings to do nothing ...
2
votes
1
answer
3k
views
Do nothing on laptop close not available in Ubuntu 19.04
I'm running Ubuntu Studio, which is based on Ubuntu 19.04. I want it to do nothing when I close the laptop lid. I'm able to do this in Kubuntu 18.04 via the Power settings. But I can't get this to ...
2
votes
1
answer
1k
views
Suspend on lid close after timeout
I am using a laptop with Ubuntu 16.04, Gnome as desktop environment and LightDM as login manager.
What I want to do is to suspend the computer after the lid has been closed for 30 seconds. Is this ...
2
votes
2
answers
5k
views
Close lid without suspend
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 have tried changing the lid close action to ...
2
votes
1
answer
1k
views
How to put the laptop to sleep/hibernatation by closing the LCD lid?
I installed Ubuntu 18.10 on my Thinkpad X1 Extreme. After I closed the lid, the machine is still working as I can see things on the external display. How can I put it to sleep/hibernation when I close ...
2
votes
1
answer
3k
views
Xubuntu (XFCE) closing lid locks screen
The usual advice is to go to: /etc/systemd/logind.conf and set HandleLidSwitch=ignore, which I already did, and it seems to be working (or my computer wakes up before I can notice it is not up). ...
2
votes
2
answers
2k
views
How to blank the screen when laptop lid is closed but without sleeping the computer?
I have XUbuntu 18.04.
I want to close the lid on my laptop and have the screen immediately go blank (black) or off, but the computer itself to remain awake (active [not suspended]).
I've installed ...
2
votes
1
answer
817
views
Laptop not coming back from sleep after lid close
I'm using Ubuntu 16.04 LTS on an ROG Strix GL553. I have a problem when I close the laptop lid. The computer goes to sleep but when I open it back again it gets stuck on a black screen.
I belive ...
2
votes
1
answer
1k
views
Laptop won't get in sleep if I close the lid
Recently I installed Ubuntu 17.10 on my ThinkPad T530.But I have a problem (and I know how much ThinkPad hardware is supported on the linux world).So If I close the lid,the thing won't get on sleep ...
2
votes
1
answer
764
views
Lock screen after period of inactivity, but not on closing the lid
Running Ubuntu 16.04 with Unity, I want that
when I leave my laptop untouched for 5 minutes, turn the screen off
1 minute after turning the screen off for inactivity, lock the screen.
when I close ...
2
votes
2
answers
3k
views
ACPI open/close lid scripts - xrandr does not execute but other commands do
See SOLUTION at the end.
I have used this guide to write a script that activates when I open or close the laptop lid. My setup is a laptop monitor and an external monitor working well together.
...
2
votes
2
answers
2k
views
Ubuntu 20.04 LTS Screen Lock not working randomly
I recently updated to 20.04 LTS and I've been having some trouble with lock screen. When I close the lid it is configured to suspend and lock and the suspend part is ok but when I open the lid, most ...
2
votes
1
answer
749
views
Ubuntu 17.10 lid close: different behaviors on AC or battery? [duplicate]
I would like different behaviors on lid closing depending on AC is plugged (do nothing) or not (suspend). My laptop is a DELL Latitude under 64-bit Ubuntu 17.10. What I already tried:
Using GNOME ...