Artix Linux Forum

Init systems => runit => Topic started by: esp42089 on 19 January 2021, 18:58:02

Title: Suspend from i3 not waking as expected
Post by: esp42089 on 19 January 2021, 18:58:02
Hi all,

I've remapped mod+shift+e in my i3 config to suspend my computer by replacing the default:

Code: [Select]
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'

with this:

Code: [Select]
bindsym $mod+Shift+e exec loginctl suspend

and it seems to suspend correctly, but on wake up it will briefly wake and then immediately suspend again. If I wake it a second time, everything wakes as expected - it doesn't get trapped in a suspend loop. Any thoughts on why this is happening?

Thanks!
Evan

EDIT: I put this in the runit category because I am using runit and I think this suspend behavior is coming from runit at some level.