Skip to content

Cannot suspend: Failed to lock the screen

Hey folks,

I've recently upgraded from Fedora 33 to Fedora 35 with Xfce 4.16 (xfce4-session 4.16.0).

When I attempt to suspend the computer via the Log out screen or via command line, I cannot.

I see a popup window that either says Failed to lock the screen or Received error while trying to log out GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Type of message, "(yb)", does not match expected type "(b").

The terminal output is:

Received error while trying to log out, error was GDBus.Error:org.xfce.SessionManager.Error.Failed: Failed to lock the screen.

My lock command is slock via:

xfconf-query -c xfce4-session -p /general/LockCommand -s slock

Running plain slock works. When I disable screen locking on suspend, I can successfully suspend.

I was searching the error and found:

But no luck figuring out how to fix this. Is it possible that this is a bug/regression in 4.16?

Thanks for help

Edited by Theo Linkspfeifer