[LightDM] [systemd-devel] loginctl - multi-seats

poma pomidorabelisima at gmail.com
Mon Sep 1 23:27:15 PDT 2014


...
> /etc/lightdm/lightdm.conf
> [LightDM]
> minimum-display-number=0
> minimum-vt=1
> user-authority-in-system-dir=true
> 
> [SeatDefaults]
> greeter-session=lightdm-greeter
> session-wrapper=/etc/X11/xinit/Xsession
> 
> [Seat:0]
> xserver-command=/usr/bin/Xorg
> xserver-config=/etc/X11/xorg.conf.nouveau
> 
> [Seat:1]
> xdg-seat=seat-fu
> xserver-command=/usr/bin/Xorg -sharevts -novtswitch
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> /etc/X11/xorg.conf.nouveau
> Section "Device"
>     Identifier  "nvidia0"
>     Driver      "nouveau"
> EndSection
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> $ loginctl seat-status seat0
> seat0
> 	Sessions: *1086 c15
> 	 Devices:
> 		  ...
> 		  ├─/sys/devices/pci0000:00/0000:00:10.0/0000:01:00.0/drm/card1
> 		  │ drm:card1
> 		  ├─/sys/devices/pci0000:00/0000:00:10.0/0000:01:00.0/graphics/fb0
> 		  │ [MASTER] graphics:fb0 "nouveaufb"
> 		  ...
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> $ udevadm info -q env -p /sys/class/drm/card1
> DEVNAME=/dev/dri/card1
> DEVPATH=/devices/pci0000:00/0000:00:10.0/0000:01:00.0/drm/card1
> DEVTYPE=drm_minor
> ID_FOR_SEAT=drm-pci-0000_01_00_0
> ID_PATH=pci-0000:01:00.0
> ID_PATH_TAG=pci-0000_01_00_0
> MAJOR=226
> MINOR=1
> SUBSYSTEM=drm
> TAGS=:seat:uaccess:
> USEC_INITIALIZED=67185
> 
> ~~~~~~~~~~~~~~~~~~~~~~
> 
> $ man 1 loginctl
>        attach [NAME] [DEVICE...]
>        ...
>        flush-devices
> 
> ~~~~~~~~~~~~~~~~~~~~~~
> 
> /etc/udev/rules.d/72-seat-drm-pci-0000_00_04_1-usb-0_6_1_0.rules 
> TAG=="seat", ENV{ID_FOR_SEAT}=="drm-pci-0000_00_04_1-usb-0_6_1_0", ENV{ID_SEAT}="seat-fu"
> 
> /etc/udev/rules.d/72-seat-graphics-pci-0000_00_04_1-usb-0_6_1_0.rules 
> TAG=="seat", ENV{ID_FOR_SEAT}=="graphics-pci-0000_00_04_1-usb-0_6_1_0", ENV{ID_SEAT}="seat-fu"
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> $ loginctl seat-status seat-fu
> seat-fu
>         Sessions: *1 c1
>          Devices:
>                   ├─/sys/devices/pci0000:00/0000:00:04.1/usb1/1-6/1-6:1.0/drm/card0
>                   │ drm:card0
>                   └─/sys/devices/pci0000:00/0000:00:04.1/usb1/1-6/1-6:1.0/graphics/fb1
>                     [MASTER] graphics:fb1 "udldrmfb"
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> $ udevadm info -q env -p /sys/class/drm/card0
> DEVNAME=/dev/dri/card0
> DEVPATH=/devices/pci0000:00/0000:00:04.1/usb1/1-6/1-6:1.0/drm/card0
> DEVTYPE=drm_minor
> ID_FOR_SEAT=drm-pci-0000_00_04_1-usb-0_6_1_0
> ID_PATH=pci-0000:00:04.1-usb-0:6:1.0
> ID_PATH_TAG=pci-0000_00_04_1-usb-0_6_1_0
> ID_SEAT=seat-fu
> MAJOR=226
> MINOR=0
> SUBSYSTEM=drm
> TAGS=:seat:seat-fu:uaccess:
> USEC_INITIALIZED=465981
> 
> ~~~~~~~~~~~~~~~~~~~~~~~
> 
> $ modinfo -n nouveau
> /lib/modules/3.15.10-200.fc20.x86_64/kernel/drivers/gpu/drm/nouveau/nouveau.ko
> 
> $ rpm -qf /usr/lib64/xorg/modules/drivers/nouveau_drv.so
> xorg-x11-drv-nouveau-1.0.10-1.fc20.x86_64
> 
> $ modinfo -n udl
> /lib/modules/3.15.10-200.fc20.x86_64/kernel/drivers/gpu/drm/udl/udl.ko
> 
> $ rpm -qf /usr/lib64/xorg/modules/drivers/modesetting_drv.so
> xorg-x11-drv-modesetting-0.8.0-2.fc20.x86_64
> 
> $ rpm -q systemd
> systemd-208-21.fc20.x86_64
> 
> $ rpm -qf /usr/bin/Xorg
> xorg-x11-server-Xorg-1.14.4-11.fc20.x86_64
> 
> $ rpm -qf /etc/lightdm/lightdm.conf
> lightdm-1.11.4-1.fc20.x86_64
> 
> 
> Xorg without root
> https://lists.fedoraproject.org/pipermail/test/2014-July/122190.html
> 


This is a bare minimum config achieved for a multi(dual)seat setup via lightdm-1.11.7

~~~~~~~~~~~~~~~~~~~~~~~~~
/etc/lightdm/lightdm.conf
[LightDM]
minimum-vt=1
[SeatDefaults]
session-wrapper=/etc/X11/xinit/Xsession
[Seat:seat0]
xserver-config=/etc/X11/xorg.conf.nouveau

                          ~~~~~~~~~~~~~~~

/etc/X11/xorg.conf.nouveau
Section "Device"
    Identifier       "nvidia0"
    Driver           "nouveau"
EndSection
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

$ loginctl 
   SESSION        UID USER             SEAT            
        c1        105 lightdm          seat-fu         
        c2        105 lightdm          seat0           
         1        501 poma             seat0           
         2        502 pia              seat-fu         


root tty1 /usr/bin/X :0 -seat seat0 -novtswitch -auth /var/run/lightdm/root/:0 -nolisten tcp vt1 -config /etc/X11/xorg.conf.nouveau   
root ?    /usr/bin/X :1 -seat seat-fu -sharevts -auth /var/run/lightdm/root/:1 -nolisten tcp


kernel-3.15.10-201.fc20.x86_64
systemd-208-21.fc20.x86_64
xorg-x11-server-Xorg-1.14.4-11.fc20.x86_64
lightdm-1.11.7-1.fc20.x86_64
lightdm-gtk-1.8.6-1.fc20.x86_64


poma




More information about the LightDM mailing list