[systemd-devel] help : loginctl won't add new seat

Benoit Barthelet benoit.barthelet at gmail.com
Thu Sep 3 05:44:57 PDT 2015


I'm at a loss figuring out why I can't succeed in attaching a card per seat.
This was simpler with free driver, just had to
loginctl attach seat1
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0/

but it seems with those proprietary drivers cards don't show up the same way.

still no seat1 shows up after I trigger udev rules :

before any rule my cards are :
➜  ~  udevadm info --path=/sys/devices/pci0000:00/0000:00:07.0/0000:03:00.0
P: /devices/pci0000:00/0000:00:07.0/0000:03:00.0
E: DEVPATH=/devices/pci0000:00/0000:00:07.0/0000:03:00.0
E: DRIVER=fglrx_pci
E: ID_MODEL_FROM_DATABASE=Tahiti PRO [Radeon HD 7950/8950 OEM / R9 280]
E: ID_PCI_CLASS_FROM_DATABASE=Display controller
E: ID_PCI_INTERFACE_FROM_DATABASE=VGA controller
E: ID_PCI_SUBCLASS_FROM_DATABASE=VGA compatible controller
E: ID_VENDOR_FROM_DATABASE=Advanced Micro Devices, Inc. [AMD/ATI]
E: MODALIAS=pci:v00001002d0000679Asv0000174Bsd0000E207bc03sc00i00
E: PCI_CLASS=30000
E: PCI_ID=1002:679A
E: PCI_SLOT_NAME=0000:03:00.0
E: PCI_SUBSYS_ID=174B:E207
E: SUBSYSTEM=pci
E: USEC_INITIALIZED=4263907

➜  ~  udevadm info --path=/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0
P: /devices/pci0000:00/0000:00:01.0/0000:01:00.0
E: DEVPATH=/devices/pci0000:00/0000:00:01.0/0000:01:00.0
E: DRIVER=fglrx_pci
E: ID_MODEL_FROM_DATABASE=Tahiti PRO [Radeon HD 7950/8950 OEM / R9 280]
E: ID_PCI_CLASS_FROM_DATABASE=Display controller
E: ID_PCI_INTERFACE_FROM_DATABASE=VGA controller
E: ID_PCI_SUBCLASS_FROM_DATABASE=VGA compatible controller
E: ID_VENDOR_FROM_DATABASE=Advanced Micro Devices, Inc. [AMD/ATI]
E: MODALIAS=pci:v00001002d0000679Asv0000174Bsd0000E207bc03sc00i00
E: PCI_CLASS=30000
E: PCI_ID=1002:679A
E: PCI_SLOT_NAME=0000:01:00.0
E: PCI_SUBSYS_ID=174B:E207
E: SUBSYSTEM=pci
E: USEC_INITIALIZED=4264255


➜  ~  cat /etc/udev/rules.d/71-ati.rules
SUBSYSTEM=="pci",
DEVPATH=="/devices/pci0000:00/0000:00:07.0/0000:03:00.0", TAG+="seat",
TAG+="master-of-seat"i, ENV{ID_AUTOSEAT}="1", ENV{ID_SEAT}="seat1"
SUBSYSTEM=="pci",
DEVPATH=="/devices/pci0000:00/0000:00:01.0/0000:01:00.0", TAG+="seat",
TAG+="master-of-seat"i, ENV{ID_AUTOSEAT}="1", ENV{ID_SEAT}="seat0"

➜  ~  sudo udevadm trigger

➜  ~  udevadm info --path=/sys/devices/pci0000:00/0000:00:07.0/0000:03:00.0
P: /devices/pci0000:00/0000:00:07.0/0000:03:00.0
E: DEVPATH=/devices/pci0000:00/0000:00:07.0/0000:03:00.0
E: DRIVER=fglrx_pci
E: ID_FOR_SEAT=pci-pci-0000_03_00_0
E: ID_MODEL_FROM_DATABASE=Tahiti PRO [Radeon HD 7950/8950 OEM / R9 280]
E: ID_PATH=pci-0000:03:00.0
E: ID_PATH_TAG=pci-0000_03_00_0
E: ID_PCI_CLASS_FROM_DATABASE=Display controller
E: ID_PCI_INTERFACE_FROM_DATABASE=VGA controller
E: ID_PCI_SUBCLASS_FROM_DATABASE=VGA compatible controller
E: ID_VENDOR_FROM_DATABASE=Advanced Micro Devices, Inc. [AMD/ATI]
E: MODALIAS=pci:v00001002d0000679Asv0000174Bsd0000E207bc03sc00i00
E: PCI_CLASS=30000
E: PCI_ID=1002:679A
E: PCI_SLOT_NAME=0000:03:00.0
E: PCI_SUBSYS_ID=174B:E207
E: SUBSYSTEM=pci
E: TAGS=:master-of-seat:seat:
E: USEC_INITIALIZED=4263907

➜  ~  udevadm info --path=/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0
P: /devices/pci0000:00/0000:00:01.0/0000:01:00.0
E: DEVPATH=/devices/pci0000:00/0000:00:01.0/0000:01:00.0
E: DRIVER=fglrx_pci
E: ID_FOR_SEAT=pci-pci-0000_01_00_0
E: ID_MODEL_FROM_DATABASE=Tahiti PRO [Radeon HD 7950/8950 OEM / R9 280]
E: ID_PATH=pci-0000:01:00.0
E: ID_PATH_TAG=pci-0000_01_00_0
E: ID_PCI_CLASS_FROM_DATABASE=Display controller
E: ID_PCI_INTERFACE_FROM_DATABASE=VGA controller
E: ID_PCI_SUBCLASS_FROM_DATABASE=VGA compatible controller
E: ID_VENDOR_FROM_DATABASE=Advanced Micro Devices, Inc. [AMD/ATI]
E: MODALIAS=pci:v00001002d0000679Asv0000174Bsd0000E207bc03sc00i00
E: PCI_CLASS=30000
E: PCI_ID=1002:679A
E: PCI_SLOT_NAME=0000:01:00.0
E: PCI_SUBSYS_ID=174B:E207
E: SUBSYSTEM=pci
E: TAGS=:master-of-seat:seat:
E: USEC_INITIALIZED=4264255

but still

➜  ~  loginctl list-seats
SEAT
seat0

1 seats listed.


seat0
        Sessions: *c3 10
         Devices:
                  ├─/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input7
                  │ input:input7 "Power Button"
                  ├─/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input6
                  │ input:input6 "Power Button"
                  ├─/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0
                  │ [MASTER] pci:0000:01:00.0

├─/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1
                  │ sound:card1 "HDMI_1"
                  │
├─/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input16
                  │ │ input:input16 "HDA ATI HDMI HDMI/DP,pcm=3"
                  │
├─/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input17
                  │ │ input:input17 "HDA ATI HDMI HDMI/DP,pcm=7"
                  │
├─/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input18
                  │ │ input:input18 "HDA ATI HDMI HDMI/DP,pcm=8"
                  │
├─/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input19
                  │ │ input:input19 "HDA ATI HDMI HDMI/DP,pcm=9"
                  │
├─/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input20
                  │ │ input:input20 "HDA ATI HDMI HDMI/DP,pcm=10"
                  │
└─/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input21
                  │   input:input21 "HDA ATI HDMI HDMI/DP,pcm=11"
                  ├─/sys/devices/pci0000:00/0000:00:07.0/0000:03:00.0
                  │ [MASTER] pci:0000:03:00.0

├─/sys/devices/pci0000:00/0000:00:07.0/0000:03:00.1/sound/card2
                  │ sound:card2 "HDMI"
                  │
├─/sys/devices/pci0000:00/0000:00:07.0/0000:03:00.1/sound/card2/input10
                  │ │ input:input10 "HDA ATI HDMI HDMI/DP,pcm=3"
                  │
├─/sys/devices/pci0000:00/0000:00:07.0/0000:03:00.1/sound/card2/input11
                  │ │ input:input11 "HDA ATI HDMI HDMI/DP,pcm=7"
                  │
├─/sys/devices/pci0000:00/0000:00:07.0/0000:03:00.1/sound/card2/input12
                  │ │ input:input12 "HDA ATI HDMI HDMI/DP,pcm=8"
                  │
├─/sys/devices/pci0000:00/0000:00:07.0/0000:03:00.1/sound/card2/input13
                  │ │ input:input13 "HDA ATI HDMI HDMI/DP,pcm=9"
                  │
├─/sys/devices/pci0000:00/0000:00:07.0/0000:03:00.1/sound/card2/input14
                  │ │ input:input14 "HDA ATI HDMI HDMI/DP,pcm=10"
                  │
└─/sys/devices/pci0000:00/0000:00:07.0/0000:03:00.1/sound/card2/input15
                  │   input:input15 "HDA ATI HDMI HDMI/DP,pcm=11"
                  ├─/sys/devices/pci0000:00/0000:00:1a.0/usb3
                  │ usb:usb3
                  ├─/sys/devices/pci0000:00/0000:00:1a.1/usb4
                  │ usb:usb4
                  ├─/sys/devices/pci0000:00/0000:00:1a.2/usb5
                  │ usb:usb5
                  ├─/sys/devices/pci0000:00/0000:00:1a.7/usb1
                  │ usb:usb1
                  ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0
                  │ sound:card0 "Intel"
                  │
├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/hdaudioC0D0/input22
                  │ │ input:input22 "HDA Digital PCBeep"
                  │ ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/input23
                  │ │ input:input23 "HDA Intel Front Mic"
                  │ ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/input24
                  │ │ input:input24 "HDA Intel Rear Mic"
                  │ ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/input25
                  │ │ input:input25 "HDA Intel Line"
                  │ ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/input26
                  │ │ input:input26 "HDA Intel Line Out Front"
                  │ ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/input27
                  │ │ input:input27 "HDA Intel Line Out Surround"
                  │ ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/input28
                  │ │ input:input28 "HDA Intel Line Out CLFE"
                  │ ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/input29
                  │ │ input:input29 "HDA Intel Line Out Side"
                  │ └─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/input30
                  │   input:input30 "HDA Intel Front Headphone"
                  ├─/sys/devices/pci0000:00/0000:00:1d.0/usb6
                  │
├─/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input19


                             [0/3558]
                  │ │ input:input19 "HDA ATI HDMI HDMI/DP,pcm=9"
                  │
├─/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input20
                  │ │ input:input20 "HDA ATI HDMI HDMI/DP,pcm=10"
                  │
└─/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input21
                  │   input:input21 "HDA ATI HDMI HDMI/DP,pcm=11"
                  ├─/sys/devices/pci0000:00/0000:00:07.0/0000:03:00.0
                  │ [MASTER] pci:0000:03:00.0

├─/sys/devices/pci0000:00/0000:00:07.0/0000:03:00.1/sound/card2
                  │ sound:card2 "HDMI"
                  │
├─/sys/devices/pci0000:00/0000:00:07.0/0000:03:00.1/sound/card2/input10
                  │ │ input:input10 "HDA ATI HDMI HDMI/DP,pcm=3"
                  │
├─/sys/devices/pci0000:00/0000:00:07.0/0000:03:00.1/sound/card2/input11
                  │ │ input:input11 "HDA ATI HDMI HDMI/DP,pcm=7"
                  │
├─/sys/devices/pci0000:00/0000:00:07.0/0000:03:00.1/sound/card2/input12
                  │ │ input:input12 "HDA ATI HDMI HDMI/DP,pcm=8"
                  │
├─/sys/devices/pci0000:00/0000:00:07.0/0000:03:00.1/sound/card2/input13
                  │ │ input:input13 "HDA ATI HDMI HDMI/DP,pcm=9"
                  │
├─/sys/devices/pci0000:00/0000:00:07.0/0000:03:00.1/sound/card2/input14
                  │ │ input:input14 "HDA ATI HDMI HDMI/DP,pcm=10"
                  │
└─/sys/devices/pci0000:00/0000:00:07.0/0000:03:00.1/sound/card2/input15
                  │   input:input15 "HDA ATI HDMI HDMI/DP,pcm=11"
                  ├─/sys/devices/pci0000:00/0000:00:1a.0/usb3
                  │ usb:usb3
                  ├─/sys/devices/pci0000:00/0000:00:1a.1/usb4
                  │ usb:usb4
                  ├─/sys/devices/pci0000:00/0000:00:1a.2/usb5
                  │ usb:usb5
                  ├─/sys/devices/pci0000:00/0000:00:1a.7/usb1
                  │ usb:usb1
                  ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0
                  │ sound:card0 "Intel"
                  │
├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/hdaudioC0D0/input22
                  │ │ input:input22 "HDA Digital PCBeep"
                  │ ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/input23
                  │ │ input:input23 "HDA Intel Front Mic"
                  │ ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/input24
                  │ │ input:input24 "HDA Intel Rear Mic"
                  │ ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/input25
                  │ │ input:input25 "HDA Intel Line"
                  │ ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/input26
                  │ │ input:input26 "HDA Intel Line Out Front"
                  │ ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/input27
                  │ │ input:input27 "HDA Intel Line Out Surround"
                  │ ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/input28
                  │ │ input:input28 "HDA Intel Line Out CLFE"
                  │ ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/input29
                  │ │ input:input29 "HDA Intel Line Out Side"
                  │ └─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/input30
                  │   input:input30 "HDA Intel Front Headphone"
                  ├─/sys/devices/pci0000:00/0000:00:1d.0/usb6
                  │ usb:usb6
                  ├─/sys/devices/pci0000:00/0000:00:1d.1/usb7
                  │ usb:usb7
                  │
├─/sys/devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0/0003:0853:0119.0001/input/input2
                  │ │ input:input2 "Topre Corporation Realforce 105U"
                  │
└─/sys/devices/pci0000:00/0000:00:1d.1/usb7/7-2/7-2:1.0/0003:09DA:000E.0002/input/input3
                  │   input:input3 "A4Tech PS/2+USB Mouse"
                  ├─/sys/devices/pci0000:00/0000:00:1d.2/usb8
                  │ usb:usb8
                  │ ├─/sys/devices/pci0000:00/0000:00:1d.2/usb8/8-1
                  │ │ usb:8-1
                  ├─/sys/devices/pci0000:00/0000:00:1d.7/usb2
                  │ usb:usb2
                  ├─/sys/devices/platform/pcspkr/input/input8
                  │ input:input8 "PC Speaker"
                  └─/sys/devices/virtual/misc/kvm
                    misc:kvm
lines 18-85/85 (END)

I see 2 MASTER but no seat1
I also have this xorg :
➜  ~  cat /etc/X11/xorg.conf.d/90-ati.conf
Section "Device"
    Identifier     "Seat0"
    Driver         "fglrx"
    BusID          "PCI:1:0:0"
    Option         "ProbeAllGpus" "FALSE"
    MatchSeat      "seat0"
EndSection


Section "Device"
    Identifier     "Seat1"
    Driver         "fglrx"
    BusID          "PCI:3:0:0"
    Option         "ProbeAllGpus" "FALSE"
    MatchSeat      "seat1"
EndSection

On Wed, Sep 2, 2015 at 12:43 PM, Laércio de Sousa
<laerciosousa at sme-mogidascruzes.sp.gov.br> wrote:
> Hi Benoit!
>
> I guess you forgot to tag your seat1 card as "master-of-seat".
>
> 2015-09-02 6:52 GMT-03:00 Benoit Barthelet <benoit.barthelet at gmail.com>:
>>
>> long story short I had a working multiseat setup with 2 GPU / 2 mices
>> and 2 keyboards
>>
>> I changed GPU drivers from open-source radeon to fglrx and it stopped
>> working
>>
>> before the driver change I had configured the 2nd seat to used the gpu
>> / mice / keys with :
>>
>> loginctl attach seat1
>> /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0/
>> etc..
>>
>> the issue with the new drivers it seems is that I can't find the card0
>> in the /sys hierarchy,
>>
>> for instance, it seems to be one of my card, but no seat tag :
>> udevadm info --query=all
>> --path=/sys/devices/pci0000:00/0000:00:07.0/0000:03:00.0
>>
>> P: /devices/pci0000:00/0000:00:07.0/0000:03:00.0
>> E: DEVPATH=/devices/pci0000:00/0000:00:07.0/0000:03:00.0
>> E: DRIVER=fglrx_pci
>> E: ID_MODEL_FROM_DATABASE=Tahiti PRO [Radeon HD 7950/8950 OEM / R9 280]
>> E: ID_PCI_CLASS_FROM_DATABASE=Display controller
>> E: ID_PCI_INTERFACE_FROM_DATABASE=VGA controller
>> E: ID_PCI_SUBCLASS_FROM_DATABASE=VGA compatible controller
>> E: ID_VENDOR_FROM_DATABASE=Advanced Micro Devices, Inc. [AMD/ATI]
>> E: MODALIAS=pci:v00001002d0000679Asv0000174Bsd0000E207bc03sc00i00
>> E: PCI_CLASS=30000
>> E: PCI_ID=1002:679A
>> E: PCI_SLOT_NAME=0000:03:00.0
>> E: PCI_SUBSYS_ID=174B:E207
>> E: SUBSYSTEM=pci
>> E: USEC_INITIALIZED=4263516
>>
>> So I tried to create manually a udev rule
>>
>> /etc/udev/rules.d/71-ati.rules
>>
>> SUBSYSTEM=="pci",
>> DEVPATH=="/devices/pci0000:00/0000:00:01.0/0000:01:00.0", TAG+="seat",
>> TAG+="master-of-seat"
>> SUBSYSTEM=="pci",
>> DEVPATH=="/devices/pci0000:00/0000:00:07.0/0000:03:00.0", TAG+="seat",
>> TAG+="seat1"
>>
>> and now loginctl seat-status seat0 gives a master tag after udevadm
>> trigger :
>> ├─/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0
>>                   │ [MASTER] pci:0000:01:00.0
>>
>> but I can never have a seat1, it never appears so the display manager
>> never tries to launch 2nd X session )
>>
>> I'm at a loss here. any help appreciated
>> _______________________________________________
>> systemd-devel mailing list
>> systemd-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
>
>
>
> --
> Laércio de Sousa
> Orientador de Informática
> Escola Municipal "Professor Eulálio Gruppi"
> Rua Ismael da Silva Mello, 559, Mogi Moderno
> Mogi das Cruzes - SP
> CEP 08717-390
> Telefone: (11) 4726-8313


More information about the systemd-devel mailing list