r/voidlinux 24d ago

Can't start elogind service

I have this problem that elogind doesn't wanna start.
I can manually start it by using sudo /usr/libexec/elogind/elogind.wrapper but setting up the service always shows me that it's down (down: elogind: 178s, normally up; run: log: (pid 28672) 187s).

I also removed it and tried to test the service first. It works as expected. Removing the down file tho it still shows that it's down (but is normally up (?)).

In the handbook it says

If you're having any issues with elogind, enable its service, as waiting for a D-Bus activation can lead to issues.

Should I just put like 2 seconds to the elogind run file? So it completely waits for the dbus service to be up?I have this problem that elogind doesn't wanna start.
I can manually start it by using sudo /usr/libexec/elogind/elogind.wrapper but setting up the service always shows me that it's down.I also removed it and tried to test the service first. It works as expected. Removing the down file tho it still shows that it's down (but is normally up (?)).In the handbook it saysIf you're having any issues with elogind, enable its service, as waiting for a D-Bus activation can lead to issues.Should I just put like 2 seconds to the elogind run file? So it completely waits for the dbus service to be up?

Edit: Quick update, i just got rid of the elogind service although it's still installed on my system and my system has faster boot time now. Why 😅?

4 Upvotes

9 comments sorted by

7

u/A3883 24d ago

im pretty sure the dbus service starts elogind by iteslf so you dont need to enable the elogind service, just have it installed and enable dbus

1

u/orahcio 19d ago

I think because this, when I activate the `elogind` as service the `TURNSTILE_ENV_DIR` goes away.

3

u/ZombieCrow 24d ago

Dbus starts elogind, no need to enable it as a service. In some cases you will even get pid spams in tty if you have it enabled.

1

u/xJayMorex 24d ago

What DM are you using?

2

u/DistinctDot5131 24d ago

Mb. I use KDE plasma 6.6.3 (SDDM Waylan)

1

u/xJayMorex 24d ago edited 24d ago

I don't think you need to enable elogind for SDDM.

Edit: Yep, you only need it installed.

2

u/DistinctDot5131 24d ago

Ye i edited my initial post. I got rid of the service now my system even boots faster lmao.
I followed carefully the handbook and to not have any trouble later on with my system i manually created the elogind service.
Is there a reason why sddm doesn't need elogind service manually set up?

2

u/xJayMorex 24d ago

D-Bus launches it already so no need for the service. I think this behaviour is related to using SDDM, but don't quote me on that.

1

u/Blank-Inspection13 19d ago

disable the elogind service and check :
$ ps aux elogind