I3- i3lock & suspend

Good Afternoon

I can’t get my system to suspend after any amount of time. The power savings for display work fine

exec --no-startup-id xset s 480 dpms 600 600 600

The default config setting didn’t work and I modified slightly and it’s not working either

exec --no-startup-id xautolock -time 20 -locker "i3lock -n && systemctl suspend"

Good Afternoon @Garrick,
It seems to me (see man xautolock) that full paths are needed for xautolock.
For locking & suspend I tested
bindsym $mod+x exec --no-startup-id "i3lock -i ~/Pictures/pcarmona_road.png", mode default; exec --no-startup-id /bin/systemctl suspend, mode "default"

I had more success with xidlehook

yay -S xidlehook

exec --no-startup-id ~/.config/i3/scripts/xidlehook.sh &
This script is almost the same as it is under the link above.