]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
device-manager: Only wait for device timeout for framebuffer devices
authorRay Strode <rstrode@redhat.com>
Fri, 25 Nov 2022 16:27:24 +0000 (11:27 -0500)
committerRay Strode <rstrode@redhat.com>
Tue, 29 Nov 2022 14:22:06 +0000 (09:22 -0500)
At the moment we ignore any udev events that come in before the
device timeout that are not drm devices.

That is because we don't want to use framebuffer devices as anything
but a last resort fallback option.

In the near future we're going to be handling input events from udev
as well. Those will obviously need to be handled right away, just like
drm devices.

This commit makes the check only defer framebuffer devices and not
anything that isn't a drm device.

src/libply-splash-core/ply-device-manager.c

index 47ca411992976c0e17cfaeb392c4c19decc5bd04..7451922fd4705586f84cfdec0ef089274128194e 100644 (file)
@@ -470,7 +470,7 @@ verify_add_or_change (ply_device_manager_t *manager,
                 return true;
 
         subsystem = udev_device_get_subsystem (device);
-        if (strcmp (subsystem, SUBSYSTEM_DRM)) {
+        if (strcmp (subsystem, SUBSYSTEM_FRAME_BUFFER) == 0) {
                 ply_trace ("ignoring since we only handle subsystem %s devices after timeout", subsystem);
                 return false;
         }