On Thu, 08 Dec 2022 11:47:45 -0500 Phillip Susi <ph...@thesusis.net> wrote:
> Only one Wayland server can control a given GPU, but if you have two > monitors on one GPU, isn't it possible to run a root server that > displays two nested servers each on their own monitor to get a multi > seat setup? Sure. > Has anyone done this? What would a good server be to use for the root? I don't know. There are two different approaches: - nested compositor presents to the root compositor which presents to KMS - nested compositor uses KMS leasing offered by the root compositor, and presents to KMS directly In the leasing case, the root compositor may not need to be even a Wayland server nor a compositor. It could be a system daemon like seatd or logind, if they offered the API for it. > Could you have the nested servers directly bind to their keyboard/mouse > or would the root server also have to multiplex those out to the nested > servers? In the root compositor case, the root server would indeed need to proxy the input as well. That would maintain security. OTOH, in the leasing case, if the lease daemon is also leasing out input devices (like seatd and logind already do today), input would not need to be proxied. Thanks, pq
pgp0_XWuxGLpM.pgp
Description: OpenPGP digital signature