| 1 | --- a/config/udev.c |
| 2 | +++ b/config/udev.c |
| 3 | @@ -311,10 +311,9 @@ wakeup_handler(pointer data, int err, po |
| 4 | return; |
| 5 | action = udev_device_get_action(udev_device); |
| 6 | if (action) { |
| 7 | - if (!strcmp(action, "add")) { |
| 8 | - device_removed(udev_device); |
| 9 | + if (!strcmp(action, "add")) |
| 10 | device_added(udev_device); |
| 11 | - } else if (!strcmp(action, "change")) { |
| 12 | + else if (!strcmp(action, "change")) { |
| 13 | /* ignore change for the drm devices */ |
| 14 | if (strcmp(udev_device_get_subsystem(udev_device), "drm")) { |
| 15 | device_removed(udev_device); |
| 16 | --- a/hw/xfree86/os-support/linux/lnx_platform.c |
| 17 | +++ b/hw/xfree86/os-support/linux/lnx_platform.c |
| 18 | @@ -160,6 +160,8 @@ xf86PlatformDeviceProbe(struct OdevAttri |
| 19 | return; |
| 20 | |
| 21 | out_free: |
| 22 | + LogMessage(X_INFO, "config/udev: Ignoring already known drm device (%s)\n", |
| 23 | + path); |
| 24 | config_odev_free_attribute_list(attribs); |
| 25 | } |
| 26 | |