<div dir="ltr"><div><div>Arnaud,<br><br></div>You must focus on the graphics/fb* syspaths (since they are tagged as [MASTER] in udev/logind), not the drm/card* ones. You must attach the [MASTER] devnode to a new seat in order to create it.<br><br></div>BTW, systemd already ships udev rules to set property ID_AUTOSEAT for DisplayLink USB 2.0 Docking Stations, so that you don't need to attach them manually. Maybe these rules should be updated to include USB 3.0 Docking Stations as well.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-04 13:00 GMT-03:00 arnaud gaboury <span dir="ltr"><<a href="mailto:arnaud.gaboury@gmail.com" target="_blank">arnaud.gaboury@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thu, Sep 3, 2015 at 5:06 PM, arnaud gaboury <<a href="mailto:arnaud.gaboury@gmail.com">arnaud.gaboury@gmail.com</a>> wrote:<br>
><br>
> On Thu, Sep 3, 2015, 3:46 PM Floris <<a href="mailto:jkfloris@dds.nl">jkfloris@dds.nl</a>> wrote:<br>
><br>
>><br>
>> I was missing one piece of the puzzle. My USB dock station is<br>
>> Plugable® UD-3900 USB 3.0<br>
>><br>
>> --------------------------------------------------------<br>
>> 1-<br>
>> I had to install the kernel driver for it, following instructions per<br>
>> this displaylink forum[0]. Once the .rpm package installed, I could<br>
>> verify:<br>
>> $ lsmod | grep evdi<br>
>><br>
>> evdi                   36864  0<br>
>> drm_kms_helper        122880  2 evdi,nouveau<br>
>> drm                   331776  10 ttm,evdi,drm_kms_helper,nouveau<br>
>><br>
>><br>
>> # ll /lib/modules/$(uname -r)/extra/evdi.ko<br>
>> -rw-r--r--. 1 root root 63072  3 sept. 14:29<br>
>> /lib/modules/4.1.6-200.fc22.x86_64/extra/evdi.ko<br>
>><br>
>> ------------------------------------------------<br>
>> 2-<br>
>> Now $ loginctl seat-status seat0 returns something more interesting:<br>
>><br>
>>   ├─/sys/devices/platform/evdi.0/drm/card1<br>
>>                   │ drm:card1<br>
>><br>
>> So I guess now I have indeed two cards.<br>
>><br>
><br>
> Lets make things clear. The usb dock will be your second seat. I think<br>
> the next steps will be enough:<br>
><br>
> loginctl attach seat1 /sys/devices/platform/evdi.0/drm/card1<br>
> loginctl attach seat1 /the path to the usb3 hub<br>
><br>
> everything you didn't attach with loginctl or with an udev rule will<br>
> be part of seat0. So if your nvidia card is for seat0 you don't have<br>
> to write a rule for it.<br>
><br>
> Ok. So it would be indeed much simpler than first thought.<br>
<br>
</div></div>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br>
I can't create a new seat1, no idea why.<br>
<br>
Here is my current configuration:<br>
<br>
-nvidia card + nvidia driver + nouveau blacklisted<br>
- USB 3 dock station with displaylink driver + systemd service<br>
- gdm<br>
- systemd 219<br>
<br>
---------------------------------------------------------------------------<br>
$ loginctl seat-status<br>
        Sessions: *1 c1<br>
         Devices:<br>
<span class=""><br>
                  ├─/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0<br>
                  │ drm:card0<br>
<br>
</span>├─/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/renderD128<br>
                  │ drm:renderD128<br>
<br>
├─/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/graphics/fb0<br>
                  │ [MASTER] graphics:fb0 "nouveaufb"<br>
    ............................................................................<br>
                  ├─/sys/devices/platform/evdi.0/graphics/fb1<br>
                  │ [MASTER] graphics:fb1 "evdidrmfb"<br>
                  ├─/sys/devices/platform/evdi.1/drm/card2<br>
                  │ drm:card2<br>
                  ├─/sys/devices/platform/evdi.1/graphics/fb2<br>
                  │ [MASTER] graphics:fb2 "evdidrmfb"<br>
<span class="">                  ├─/sys/devices/virtual/misc/kvm<br>
                  │ misc:kvm<br>
                  └─/sys/devices/virtual/misc/rfkill<br>
                    misc:rfkill<br>
</span>-------------------------------------------------------------------------------------<br>
<br>
# loginctl attach seat1 /sys/devices/platform/evdi.1/drm/card2<br>
then same for usb devices<br>
<br>
<br>
$ ls /etc/udev/rules.d<br>
72-seat-drm-platform-evdi_0.rules<br>
72-seat-drm-platform-evdi_1.rules<br>
72-seat-input-pci-0000_00_14_0-usb-0_10_4_1_1_1.rules<br>
72-seat-input-pci-0000_00_14_0-usb-0_10_4_2_1_2.rules<br>
72-seat-usb-pci-0000_00_14_0.rules<br>
72-seat-usb-pci-0000_00_14_0-usb-0_10_4.rules<br>
99-displaylink.rules<br>
99-nvidia_seats.rules<br>
<br>
NB: All the 72-seat* have been created when I run $ loginctl attache<br>
seat1 MyDevice<br>
<br>
----------------------------<br>
$ udevadmn info /sys/devices/platform/evdi.1/drm/card2<br>
<br>
P: /devices/platform/evdi.1/drm/card2<br>
N: dri/card2<br>
E: DEVNAME=/dev/dri/card2<br>
E: DEVPATH=/devices/platform/evdi.1/drm/card2<br>
E: DEVTYPE=drm_minor<br>
E: ID_FOR_SEAT=drm-platform-evdi_1<br>
E: ID_PATH=platform-evdi.1<br>
E: ID_PATH_TAG=platform-evdi_1<br>
E: ID_SEAT=seat1<br>
E: MAJOR=226<br>
E: MINOR=2<br>
E: SUBSYSTEM=drm<br>
E: TAGS=:seat:seat1:uaccess:<br>
E: USEC_INITIALIZED=160111782<br>
------------------------------------------------------------<br>
<br>
$ cat /etc/udev/rules.d/99-displaylink.rules<br>
 (shipped with the displaylink .rmp driver)<br>
<span class="">---------------------------------------<br>
ACTION=="add", SUBSYSTEM=="usb", ENV{ID_VENDOR}=="DisplayLink",<br>
MODE="0660", RUN+="/bin/systemctl start displaylink.service"<br>
ACTION=="remove", SUBSYSTEM=="usb", ENV{ID_VENDOR}=="DisplayLink",<br>
RUN+="/bin/systemctl stop displaylink.service"<br>
----------------------------------------------<br>
<br>
</span>$ cat /etc/udev/rules.d/99-nvidia_seats.rules<br>
----------------------------------------------------------<br>
# provide a suitable udev rule to tag your NVIDIA card as "master-of-seat"<br>
<span class="">  SUBSYSTEM=="drm", KERNEL=="card[0-9]*", ATTRS{vendor}=="0x10de",<br>
DRIVERS=="nvidia", TAG+="master-of-seat"<br>
<br>
  SUBSYSTEM=="pci", ATTRS{vendor}=="0x10de", DRIVER=="nvidia",<br>
TAG+="seat", TAG+="master-of-seat"<br>
</span>----------------------------------------------------------------<br>
<br>
cat /etc/udev/rules.d/72-seat-drm-platform-evdi_1.rules<br>
-----------------------------------------------<br>
TAG=="seat", ENV{ID_FOR_SEAT}=="drm-platform-evdi_1", ENV{ID_SEAT}="seat1"<br>
-------------------------------------------------<br>
<br>
cat /etc/udev/rules.d/72-seat-input-pci-0000_00_14_0-usb-0_10_4_1_1_1.rules<br>
--------------------------------------<br>
<br>
TAG=="seat", ENV{ID_FOR_SEAT}=="input-pci-0000_00_14_0-usb-0_10_4_1_1_1",<br>
ENV{ID_SEAT}="seat1"<br>
---------------------------------------------------<br>
<br>
<br>
<br>
# systemctl restart systemd-udev-trigger.service (or even reboot)<br>
<br>
$ loginctl show-session (two users logged in)<br>
  SESSION        UID USER             SEAT<br>
         2       1001 Martin           seat0<br>
         1       1000 Louis            seat0<br>
        c1         42 gdm              seat0<br>
3 sessions listed.<br>
<span class=""><br>
$ loginctl list-seats<br>
<br>
SEAT<br>
seat0<br>
<br>
</span>1 seats listed.<br>
<br>
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br>
<br>
What am I missing? Why can't I create seat1 ?<br>
Maybe # rm /etc/udev/rules.d/72*  and try again ?<br>
<br>
<br>
<br>
<br>
Thank you for help.<br>
<span class="im HOEnZb"><br>
<br>
><br>
> Will try this later when I will get hand on the Fedora box.<br>
> Thank you so much for your clarifications.<br>
><br>
> success,<br>
><br>
> floris<br>
> _______________________________________________<br>
> systemd-devel mailing list<br>
> <a href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
><br>
><br>
<br>
<br>
<br>
</span><span class="HOEnZb"><font color="#888888">--<br>
<br>
<a href="http://google.com/+arnaudgabourygabx" rel="noreferrer" target="_blank">google.com/+arnaudgabourygabx</a><br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><b>Laércio de Sousa</b><br></div><div style="text-align:center"><div style="text-align:left"><i>Orientador de Informática</i></div><div style="text-align:left"><u>Escola Municipal "Professor Eulálio Gruppi"</u></div><div style="text-align:left"><i>Rua Ismael da Silva Mello, 559, Mogi Moderno</i></div><i><div style="text-align:left"><i>Mogi das Cruzes - SP</i></div><div style="text-align:left"><i>CEP 08717-390</i></div></i></div><div><span style="font-family:arial;font-size:small">Telefone: (11) 4726-8313</span></div></div></div>
</div>