Skip to content

ThinkPad Suspend from Xorg

I have a new thinkpad e495 and I am trying to make suspend work.

When I suspend using systemctl suspend it suspends and wakes up correctly.

​

When I suspend in lightdm (using the first button in the power menu) it works. Note that I hope that this is what the first button does as in German it says "Ruhezustand". However I am pretty sure it does if I've understood the source code https://git.launchpad.net/lightdm-gtk-greeter/tree/src/lightdm-gtk-greeter.glade correctly ( I do not have deep knowledge of Gtk) This also works when logging into my Account and switching back to the greeter

​

When I suspend from my X session (using systemctl from a terminal emulator) it suspends but doesn't wake up correctly. In fact, the powerbutton goes bright again but the screen is black. I cannot switch to any terminal session using alt+fX

I am using lightdm-gtk-greeter, i3gaps, xorg, picom and amd drivers. I have not specified the swap partion in the kernel parameters (which should only be necessary for hibernate and anyway, it works outside of my x session)

This happens both when using startx and when using the displaymanager

​

Thank you!

2 points15 comments
Open on Reddit
About this post
Posted
Archived
Score
2 · 100% up
Kind
Text
ID
ek3872

Author

39
posts
216
comments
3
media
View profile

15 comments

Got the same problem on my e495. It won’t wake up from suspend when logged into a xsession. The journal also does not show that it tried anything. Unfortunately I did not have the time to investigate this issue further. Hope to take a look the next couple of days though.

2 points

Yeah, I also haven't found anything with journalctl. Please tell me if you find anything out. Maybe it's time to consult the arch forums

1 points

I just checked again and with kernel 5.4.7 suspend works for me. Did not work before though. Which kernel version are you on?

1 points

Have you installed and started/enabled acpid[1]?

[1] https://wiki.archlinux.org/index.php/Acpid

1 points

I hadn't. Now I have and it seems to work. However, it had worked yesterday as well once so.

But thank you anyways.

1 points

Did you only install & enable acpid or did you configure it as well. Installed it & enabled it. But resume still does not work... I only see some weird glitch pixels when the backlight comes back up ... but than nothing else happens.

1 points

I had the same problem with my E495 up until now. Well, without it working sometimes... It just never really worked for me...

Now, that i have installed the acpid, it works flawlessly! :D

I wish you best of luck, and a happy new year!

1 points
unknown author3 hidden

Sorry, no solution here. But just interested, suspend (to RAM) works out of the box for your Thinkpad? Or did you need to do extra stuff? Curious because I also have a recent Thinkpad. And I've never actually suspend my laptop on linux in my whole life.

Just tried it, with xfce menu's "Suspend". It works. When I pressed the power button again, it presents me the blank lock screen from slock.

1 points

So for me it works in lightdm and in text mode, but not when logged into a graphical session.

I do also not know with what command I could trigger lightdms suspend (I would like to go to the greeter and then suspend)

1 points
unknown author1 hidden

lightdm

I see, I don't use a display manager. So I can't test it. But the default one offered by xfce works for me, which I'm pretty sure is just "systemctl suspend".

The only annoying thing is, the loud pop sound from connected speakers when suspending and unsuspending the laptop.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.