You are not logged in.

#1 2019-09-05 10:26:37

shak
Member
Registered: 2009-03-16
Posts: 405

systemctl suspend works but using that command with i3lock doesn't

Hi guys

I am using this code as per the archwiki

#power options
set $Locker i3lock && sleep 1

set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
mode "$mode_system" {
    bindsym l exec --no-startup-id $Locker, mode "default"
    bindsym e exec --no-startup-id i3-msg exit, mode "default"
    bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default"
    bindsym h exec --no-startup-id $Locker && systemctl hibernate, mode "default"
    bindsym r exec --no-startup-id systemctl reboot, mode "default"
    bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"  

    # back to normal: Enter or Escape
    bindsym Return mode "default"
    bindsym Escape mode "default"
}

bindsym $mod+Pause mode "$mode_system"

The system goes to sleep with suspend command but after waking up all i see is a white screen and when i press enter it says "Verifying" and then "Wrong" and i have to hard reboot

If i run the command on xterm systemctl suspend it works ok.

Any ideas?

Last edited by shak (2019-09-05 10:27:04)

Offline

#2 2019-09-05 10:36:37

zaxdan69
Member
Registered: 2016-06-04
Posts: 318

Re: systemctl suspend works but using that command with i3lock doesn't

deleted...

Last edited by zaxdan69 (2019-09-05 10:37:57)

Offline

#3 2019-09-05 13:06:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,400

Re: systemctl suspend works but using that command with i3lock doesn't

Try to "sleep 1" ahead to allow you to release the key in case i3lock freaks out on an active grab.

Offline

Board footer

Powered by FluxBB