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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Lenovo flex 5 lid close doesn't suspend laptop on Ubunu 22.04 and Budgie

My Lenovo laptop flex 5 doesn't trigger suspend (or hibernate for that matter) although I have updated setting to following (removed comment): /etc/systemd/logind.conf HandleLidSwitch=suspend ...
0 votes
0 answers
9 views

After Lid open, touchpad is not enabled Ubuntu 22.04 and Budgie on my Lenovo Flex 5

I have been struggling with this annoying problem for long time and none of the suggestions on the forum and search haven't solved it. I'd appreciate any help that can lead me to the solution. I can ...
3 votes
2 answers
10k 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 #...
1 vote
0 answers
148 views

Lenovo legion slim 5 shuts down when lid closed

I use Ubuntu 22.04.4 on Lenovo legion slim 5 16APH8. I would like to have my laptop go in suspend mode when I close the lid. But I have a problem: When I close the lid of the laptop, there is always a ...
0 votes
0 answers
52 views

Disconnect lid switch Ubuntu

I have a lot of problems with the lid switch events with my laptop (lenovo legion slim 5, Ubuntu 22.04.4). So I would like to know if there is a way to completely disconnect the lid switch and make it ...
0 votes
0 answers
51 views

Screen Flickers Between Video and Login Screen After Reopening Laptop Lid

Hello Ubuntu Community, I'm encountering a perplexing issue on my Ubuntu system that I hope someone can help me troubleshoot. Whenever I'm watching a video in full-screen mode and then close my laptop ...
0 votes
0 answers
31 views

ubuntu server login doesn't appear when lid is open on a old MacBook Pro 201

I've installed Ubuntu Server 22.04 on an old MacBook Pro 2010 i7 to use it as home server. Everything seams working properly, I'm able to connect to Mac via ssh but when I try to use it directly, ...
0 votes
0 answers
76 views

Backlight of built-in display turns off when laptop lid is moved downwards from a certain angle

I want to prevent backlight of built-in display from turning off when laptop lid is moved downwards ( not even complete close, just downward movement ) from a certain angle via Ubuntu. The external ...
0 votes
1 answer
213 views

How to lock pc when lid is closed Ubuntu 22.04 LTS?

I've installed Ubuntu 22.04.3 LTS and configured all my environments, but when I was about to close my laptop lid, I encountered an issue. Instead of suspending, the external monitor continues to ...
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/...
1 vote
1 answer
377 views

(23.04) OS crashes after waking from suspend/reopening lid

I recently bought Huawei MateBook d16 (on intel i5 12450H, LPDDR4x) and did clean install of Ubuntu 23.04. Everything is great except when I resume from suspend or when I reopen the lid, the OS either ...
1 vote
0 answers
50 views

Ubuntu GUI doesn't appear after lid is opened from suspend

I have tried all the possible tricks/suggestions that appear on Google but still unable to solve this issue. I have a HP Victus laptop with Nvidia RTX 3050 Ti GPU. The same problem happened on Ubuntu ...
0 votes
0 answers
39 views

Keep suspended on lid closed

I have a lap top with Ubuntu v22.10 Mate v1.26.0 When I close the lid it suspends, but then regularly wakes up again without opening the lid (which can lead to a very hot bag, and a drained battery) I ...
4 votes
2 answers
1k 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 ...
0 votes
0 answers
30 views

My PC switch on alone when i close the lid to let it go in stand by (after some hours)

I'm using Ubuntu 22.04 and I know closing the lid is not the best solution to put the pc in stand by, but when I do and i let it go for some hours, I find it compleatly discharge. Last night happened ...
0 votes
0 answers
65 views

Black screen after closing lid and opening back, no response until hooked to power

After I close the lid for a couple seconds using Ubuntu 22.04 LTS - freshly installed today, and reopening - the screen is permanently black, pressing keys does not work, pressing/long pressing the ...
0 votes
0 answers
20 views

Duplicate closed lid behaviour having the laptop lid open?

How to duplicate the closed lid behaviour while having the laptop lid open? Wish to have display off on demand when running certain apps, with a remote screen. $ xrandr --output --off This command ...
1 vote
0 answers
110 views

How to lock the screen when the laptop lid is closed in Ubuntu 23.04?

I have the following entries in /etc/systemd/logind.conf: HandleLidSwitch=lock HandleLidSwitchExternalPower=lock but it doesn't help even after reboot.
1 vote
0 answers
3k views

How to configure lid close action as hibernate in Ubuntu 20.04?

I want to configure my laptop (ASUS UX461UN) to go to hibernate when I close the lid. I tried 3 basic suggestions that I saw as a result of my research. Run command sudo -H gedit /etc/systemd/logind....
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 ...
1 vote
1 answer
382 views

Closing laptop lid freezes touchpad

Laptop touchpad freezes if lid is closed. I observed this in Kubuntu 16.04, 18.04 and 18.10 fresh installs. Suspend/Hibernate causes no such issues. After a bit of search, I found some similar cases ...
0 votes
1 answer
2k views

ThinkPad T14 Gen 3 Type 21CF BIOS/firmware issue with laptop lid close and suspend

I recently bought a ThinkPad T14 Gen 3 Type 21CF. Here's a link to the Lenovo product page: link Here's what I did: I have Ubuntu 22.04 installed. I ran: sudo fwupdmgr update I did this because my ...
1 vote
0 answers
1k views

Laptop: close lid, turn screen of but keep RDP enabled (Ubuntu 22.04.1 LTS)

I'm running Ubuntu 22.04.1 LTS on an old laptop. From windows, I can connect with the RDP-protocol, no problem. To save some energy: I want to have my screen blank, but in that case, I can NOT connect ...
0 votes
1 answer
216 views

Dell XPS 9310 2 in 1 will not suspend on lid close

I'm running Ubuntu 20.04.2, kernel 5.8.0-59-generic on an XPS 9310. I've come across a number of questions related to the inability to wake from a suspended state, but I'm having the exact opposite ...
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 ...
0 votes
0 answers
127 views

Completely disable LID sensor events on Ubuntu 20

TLDR: I've tried changing both logind and upower configuration files to ignore lid closing action, I tried disabling it via /proc/acpi/wakeup, I tried gnome tweaks and I checked even if it can be ...
0 votes
1 answer
649 views

What controls lid switch settings in GNOME?

I've just switched from the usual Unity Ubuntu to Gnome on my Dell XPS 9550 after being convinced by the hype, and frustrated by the litany of bugs I've spent years tolerating in Unity. In my long, ...
0 votes
0 answers
661 views

Ubuntu 22.04 LTS Sleeping issues after upgrade

When I close my laptop it sometimes hangs after trying to suspend. Kernel version is 5.15.0-41-generic. Ubuntu Version is Ubuntu 22.04 LTS & I upgraded from Ubuntu 20.04 LTS Half of time it works. ...
0 votes
1 answer
1k views

Keep Bluetooth Turned on while laptop goes on Sleep Mode

I just want my laptop to go in Sleep mode while keeping the Bluetooth turned on. Keeping the whole system on while the lid is closed, it drains battery pretty fast!! Is there any way to do so???
1 vote
0 answers
927 views

Any Ubuntu 22.04 software freezes every time the laptop lid opens

I have a Toshiba Satellite A305-S6905 whose previous software was Ubuntu 22.04 and is currently running on Ubuntu Budgie 22.04 and every time I try to open the laptop lid, It freezes no matter what. I ...
0 votes
1 answer
512 views

Inspiron 15 3525 w/new Ubuntu install won't turn on after closing lid

A dear friend, disabled Vietnam vet, had to replace his old computer, and bought a Dell Inspiron 15 (3525) and asked me to put Ubuntu on it. After a somewhat fraught install process (BIOS in this ...
0 votes
0 answers
193 views

Black screen after shutting lid on Ubuntu

When I close the lid on my HP computer and re-open it then screen remains black and no matter what button I press - I always have to resort to holding the powerbutton down for 10 seconds to shutdown ...
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-...
0 votes
0 answers
407 views

Mi Notebook Pro (Ubuntu 20.04) does not turn back on after lid open

Installed Ubuntu 20.04 (LTS) on my new Mi Notebook Pro (14", Core-i5, 16/512GB, Iris Xe graphics). It does suspend when the lid is closed but not turning back on once the lid is opened. I tried ...
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 ...
0 votes
0 answers
429 views

Use pm-suspend instead of suspend on lid close

From testing on my Ubuntu 20.04 Thinkpad P51 laptop (Quadro M1200 running proprietary driver 510.39.01), systemctl suspend will only suspend for a few seconds then wake again, while sudo pm-suspend ...
0 votes
0 answers
65 views

Laptop Lid Behaviour

I want my laptop running Ubuntu Server 20.04.3 LTS to not shut off when closing the lid. All the answers I've found involve the GUI which I do not have. Is there a command to change this?
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 ...
0 votes
1 answer
631 views

Ubuntu 20.04.3 with issues in Acer Nitro 5 with Ryzen 7 (Lagging/freezing UI response to I/O, lid closing behavior)

I've recently bought an Acer Nitro 5 laptop with AMD Ryzen 7 4800H and GTX 1650Ti,that came with Windows 10 as its operating system, and installed Ubuntu 20.04.3 to it, in a dual boot configuration. ...
0 votes
1 answer
807 views

Can't ping or remote connect to Ubuntu 18.04 when I close computer lid

I've set up an old laptop (dell e6330) with Ubuntu 18.04 Desktop. I want to be able to stash the machine in a closet but be able to have it continue to run as a server and also be able to remote ...
3 votes
2 answers
3k 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 ...
0 votes
1 answer
349 views

Laptop randomly thinks lid is closed

I have an issue whereby my laptop randomly turns my screen off or logs me out. From /var/log/auth.log it seems that the system thinks the lid is closed: Sep 15 09:36:44 michael-Latitude-7280 systemd-...
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
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.
0 votes
0 answers
51 views

Black screen with unblinking cursor on sleep [duplicate]

I have a Lenovo Ideapad 310 wit an NVIDIA 920M graphics card. I recently dual booted Ubuntu and I didn't have any problems. I've never put my laptop to sleep nor closed the lid without shutting it ...
1 vote
0 answers
261 views

Refresh rate slows to 1 FPS/ unusable when I close the lid on my laptop Dell Precision 7530 and use external monitors after upgrade to Ubuntu 21.04

After upgrade from Linux Ubuntu 20.10 to Ubuntu 21.04 on a Dell Precision 7530, with Nvidia drivers correctly installed and reporting correctly using recommended nvidia-driver-470. With a laptop lid ...
0 votes
1 answer
415 views

Cannot disable airplane mode on laptop with faulty lid sensor

Problem : Unable to disable airplane mode. It says use hardware switch to turn off. OS : Ubuntu 20.04.1 LTS Laptop Model : HP 15 r074tu Description : The lid sensor of of laptop is not working. In ...
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 -...
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 ...
1 vote
0 answers
171 views

Ubuntu won't completely ignore lid closing

TLDR: I've tried changing both logind and upower configuration files to ignore lid closing action and it still keeps detecting it and acting on it. I'm trying to use an old laptop as a local Plex ...