Suspend/sleep after specific time

Hello,
I am using Openbox as a window manager
I want to suspend/sleep the laptop after a specific time but it is not working via the power manager setting it only works in Xfce is there any other way to do this in Openbox?
Any help would be appreciated

1 Like

You could use cron.d to run systemctl suspend at a certain time..

1 Like
1 Like

Strange, I wonder how it's possible :thinking:. You may like one of these 2 to be able to do it :point_down:


At a certain time I actually mean some time after inactivity/idle :sweat_smile:

1 Like

The screen does turn on the screen saver and lock the system but does not suspend and when I log back in I get this error
Screenshot_2022-12-30_20-58-26

1 Like