xorg-server itself does not need libelogind/libsystemd to invoke the
logind D-Bus API. elogind/systemd-logind works for Xorg server when you
login: once you've logged in on a TTY, pam_systemd or pam_elogind
invokes systemd-logind or elogind to modify the ACL of the device node
of GPU for you:
$ getfacl /dev/dri/card1
getfacl: Removing leading '/' from absolute path names
# file: dev/dri/card1
# owner: root
# group: video
user::rw-
user:xry111:rw-
group::rw-
mask::rw-
other::---
Note that the "user:xry111:rw-" line allows the user logged in (in this
example, xry111, my user account) to operate on the GPU. If
systemd-logind or elogind is not installed, there will be no such a line
and you need to setuid bit for Xorg executable, which is not
recommended.
FWIW logind is smart enough not to add the ACL entry if you've logged in
via SSH.
You may need to logout and login again to use startx if you've installed
pam_{elogind,systemd} and Xorg server & xinit in a continous login
session, but this is already mentioned on xorg-config.xml.
You may ask why Xorg server links to libsystemd or libelogind. It uses
sd_notify and sd_listen_fds API so the Xorg server can function as a
socket-activated systemd service. This is useless in SysV: elogind is
a logind, not a service manager. In Systemd the libsystemd.so installed
in LFS should be enough, and we've never provided instructions to run
Xorg server in BLFS as a systemd service.
Reported-by: Rainer Fiebig <jrf@mailbox.org>
I know it is somewhat useless, but I don't like them for
two reasons: first they cannot be seen, and I do not like things I
cannot see. Second, git highlights them, and this is disturbing...
In the process, some attributes in single quotes have been changed to double
quotes, and a few attribute lists have been written on one line instead of
several lines.
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24236 af4574ff-66df-0310-9fd7-8a98e5e911e0
Update to systemd-247
Update to nano-5.4
Update to libtirpc-1.3.1
Update to GnuTLS-3.7.0
Adapt xf86-input-wacom to udev changes
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23955 af4574ff-66df-0310-9fd7-8a98e5e911e0
Update to mesa-19.3.4.
Update to wayland-1.18.0.
Tag most of xorg (not all drivers) and xorg dependencies.
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22699 af4574ff-66df-0310-9fd7-8a98e5e911e0
Update to ModemManager-1.12.4.
Update to nss-3.49.1.
Update to xorg-server-1.20.7.
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22576 af4574ff-66df-0310-9fd7-8a98e5e911e0
Update to stunnel-5.56.
Update to xorg-server-1.20.6.
Update to tcl8.6.10 and tk-8.6.10.
Update to pcre2-10.34.
Update to libtasn1-4.15.0.
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22400 af4574ff-66df-0310-9fd7-8a98e5e911e0
avoid using the suid bit on the Xorg application. Add a note
to xinit on why using Xorg with the suid bit set may be useful.
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@21892 af4574ff-66df-0310-9fd7-8a98e5e911e0
Update to libinput-1.13.3.
Update to libevdev-1.7.0.
Update to xorg-server-1.20.5.
Update to xkeyboard-config-2.27.
Update to encodings-1.0.5 (Xorg Font).
Update to harfbuzz-2.5.3.
Update to libuv-v1.30.0.
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@21780 af4574ff-66df-0310-9fd7-8a98e5e911e0
BLFS/branches/old-trunk-20190627 and BLFS/branches/old-bootscripts-20190627.
Move BLFS/branches/elogind-book and BLFS/branches/elogind-bootscripts
to trunk.
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@21754 af4574ff-66df-0310-9fd7-8a98e5e911e0
Update to lxrandr-0.3.2.
Update to lxsession-0.5.4.
Update to libatomic_ops-7.6.10.
Update to upower-0.99.10.
Update to libvdpau-1.2.
Update to xorg-server-1.20.4.
Update to mesa-18.3.4.
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@21274 af4574ff-66df-0310-9fd7-8a98e5e911e0