# Closing Lid in Linux Does not Send Sleep Signal

**URL:** <https://community.frame.work/t/closing-lid-in-linux-does-not-send-sleep-signal/15719>\
**Category:** Linux\
**Created:** [February 24, 2022, 7:46pm UTC](https://community.frame.work/t/closing-lid-in-linux-does-not-send-sleep-signal/15719 "2022-02-24T19:46:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabriel\_Woloz](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@Gabriel\_Woloz](https://community.frame.work/u/Gabriel_Woloz)\
**Post date:** [February 24, 2022, 7:46pm UTC](https://community.frame.work/t/closing-lid-in-linux-does-not-send-sleep-signal/15719/1 "2022-02-24T19:46:03Z")

</div>

I have had my Framework DIY edition for a few weeks now and I noticed that closing the lid does not send a sleep signal to the computer. When the laptop detects that the lid is closed, the keyboard, power button light, and trackpad are all disabled, but the screen remains on and the computer keeps running. In the KDE power management settings, it does not have an option for ‘lid close’ actions as it should, so I think the OS doesn’t recognize that the computer has this function. Has anyone else experienced this? My secure boot is disabled. Specs Below:

OS: EndeavourOS Linux  
Kernel: 5.16.10-zen (but the problem persists in the regular and LTS kernels)  
DE: KDE

---

<div class="post-metadata">

**Author:** ![Nils](https://avatars.discourse-cdn.com/v4/letter/n/d6d6ee/32.png) [@Nils](https://community.frame.work/u/Nils)\
**Post date:** [February 24, 2022, 8:45pm UTC](https://community.frame.work/t/closing-lid-in-linux-does-not-send-sleep-signal/15719/2 "2022-02-24T20:45:04Z")

</div>

Lid closing works for me using Gnome on Fedora 35. Oddly enough, the standard “settings” have an option to select what to do on the power button but not for a lid close event. Gnome Tweaktool does have an option for that.

If your system runs under systemd, it might be that `/etc/systemd/logind.conf` helps. The options there for me are:

```auto
#HandleLidSwitch=suspend
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore

```

and indeed, if I close the lid while plugged into my USB-C Hub Monitor, the laptop does _not_ suspend. I haven’t changed any of the default settings on this, but perhaps this gives you some searchable terms to find more information.

---

<div class="post-metadata">

**Author:** ![D.H](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/d.h/32/17958_2.png) [@D.H](https://community.frame.work/u/D.H)\
**Post date:** [February 25, 2022, 2:01am UTC](https://community.frame.work/t/closing-lid-in-linux-does-not-send-sleep-signal/15719/4 "2022-02-25T02:01:52Z")

</div>

Seeing the same issue, and additionally selecting “sleep” from the main menu does not actually sleep the computer either.

Sleep command from the command line does seem to work though.

Also on EndeavourOS, plasma desktop, etc

---

<div class="post-metadata">

**Author:** ![supernintendo](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/supernintendo/32/3645_2.png) [@supernintendo](https://community.frame.work/u/supernintendo)\
**Post date:** [February 25, 2022, 2:13am UTC](https://community.frame.work/t/closing-lid-in-linux-does-not-send-sleep-signal/15719/5 "2022-02-25T02:13:19Z")

</div>

This just started happening for me on Arch Linux 5.15.24-2-lts. Closing the lid does nothing… like it doesn’t sleep or even turn off the internal display. Does anyone have ideas? It’s really annoying with a multi-monitor setup.

Edit: Seems to be a bug in the `upower` package:

- [Laptop lid not recognized anymore (#174) · Issues · upower / upower · GitLab](https://gitlab.freedesktop.org/upower/upower/-/issues/174)
- [FS#73942 : [upower] Laptop screen no longer turned off when lid is closed and docked](https://bugs.archlinux.org/task/73942)

---

<div class="post-metadata">

**Author:** ![OTee](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/otee/32/7363_2.png) [@OTee](https://community.frame.work/u/OTee)\
**Post date:** [February 25, 2022, 2:24pm UTC](https://community.frame.work/t/closing-lid-in-linux-does-not-send-sleep-signal/15719/6 "2022-02-25T14:24:50Z")

</div>

Also experiencing this same issue like many others thanks to `upower` 0.99.16-1. Also on Endeavour OS on the latest lts kernel.

Thanks for the links @supernintendo, seems like this is affecting many devices from those comments, not just Frameworks. It looks like the issue has been recently fixed upstream: [FD handling fixes (!121) · Merge requests · upower / upower · GitLab](https://gitlab.freedesktop.org/upower/upower/-/merge_requests/121)

Hopefully we will be seeing an update with this fix coming down to us soon.

---

<div class="post-metadata">

**Author:** ![Gabriel\_Woloz](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@Gabriel\_Woloz](https://community.frame.work/u/Gabriel_Woloz)\
**Post date:** [February 27, 2022, 6:53pm UTC](https://community.frame.work/t/closing-lid-in-linux-does-not-send-sleep-signal/15719/7 "2022-02-27T18:53:14Z")

</div>

I just solved this problem. I saw that people had success downgrading upower (Thanks @supernintendo) and I was able to get the option back into the KDE settings by doing the following:

```auto
$ sudo pacman -Rdd upower
$ yay -S upower-git
$ reboot

```
