Skip to contentSkip to conversation

xserver-xorg: Always disable systemd-logind.

PATCH In review Randy Witt 2 participants 2 messages Jan 16, 2015 – Jan 17, 2015

lore
Share & tools
lore

Randy Witt

author
#0 lore raw

PATCH 1/1 xserver-xorg: Always disable systemd-logind.

Without a dm to handle the session management systemd-logind can make it difficult for X to gain ownership of devices and behave properly.

Since X seems to work without enabling systemd-logind, always disable it for now, and we can revisit it if we ever want to try to take advantage of multi-user sessions/seats.

[Yocto # 7100]

---
 meta/recipes-graphics/xorg-xserver/xserver-xorg.inc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
meta/recipes-graphics/xorg-xserver/xserver-xorg.inc +2 -3
index 5b47e34..6154295 100644
@@ -114,10 +114,10 @@ EXTRA_OECONF += "--with-fop=no \
                  --with-xkb-output=/var/lib/xkb \
                  --with-sha1=libcrypto \
                  ac_cv_file__usr_share_sgml_X11_defs_ent=no \
+                 --disable-systemd-logind \
 "
 
-PACKAGECONFIG ??= "udev ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'dri dri2 glx', '', d)} \
-                   ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
+PACKAGECONFIG ??= "udev ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'dri dri2 glx', '', d)}"
 
 PACKAGECONFIG[udev] = "--enable-config-udev,--disable-config-udev,udev"
 PACKAGECONFIG[dri] = "--enable-dri,--disable-dri,glproto virtual/mesa xf86driproto"
@@ -128,7 +128,6 @@ PACKAGECONFIG[glx] = "--enable-glx --enable-glx-tls,--disable-glx,glproto virtua
 PACKAGECONFIG[unwind] = "--enable-libunwind,--disable-libunwind,libunwind"
 PACKAGECONFIG[xshmfence] = "--enable-xshmfence,--disable-xshmfence,libxshmfence"
 PACKAGECONFIG[xmlto] = "--with-xmlto, --without-xmlto, xmlto-native docbook-xml-dtd4-native docbook-xsl-stylesheets-native"
-PACKAGECONFIG[systemd] = "--enable-systemd-logind=yes,--enable-systemd-logind=no,dbus,dbus-lib"
 
 do_install_append () {
 	# Its assumed base-files creates this for us
Signature · 1 line
1.9.3
#1 lore raw

Hello Randy,

Quoted 8 lines · Randy Witt

Without a dm to handle the session management systemd-logind can make it difficult for X to gain ownership of devices and behave properly.

Since X seems to work without enabling systemd-logind, always disable it for now, and we can revisit it if we ever want to try to take advantage of multi-user sessions/seats.

[Yocto # 7100]

I have with the default change but not in making it harder to be experimented. See below...

Quoted 9 lines
---
 meta/recipes-graphics/xorg-xserver/xserver-xorg.inc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
meta/recipes-graphics/xorg-xserver/xserver-xorg.inc +0 -0
index 5b47e34..6154295 100644

meta/recipes-graphics/xorg-xserver/xserver-xorg.inc EXTRA_OECONF += "--with-fop=no \ · line 118

Quoted 5 lines
meta/recipes-graphics/xorg-xserver/xserver-xorg.inc +1 -0
@@ -114,10 +114,10 @@ EXTRA_OECONF += "--with-fop=no \
                  --with-xkb-output=/var/lib/xkb \
                  --with-sha1=libcrypto \
                  ac_cv_file__usr_share_sgml_X11_defs_ent=no \
+                 --disable-systemd-logind \
 "

Drop.

meta/recipes-graphics/xorg-xserver/xserver-xorg.inc EXTRA_OECONF += "--with-fop=no \ · line 120

Quoted 3 lines
meta/recipes-graphics/xorg-xserver/xserver-xorg.inc +1 -2
-PACKAGECONFIG ??= "udev ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'dri dri2 glx', '', d)} \
-                   ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
+PACKAGECONFIG ??= "udev ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'dri dri2 glx', '', d)}"

Ok.

meta/recipes-graphics/xorg-xserver/xserver-xorg.inc PACKAGECONFIG[glx] = "--enable-glx --enable-glx-tls,--disable-glx,glproto virtua · line 131

Quoted 7 lines
meta/recipes-graphics/xorg-xserver/xserver-xorg.inc +0 -1
 PACKAGECONFIG[udev] = "--enable-config-udev,--disable-config-udev,udev"
 PACKAGECONFIG[dri] = "--enable-dri,--disable-dri,glproto virtual/mesa xf86driproto"
@@ -128,7 +128,6 @@ PACKAGECONFIG[glx] = "--enable-glx --enable-glx-tls,--disable-glx,glproto virtua
 PACKAGECONFIG[unwind] = "--enable-libunwind,--disable-libunwind,libunwind"
 PACKAGECONFIG[xshmfence] = "--enable-xshmfence,--disable-xshmfence,libxshmfence"
 PACKAGECONFIG[xmlto] = "--with-xmlto, --without-xmlto, xmlto-native docbook-xml-dtd4-native docbook-xsl-stylesheets-native"
-PACKAGECONFIG[systemd] = "--enable-systemd-logind=yes,--enable-systemd-logind=no,dbus,dbus-lib"

Rename to logind

So someone wanting to enable it can use:

PACKAGECONFIG_append = " logind"

in a bbappend file.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750