It looks like the pam_elogind.so is not being used by default when built with USE=pam, or at least is not used when one login via agetty. I've checked both elogind versions that are currently in portage (239.3 and 238.2), on two systems. Running sys-libs/pam-1.3.1-r1 with sys-auth/pambase-20150213-r2. elogind installs /etc/pam.d/elogind-user with: # This file is part of systemd. # # Used by systemd --user instances. account required pam_unix.so session required pam_loginuid.so session optional pam_keyinit.so force revoke session optional pam_elogind.so Which seems to not be enough to use trigger elogind upon login. Here I had to add `session optional pam_elogind.so` to `/etc/pam.d/system-auth`. After that logging on tty got me elogind running, as well as $XDG_ variables like XDG_SEAT or XDG_SESSION_ID.
(In reply to Piotr Karbowski from comment #0) > Which seems to not be enough to use trigger elogind upon login. Here I had > to add `session optional pam_elogind.so` to `/etc/pam.d/system-auth`. This is already the case if you build sys-auth/pambase with USE=elogind.
And here I was sure that I had already updated @world set with USE=elogind. Sorry about that.