[systemd-devel] loginctl - multi-seats

Lennart Poettering lennart at poettering.net
Mon Aug 25 10:11:05 PDT 2014


On Sat, 23.08.14 16:26, arnaud gaboury (arnaud.gaboury at gmail.com) wrote:

> 
> > 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 ?

The way to go is to start with looking at "loginctl seat-status
seat0". This will show you all hardware currently assigned to seat0. Use
the device paths showmn to then create additional seats out of them, in
different combinations.

Not all devices can be assigned to seats, they have to be marked in udev
for that. loginctl shows you all that.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list