[systemd-devel] loginctl - multi-seats

Andrei Borzenkov arvidjaar at gmail.com
Sat Aug 23 07:35:34 PDT 2014


В Sat, 23 Aug 2014 16:26:33 +0200
arnaud gaboury <arnaud.gaboury at gmail.com> пишет:

> > I understand from loginctl(1) I have to first create 1 new seat with
> > loginctl using 1 existing graphic device:
> > $ attach seat1 /sys/bus/pci/device/0000:00:01.0@ (my graphic card as
> > listed by $lspci).
> 
> Not a very good start :-(
> 
> $ lspci
> 01:00.0 VGA compatible controller: NVIDIA Corporation GK104 [GeForce
> GTX 770] (rev a1)
> 
> # loginctl attach seat1 /sys/bus/pci/devices/0000:01:00.0
> Could not attach device: No such device
> 
> $ ls -al /sys/bus/pci/devices/0000:01:00.0
> lrwxrwxrwx 1 root root 0 Aug 23 13:56
> /sys/bus/pci/devices/0000:01:00.0 ->
> ../../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/
> 
> # loginctl attach seat1 /sys/bus/pci/devices/0000:01:00.0
> Could not attach device: No such device
> 
> ---------------------------------------------------------
> from loginctl(1):
>    attach NAME DEVICE...
>            Persistently attach one or more devices to a seat. The devices
>            should be specified via device paths in the /sys file system. To
>            create a new seat, attach at least one graphics card to a
>            previously unused seat name.
> ---------------------------------------------------------------
> 
> What is wrong in my command to create seat1 ?

You probably want graphic device under it, something like

/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0

You can only add devices that have udev tag seat (those with
TAGS=...:seat:... in properties).


More information about the systemd-devel mailing list