Suspend from shell

As the smallest idle time for automatic suspend is 15 minutes, is there a way to kick suspend from shell command?

try systemctl suspend. Works on Librem 5

2 Likes

You might have to do systemctl suspend -i if something is inhibiting suspend. Be careful using the -i option though.

1 Like

There’s also a suspend entry in the power menu: pull down top-bar, power-button on the right.

And since you use shell anyway: you can reduce the suspend time via org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout gsetting.

2 Likes

Thanks. This works fine:

   $ gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout
   900

   $ gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 120

   $ gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout
   120
1 Like