You are not logged in.
Pages: 1
I've noticed that my laptop no longer goes to sleep when the lid is closed. I can't say when this problem first occurred but suspending used to work flawlessly. Hibernation still works by the way.
When clicking on Suspend in the Gnome notification bar menu, the following error is logged:
gnome-shell[1813]: JS ERROR: Error: The suspend action is not available!
activateSuspend@resource:///org/gnome/shell/misc/systemActions.js:463:19
_init/<@resource:///org/gnome/shell/ui/status/system.js:179:33
addAction/<@resource:///org/gnome/shell/ui/popupMenu.js:616:21
activate@resource:///org/gnome/shell/ui/popupMenu.js:195:14
_init/<@resource:///org/gnome/shell/ui/popupMenu.js:112:24
@resource:///org/gnome/shell/ui/init.js:21:20
I then tried to put the machine to sleep manually with `systemctl suspend` which prints a similar message to stdout:
Call to Suspend failed: Sleep verb 'suspend' is not configured or configuration is not supported by kernel
After a fair bit of googling and searching through the Arch forum I'm at a loss. The Arch wiki only goes as far as stating that
systemctl suspend should work out of the box.
Apart from setting up hibernating to a swapfile (which as I said still works) I haven't made any changes to the default systemd sleep configuration. In case it's relevant, I've got the following additional kernel parameters set (again, this config used to work):
mem_sleep_default=s2idle nvme.noacpi=1
What could be the cause of this?
Last edited by flow-c (2024-04-11 07:21:55)
Offline
I think I've got to the bottom of it. Turns out I had made config changes that I'd forgotten about.
Anyway, `systemd-sleep` gave me a more useful error message:
/usr/lib/systemd/systemd-sleep suspend
/etc/systemd/sleep.conf.d/99-hybrid-sleep.conf:20: Support for option SuspendMode= has been removed and it is ignored
The deprecated options are documented in systemd's v255 changelog.
Offline
Pages: 1