[systemd-devel] logind: multiseat without framebuffer graphic cards

Lennart Poettering lennart at poettering.net
Fri Nov 23 09:18:46 PST 2012


On Thu, 22.11.12 13:27, Thomas Bächler (thomas at archlinux.org) wrote:

> For me, the major problem is that the selection of "seat master devices"
> is hard-coded in logind (it selects devices of type "graphics" from
> udev, [1]). Step 1 would be to move that to a udev rule: Add a
> "seatmaster" tag to all graphics devices and have logind select those
> (this would actually remove three LOC in logind.c, and change one line).
> Now, an admin could give this tag to any device. This fix is very easy,
> non-invasive and would make logind's multi-seat support much more
> flexible (it also allows an admin to do very stupid things, but I don't
> see any reason to prevent that).

"seat-master" sounds like a good name for this. I'd be happy to merge a
patch that changes logind so that it watches for devices tagged with
this, and spawns an X server the moment such a device appears.

> The second step is to make multi-seat-x support custom configurations:
> If an X server is to be spawned on on a seat named "seatN" and
> /etc/X11/xorg.conf_seatN exists, then that configuration file is used
> and multi-seat-x doesn't generate one. (Over time, maybe multi-seat-x
> can be extended to support more setups automatically, but that is a very
> low priority for me, as figuring out the correct configuration with the
> proprietary nvidia driver is not straight-forward.)

Can't this be done in X instead? IIRC X already has some matching thing
in the configuration file format. Maybe this could be extended to allow
matching by seat name? Then, people could just drop per-seat
configuration as normal snippets into /etc/X11/xorg.conf.d/ and add a
match line to them and that would be it?

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list