<div dir="auto"><div>It could be either, but these names are assigned by the kernel – not by udev.</div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Thu, Oct 29, 2020, 22:53 Marcin Kocur <<a href="mailto:marcin2006@gmail.com">marcin2006@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
this is the output of turning off and on my display (using power button):<br>
<br>
<br>
[mk@linux ~]$ udevadm  monitor<br>
monitor will print the received events for:<br>
UDEV - the event which udev sends out after rule processing<br>
KERNEL - the kernel uevent<br>
<br>
KERNEL[79.909185] change <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0 (drm)<br>
KERNEL[79.909318] remove <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/i2c-3/i2c-dev/i2c-3 (i2c-dev)<br>
KERNEL[79.909385] remove <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/i2c-3 (i2c)<br>
KERNEL[79.909564] remove <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0/card0-DP-2/drm_dp_aux1 <br>
(drm_dp_aux_dev)<br>
KERNEL[79.909599] remove <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0/card0-DP-2 (drm)<br>
KERNEL[79.909733] remove <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0/card0-DP-3/drm_dp_aux2 <br>
(drm_dp_aux_dev)<br>
KERNEL[79.909756] remove <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0/card0-DP-3 (drm)<br>
KERNEL[79.909882] change <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0 (drm)<br>
UDEV  [79.912218] remove <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/i2c-3/i2c-dev/i2c-3 (i2c-dev)<br>
UDEV  [79.912301] change <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0 (drm)<br>
UDEV  [79.912708] remove <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/i2c-3 (i2c)<br>
UDEV  [79.913400] remove <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0/card0-DP-2/drm_dp_aux1 <br>
(drm_dp_aux_dev)<br>
UDEV  [79.913832] remove <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0/card0-DP-3/drm_dp_aux2 <br>
(drm_dp_aux_dev)<br>
UDEV  [79.913875] remove <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0/card0-DP-2 (drm)<br>
UDEV  [79.914230] remove <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0/card0-DP-3 (drm)<br>
UDEV  [79.914814] change <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0 (drm)<br>
KERNEL[85.337964] add <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/i2c-3/i2c-dev/i2c-3 (i2c-dev)<br>
KERNEL[85.337996] add <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/i2c-3 (i2c)<br>
UDEV  [85.340976] add <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/i2c-3/i2c-dev/i2c-3 (i2c-dev)<br>
UDEV  [85.342384] add <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/i2c-3 (i2c)<br>
KERNEL[85.482056] add <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0/card0-DP-3 (drm)<br>
KERNEL[85.482116] add <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0/card0-DP-3/drm_dp_aux1 <br>
(drm_dp_aux_dev)<br>
KERNEL[85.482215] change <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0 (drm)<br>
KERNEL[85.482231] add <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0/card0-DP-4 (drm)<br>
KERNEL[85.482308] add <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0/card0-DP-4/drm_dp_aux2 <br>
(drm_dp_aux_dev)<br>
KERNEL[85.482386] change <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0 (drm)<br>
KERNEL[85.482415] change <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0 (drm)<br>
UDEV  [85.483698] add <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0/card0-DP-3 (drm)<br>
UDEV  [85.485053] add <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0/card0-DP-3/drm_dp_aux1 <br>
(drm_dp_aux_dev)<br>
UDEV  [85.486553] change <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0 (drm)<br>
UDEV  [85.487973] add <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0/card0-DP-4 (drm)<br>
UDEV  [85.489186] add <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0/card0-DP-4/drm_dp_aux2 <br>
(drm_dp_aux_dev)<br>
UDEV  [85.490094] change <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0 (drm)<br>
UDEV  [85.491090] change <br>
/devices/pci0000:00/0000:00:08.1/0000:08:00.0/drm/card0 (drm)<br>
<br>
<br>
The monitor was visible in xrandr as DP-2, after power off and on it's <br>
visible as DP-3 (DP-2 is still there "disconnected").<br>
<br>
It's troublesome for:<br>
<br>
- GUI display configurators<br>
<br>
- scripting<br>
<br>
- for Xorg configuration which stops to work:<br>
<br>
Section "Monitor"<br>
     Identifier  "DP-2"<br>
     Option      "Primary" "true"<br>
EndSection<br>
<br>
Is this a bug or a feature?<br>
<br>
-- <br>
Pozdrawiam / Greetings<br>
Marcin Kocur █<br>
<br>
_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">systemd-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</blockquote></div></div></div>