[PATCH 0/3] libxtrans + xserver: Add support for systemd socket activation

Hans de Goede hdegoede at redhat.com
Thu Nov 28 07:21:12 PST 2013


Hi All,

As I already mentioned in my self-introduction mail I'm a new member of
Red Hat's graphics team. One of the first things I'll be working on is
systemd integration, specifically support for the new systemd-logind
org.freedesktop.login1.Session TakeControl / TakeDevice and friends dbus
calls, which should allow Xorg to be able to run without root rights
on Linux machines with kms graphics, for detail see:
http://www.freedesktop.org/wiki/Software/systemd/logind/

Since I'm working on systemd integration Peter Hutterer has asked me to take
a look at the (mostly) unrelated systemd socket activation patches Samsung
has posted a while back:
http://thread.gmane.org/gmane.comp.freedesktop.xorg.devel/36092/focus=37694

I've reviewed and tested them, and done some minor cleanups to the
"Enable systemd socket activation" libxtrans patch. With these cleanups
added I believe these are ready to be pushed.

If someone wants to give these patches a test-run themselves, here are
some simple test instructions:

1) Create a file named /etc/systemd/system/xorg.socket with the following
contents:

[Unit]
Description=Xorg DISPLAY=:1.0 socket

[Socket]
ListenStream=/tmp/.X11-unix/X1

[Install]
WantedBy=sockets.target

2) Create a file named /etc/systemd/system/xorg.service with the following
contents:

[Unit]
Description=Xorg DISPLAY=:1.0 Service

[Service]
ExecStart=/usr/bin/Xorg :1

[Install]
Also=xorg.socket

3) In a terminal / on the console do:
export DISPLAY=:1
metacity&
xterm

And a second X-server should start with a single xterm window managed by
metacity.

Regards,

Hans


More information about the xorg-devel mailing list