On Sat, Dec 2, 2023 at 8:18 AM Bagas Sanjaya <bagasdotme@xxxxxxxxx> wrote: > > On Thu, Nov 30, 2023 at 11:48:24AM +0100, Gert Vanhaerents wrote: > > Hi Kernel list, > > I'm the IT person of a school, earlier we used multiseatcomputers for the > > school, i have maded with a XGL implementation and it works fine but not so > > fantastic. The school wants that i build new computers but the XGL project > > is too outdated so i can't use it anymore. > > > > How can i make a multiseatcomputer with more then one user on one card with > > systemd? I have asked already to the makers of systemd but they said it's a > > kernel problem. > > > > With Systemd loginctl and the nouveau drivers you have this: > > > > ─/sys/devices/pci0000:00/0000:00:03.1/0000:08:00.0/drm/card0 > > │ [MASTER] drm:card0 > > │ > > ├─/sys/devices/pci0000:00/0000:00:03.1/0000:08:00.0/drm/card0/card0-DVI-D-1 > > │ │ [MASTER] drm:card0-DVI-D-1 > > │ > > ├─/sys/devices/pci0000:00/0000:00:03.1/0000:08:00.0/drm/card0/card0-HDMI-A-1 > > │ │ [MASTER] drm:card0-HDMI-A-1 > > │ > > └─/sys/devices/pci0000:00/0000:00:03.1/0000:08:00.0/drm/card0/card0-VGA-1 > > │ [MASTER] drm:card0-VGA-1 > > ├─/sys/devices/pci0000:00/0000:00:03.1/0000:08:00.0/drm/renderD128 > > │ drm:renderD128 > > ├─/sys/devices/pci0000:00/0000:00:03.1/0000:08:00.0/graphics/fb0 > > │ graphics:fb0 "nouveaudrmfb" > > > > So it will be: > > > > loginctl attach seat1 /sys/devices/pci0000:00/0000:00:03.1/0000:08:00.0/drm/card0/card0-VGA-1 > > > > For the seat1 (the VGA d-sub output for seat1 and the other HDMI output for > > seat0) and of course the mouse and keyboard. > > > > When you do this, all the graphics outputs are on the second seat (seat1) > > and not anymore on the first seat. So i need to move only the VGA output to > > seat1 and not all the outputs. (Note: I know nothing about multiseat, but I know something about nouveau.) What GPU is this? The fact that VGA is listed makes me think it's an older one. Pre-Kepler GPUs only support 2 CRTC's, which means you can only have 2 outputs enabled at a time -- this is a hardware limitation. So if this is a GFxxx or GTxxx in "lspci" (or even older, Gxx or NVxx), then this will never work with 3 outputs / seats. Also, I notice that you have a "fb" driver going, whose sole task is to display the same thing on all outputs. I don't know how this interacts with multiseat, but basically you have to ensure that you're in "graphics" mode, which I think makes it effectively disabled. But I've never used systemd, so I'm not completely sure how that interaction is brokered. Cheers, -ilia