[systemd-devel] loginctl - multi-seats

arnaud gaboury arnaud.gaboury at gmail.com
Sat Aug 23 12:31:48 PDT 2014


I have been able to write some udev rules.d for usb mouse/keyboard.
I plugout the device, then
$  dmesg | tail -n 4
~~~~~~
[21145.269421] input: Logitech USB-PS/2 Optical Mouse as
/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/0003:046D:C03E.000E/input/input30
~~~~~~~~~~
$ udevadm info --query=all --path=/devices/pci0000:00/0000:00:14.0
~~~~~~~
ID_FOR_SEAT=input-pci-0000_00_14_0-usb-0_5_1_0

Fine.

Now it seems I am at a dead end for my graphic card. As already
stated, I have only one card:/sys/class/drm/card0

I can not attach this physical device to more than one seat. So, for
the graphical display, I have no idea about to deal with. The tweak I
was using before was when using this xorg.conf:
--------------------------------------------------------
Section    "ServerLayout"
    Identifier    "MultiSeat"
    Screen    0    "Screen0"
    Screen    1    "screen1" leftOf "Screen0"
EndSection

Section "ServerFlags"
    Option    "AllowMouseOpenFail"    "true"
    Option    "AutoAddGPU"        "off"
EndSection

## DEVICE SECTION ##
# Two identifiers (nvidia0 & nvidia1) #
# 1 Driver (nvidia) with 1 BusID : the graphic card #

Section "Device"
    Identifier     "nvidia0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID       "PCI:1:0:0"
    Option         "NoLogo" "1"
    Option       "UseDisplaydevice"    "DFP"
    Screen       0
EndSection

Section "Device"
    Identifier     "nvidia1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "PCI:1:0:0"
    Option         "NoLogo" "1"
    Option         "UseDisplaydevice"   "DFP"
    Screen         1
EndSection

## SCREEN SECTION ##
# Two screens, each one attached to 1 device #

Section "Screen"
    Identifier    "Screen0"
    Device        "nvidia0"
    Monitor        "CRT-0"
    DefaultDepth    24
    Subsection    "Display"
        Depth    24
    EndSubsection
EndSection

Section "Screen"
        Identifier      "Screen1"
        Device          "nvidia1"
        Monitor         "DFP-1"
        DefaultDepth    24
        Subsection      "Display"
                Depth   24
        EndSubsection
EndSection

## INPUT DEVICE SECTION ##
# 2 keyboards & 2 mouses #
# Driver is evdev. To list a device, open a terminal and test mouse
and event number #
# # cat /dev/input/mouse0 ... for mouse. Good when weird symboles when
moving the mouse #
# # cat /dev/input/event0 ... for keyboard #

Section "Inputdevice"
    Identifier    "keyboard0"
    Driver        "evdev"
    Option        "Device"    "/dev/input/event14"
    Option        "XkbModel"    "evdev"
    Option        "Xkblayout"    "ch"
    Option        "XkbVariant"    "fr"
    Option        "terminate:ctrl_alt_bksp"
EndSection

Section "Inputdevice"
        Identifier      "keyboard1"
        Driver          "evdev"
        Option          "Device"        "/dev/input/event18"
        Option          "XkbModel"      "evdev"
        Option          "Xkblayout"     "ch"
        Option          "XkbVariant"    "fr"
        Option          "terminate:ctrl_alt_bksp"
EndSection

Section "Inputdevice"
        Identifier      "mouse0"
        Driver          "mouse"
        Option          "Protocol"      "IMPS/2"
        Option          "Device"        "/dev/input/mouse0"
EndSection

Section "Inputdevice"
        Identifier      "mouse1"
        Driver          "mouse"
        Option          "Protocol"      "IMPS/2"
        Option          "Device"        "/dev/input/mouse1"
EndSection

-----------------------------

I do not know how to reproduce this when using two nvidia devices, as
shown in the xorg.conf. The only idea I have in mind is to "create" a
card1 in drm subsystem, but it sounds to me like a weird method.

Thank you for suggestion for the graphic card device.


More information about the systemd-devel mailing list