2023-11-30 10:48:40

by Gert Vanhaerents

[permalink] [raw]
Subject: Kernel problem with multiseat on one card

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.


When i install the proprietary Nvidia drivers, i have the following:

[MASTER] pci:0000:08:00.0
          │ ├─/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/renderD128
          │   drm:renderD128

─/sys/devices/platform/efi-framebuffer.0/graphics/fb0
          │ graphics:fb0 "EFI VGA"

So no VGA, DVI or HDMI items.

Linux is a very good multi-user system, so it is frustrating that it
does not work. It does work under Windows without any problem, so it is
certainly possible.Can you please check this or give me a tip somewhere
so that I can continue looking for a solution? According to systemd this
is a kernel problem, can you please solve this.


Hopefully someone can help, the children and school will always thank you!
Thanks in advance,
Gert



2023-12-02 09:48:16

by Gert Vanhaerents

[permalink] [raw]
Subject: Kernel problem with multiseat on one card

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.


When i install the proprietary Nvidia drivers, i have the following:

[MASTER] pci:0000:08:00.0
          │ ├─/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/renderD128
          │   drm:renderD128

─/sys/devices/platform/efi-framebuffer.0/graphics/fb0
          │ graphics:fb0 "EFI VGA"

So no VGA, DVI or HDMI items.

Linux is a very good multi-user system, so it is frustrating that it
does not work. It does work under Windows without any problem, so it is
certainly possible.Can you please check this or give me a tip somewhere
so that I can continue looking for a solution? According to systemd this
is a kernel problem, can you please solve this.


Hopefully someone can help, the children and school will always thank you!
Thanks in advance,
Gert


2023-12-02 13:18:18

by Bagas Sanjaya

[permalink] [raw]
Subject: Re: Kernel problem with multiseat on one card

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.

Do you expect that GUI output is on both seats?

>
>
> When i install the proprietary Nvidia drivers, i have the following:
>
> [MASTER] pci:0000:08:00.0
>           │ ├─/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/renderD128
>           │   drm:renderD128
>
> ─/sys/devices/platform/efi-framebuffer.0/graphics/fb0
>           │ graphics:fb0 "EFI VGA"
>
> So no VGA, DVI or HDMI items.

Then report to the GitHub tracker [1].

Thanks.

[1]: https://github.com/NVIDIA/open-gpu-kernel-modules/issues

--
An old man doll... just what I always wanted! - Clara


Attachments:
(No filename) (2.61 kB)
signature.asc (235.00 B)
Download all attachments

2023-12-02 15:29:00

by Timur Tabi

[permalink] [raw]
Subject: Re: [Nouveau] Kernel problem with multiseat on one card

On Sat, 2023-12-02 at 20:18 +0700, Bagas Sanjaya wrote:
>

> > When i install the proprietary Nvidia drivers, i have the following:
> >
> > [MASTER] pci:0000:08:00.0
> >           │ ├─/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/renderD128
> >           │   drm:renderD128
> >
> > ─/sys/devices/platform/efi-framebuffer.0/graphics/fb0
> >           │ graphics:fb0 "EFI VGA"
> >
> > So no VGA, DVI or HDMI items.
>
> Then report to the GitHub tracker [1].
>
> Thanks.
>
> [1]: https://github.com/NVIDIA/open-gpu-kernel-modules/issues
>

No, do NOT report this on the Github tracker!

That github tracker is ONLY for bugs that occur with OpenRM (the "Open GPU
Kernel Module") but not with the the proprietary driver. If you have a bug
with the the Nvidia proprietary driver, that must be reported on the Nvidia
forum instead:

https://forums.developer.nvidia.com/c/gpu-graphics/linux/148

2023-12-03 02:49:45

by Bagas Sanjaya

[permalink] [raw]
Subject: Re: [Nouveau] Kernel problem with multiseat on one card

On Sat, Dec 02, 2023 at 03:28:25PM +0000, Timur Tabi wrote:
> On Sat, 2023-12-02 at 20:18 +0700, Bagas Sanjaya wrote:
> >
>
> > > When i install the proprietary Nvidia drivers, i have the following:
> > >
> > > [MASTER] pci:0000:08:00.0
> > >           │ ├─/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/renderD128
> > >           │   drm:renderD128
> > >
> > > ─/sys/devices/platform/efi-framebuffer.0/graphics/fb0
> > >           │ graphics:fb0 "EFI VGA"
> > >
> > > So no VGA, DVI or HDMI items.
> >
> > Then report to the GitHub tracker [1].
> >
> > Thanks.
> >
> > [1]: https://github.com/NVIDIA/open-gpu-kernel-modules/issues
> >
>
> No, do NOT report this on the Github tracker!
>
> That github tracker is ONLY for bugs that occur with OpenRM (the "Open GPU
> Kernel Module") but not with the the proprietary driver. If you have a bug
> with the the Nvidia proprietary driver, that must be reported on the Nvidia
> forum instead:
>
> https://forums.developer.nvidia.com/c/gpu-graphics/linux/148
>

Thanks for the correct pointer!

Sorry for inconvenience.

--
An old man doll... just what I always wanted! - Clara


Attachments:
(No filename) (1.34 kB)
signature.asc (235.00 B)
Download all attachments

2023-12-04 10:26:37

by Gert Vanhaerents

[permalink] [raw]
Subject: Re: Kernel problem with multiseat on one card


>>> 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.
>> Do you expect that GUI output is on both seats?
>
> I want the result that i have one seat (seat0) on the VGA/D-sub output
> of the graphic card
>
> a second seat (seat1) on the HDMI output of the graphic card
>
> and a third seat (seat2) on the DVI output of the graphic card
>
> In theory it should work with the following:
> loginctl attach seat1
> /sys/devices/pci0000:00/0000:00:03.1/0000:08:00.0/drm/card0/card0-HDMI-A-1
>
> loginctl attach seat2
> /sys/devices/pci0000:00/0000:00:03.1/0000:08:00.0/drm/card0/card0-DVI-D-1
>
> But when i do this all the outputs will be used on seat2 (because they
> do all the outputs automaticly to the latest attached seat)
>
>
>>>
>>> When i install the proprietary Nvidia drivers, i have the following:
>>>
>>> [MASTER] pci:0000:08:00.0
>>>            │
>>> ├─/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/renderD128
>>>            │   drm:renderD128
>>>
>>> ─/sys/devices/platform/efi-framebuffer.0/graphics/fb0
>>>            │ graphics:fb0 "EFI VGA"
>>>
>>> So no VGA, DVI or HDMI items.
>> Then report to the GitHub tracker [1].
>>
>> Thanks.
>>
>> [1]: https://github.com/NVIDIA/open-gpu-kernel-modules/issues
>>

2023-12-04 11:25:15

by Gert Vanhaerents

[permalink] [raw]
Subject: Re: Kernel problem with multiseat on one card


Op 2/12/2023 om 14:18 schreef Bagas Sanjaya:
> 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.
> Do you expect that GUI output is on both seats?

I want the result that i have one seat (seat0) on the VGA/D-sub output
of the graphic card

a second seat (seat1) on the HDMI output of the graphic card

and a third seat (seat2) on the DVI output of the graphic card

In theory it should work with the following:
loginctl attach seat1
/sys/devices/pci0000:00/0000:00:03.1/0000:08:00.0/drm/card0/card0-HDMI-A-1

loginctl attach seat2
/sys/devices/pci0000:00/0000:00:03.1/0000:08:00.0/drm/card0/card0-DVI-D-1

But when i do this all the outputs will be used on seat2 (because they
do all the outputs automaticly to the latest attached seat)


>>
>> When i install the proprietary Nvidia drivers, i have the following:
>>
>> [MASTER] pci:0000:08:00.0
>>           │ ├─/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/renderD128
>>           │   drm:renderD128
>>
>> ─/sys/devices/platform/efi-framebuffer.0/graphics/fb0
>>           │ graphics:fb0 "EFI VGA"
>>
>> So no VGA, DVI or HDMI items.
> Then report to the GitHub tracker [1].
>
> Thanks.
>
> [1]: https://github.com/NVIDIA/open-gpu-kernel-modules/issues
>