[OPEN] Cannot get my ThinkPad X220 to suspend on lid close

Post Reply
Lenny McLennington
recruit crewman
Posts: 1
Joined: Sat Jul 17, 2021 1:57 am

[OPEN] Cannot get my ThinkPad X220 to suspend on lid close

Post by Lenny McLennington »

I'm having trouble getting my ThinkPad X220 to suspend on lid close. I have set the option in /etc/systemd/logind.conf

Code: Select all

HandleLidSwitch=suspend
HandleLidSwitchExternalPower=suspend
but there is no suspend when I close the lid.

loginctl actually logs that the lid is opening and closing and I can see in journalctl that it correctly identifies the lid close and open events.

The journalctl output from logind when I close the lid and then open it says:

Code: Select all

Lid closed.
sd-device-enumerator: Scan all dirs
sd-device-enumerator: Scanning /sys/bus
sd-device-enumerator: Scanning /sys/class
Handling of handle-lid-switch (edge) is disabled, taking no action.
sd-device-enumerator: Scan all dirs
sd-device-enumerator: Scanning /sys/bus
sd-device-enumerator: Scanning /sys/class
Handling of handle-lid-switch (level) is disabled, taking no action.
Lid opened.
I don't understand what it means for handle lid switch to be disabled, because I thought I enabled it to take an action on lid close when I edited the config file. Suspending manually works just fine too.

I'm using GNOME if that is relevant. I checked GNOME Tweaks too and the suspend on lid switch is enabled there.

It also worked fine with the same logind configuration options on the previous distro I was using (Artix), so I am confused why it doesn't work now.

User avatar
erikdubois
Captain
Posts: 4578
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:

Re: Cannot get my ThinkPad X220 to suspend on lid close

Post by erikdubois »

Great that you can compare

Reinstall artix and investigate the difference

or

see how gnome can help you - settings or extra software

Did you check this one?

Image

and this

https://wiki.archlinux.org/title/Power_ ... _hibernate
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

Wursibum
recruit crewman
Posts: 1
Joined: Mon Oct 18, 2021 10:00 am

Re: Cannot get my ThinkPad X220 to suspend on lid close

Post by Wursibum »

I experience the exact same problem.
Fresh install of Arcolinux -B with gnome (beginner installation)

Device: Thinkpad X1 Carbon gen9.

Never had this issue before. But like described before, when the lid is closed the device does not go into suspend.
Login.d looks like it should. Everything on ignore. Gnome Tweaks is installed and when lid is closed is enabled.

But still when I close the lid:

Code: Select all

Okt 18 09:48:58  systemd-logind[574]: Lid closed.
Okt 18 09:49:01  systemd-logind[574]: Lid opened.
No reactions. systemctl sleep puts the device into sleep, like it should.

Edit: I just noticed: It does work with AC plugged in. Only on battery this problem occur.
Last edited by Wursibum on Mon Oct 18, 2021 10:22 am, edited 1 time in total.

gédéhem
recruit crewman
Posts: 1
Joined: Sun Nov 21, 2021 1:16 am

Re: [OPEN] Cannot get my ThinkPad X220 to suspend on lid close

Post by gédéhem »

I have the same issue, also Gnome, on an XPS 13

Suspend works on AC, but not on battery.

User avatar
erikdubois
Captain
Posts: 4578
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:

Re: [OPEN] Cannot get my ThinkPad X220 to suspend on lid close

Post by erikdubois »

Try another desktop - see if it is desktop related or system related
Plasma maybe
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

Post Reply

Return to “Laptop”