You are not logged in.

#1 2020-04-13 06:56:26

Yann
Member
Registered: 2017-11-23
Posts: 235

[udev] udev drm card0 change event after startup

Hi everyone,

I am on arch linux 5.4.7-arch1-1 using i3wm 4.18-30-gfac60001.
I made an udev rule for hotplug managements. It does stuff such as reload i3 in some situations. However, something like 2 minutes after booting my system triggered an udev drm card0 change.

This is udevadm monitor when having using my laptop for 2 minutes at every boot:

UDEV  [143.491492] change   /devices/pci0000:00/0000:00:02.0/drm/card0 (drm)              # appears 2 minutes after boot
UDEV  [143.492430] add      /devices/pci0000:00/0000:00:02.0/drm/card0/card0-DP-1 (drm)
UDEV  [143.492455] add      /devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/drm_dp_aux0 (drm_dp_aux_dev)
UDEV  [143.492493] add      /devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/i2c-5/i2c-dev/i2c-5 (i2c-dev)
UDEV  [143.493032] add      /devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/i2c-5 (i2c)
UDEV  [143.494817] add      /devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight (backlight)
KERNEL[143.542789] change   /devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight (backlight)
KERNEL[143.686742] change   /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1/0003:046D:C534.0002/0003:046D:4038.0004/power_supply/hidpp_battery_1 (power_supply)
UDEV  [143.688251] change   /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1/0003:046D:C534.0002/0003:046D:4038.0004/power_supply/hidpp_battery_1 (power_supply)
UDEV  [143.895704] change   /devices/pci0000:00/0000:00:02.0/drm/card0 (drm)
UDEV  [143.896420] add      /devices/pci0000:00/0000:00:02.0/drm/card0/card0-DP-2 (drm)
UDEV  [143.896518] add      /devices/pci0000:00/0000:00:02.0/drm/card0/card0-DP-1/i2c-6/i2c-dev/i2c-6 (i2c-dev)
UDEV  [143.896532] add      /devices/pci0000:00/0000:00:02.0/drm/card0/card0-DP-1/drm_dp_aux1 (drm_dp_aux_dev)
UDEV  [143.897013] add      /devices/pci0000:00/0000:00:02.0/drm/card0/card0-DP-1/i2c-6 (i2c)
UDEV  [144.156191] change   /devices/pci0000:00/0000:00:02.0/drm/card0 (drm)
UDEV  [144.156894] add      /devices/pci0000:00/0000:00:02.0/drm/card0/card0-DP-3 (drm)
UDEV  [144.156980] add      /devices/pci0000:00/0000:00:02.0/drm/card0/card0-DP-2/i2c-7/i2c-dev/i2c-7 (i2c-dev)
UDEV  [144.156996] add      /devices/pci0000:00/0000:00:02.0/drm/card0/card0-DP-2/drm_dp_aux2 (drm_dp_aux_dev)
UDEV  [144.157563] add      /devices/pci0000:00/0000:00:02.0/drm/card0/card0-DP-2/i2c-7 (i2c)
UDEV  [144.420018] change   /devices/pci0000:00/0000:00:02.0/drm/card0 (drm)
UDEV  [144.420842] add      /devices/pci0000:00/0000:00:02.0/drm/card0/card0-DP-3/i2c-8/i2c-dev/i2c-8 (i2c-dev)
UDEV  [144.420864] add      /devices/pci0000:00/0000:00:02.0/drm/card0/card0-DP-3/drm_dp_aux3 (drm_dp_aux_dev)
UDEV  [144.421318] add      /devices/pci0000:00/0000:00:02.0/drm/card0/card0-DP-3/i2c-8 (i2c)
UDEV  [144.421788] bind     /devices/pci0000:00/0000:00:02.0 (pci)
UDEV  [144.422585] add      /devices/pci0000:00/0000:00:02.0/cec0 (cec)
UDEV  [144.424200] add      /devices/pci0000:00/0000:00:02.0/graphics/fb0 (graphics)
UDEV  [144.676305] change   /devices/pci0000:00/0000:00:02.0/drm/card0 (drm)
UDEV  [144.945600] change   /devices/pci0000:00/0000:00:02.0/drm/card0 (drm)
UDEV  [144.946394] change   /devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight (backlight)

The issue is that triggered my udev rule that is supposed to be triggered uniquely if there is a hotplug. And I get weird behavior such as not seeing my external monitor and putting all my workspaces in my laptop, forcing the focus at the center of my laptop.

I think I would like not having this event at startup. Is it normal? Am I missing something? What could triggered this event?

Thanks for your time.


all different - all equal

Offline

Board footer

Powered by FluxBB