Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: swayidle 1.6 - no "before-sleep" support (Read 1131 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

swayidle 1.6 - no "before-sleep" support

With swayidle-1.6 I'm now getting: "before-sleep not supported: swayidle was compiled with neither systemd not elogind support".

I'm guessing this isn't intentional?

Re: swayidle 1.6 - no "before-sleep" support

Reply #1
I am using it and I don’t get no error. You can look at my sway config and see how mine is. https://GitHub.com/ndowens/sway_wm I am also using that version

Re: swayidle 1.6 - no "before-sleep" support

Reply #2
Are you using the artix package from Galaxy, or the one from the arch 'community' (or compiled from source)?

Re: swayidle 1.6 - no "before-sleep" support

Reply #3
Are you using the artix package from Galaxy, or the one from the arch 'community' (or compiled from source)?
Hmm I believe I installed galaxy


Re: swayidle 1.6 - no "before-sleep" support

Reply #5
Funny thing for me it says both are installed galaxy and community
Well, I checked the sources, and this particular error message is only emitted inside an #ifdef: https://github.com/swaywm/swayidle/blob/d423eed84f5a62c6d82a7013a37810045fd35314/main.c#L464

I.e there's an issue with how the latest version of swayidle (1.6-1) in galaxy was compiled.

Re: swayidle 1.6 - no "before-sleep" support

Reply #6
Pacman -Ss will tag both variants as installed. Pacman -Qi should tell you which one it really is.

 

Re: swayidle 1.6 - no "before-sleep" support

Reply #7
I see the issue. This needs to have elogind as a make dependency. Thanks for reporting this.


Re: swayidle 1.6 - no "before-sleep" support

Reply #9
Just pushed a new version to galaxy, so you should be able to get it on the next mirror sync.

Re: swayidle 1.6 - no "before-sleep" support

Reply #10
Works great. Thanks for the super quick fix!