]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
device-manager: probe existing DRM devices at startup
authorDaniel Drake <drake@endlessm.com>
Thu, 16 Jun 2016 22:25:05 +0000 (15:25 -0700)
committerRay Strode <rstrode@redhat.com>
Fri, 17 Jun 2016 14:30:25 +0000 (10:30 -0400)
A regression introduced in 7e37d58be3e9acff36c53c420b399c18d08bd8f8
means that we only look for DRM devices that appear while we're waiting,
we don't consider any that are already present before we started.

shutdown splash was not appearing because of this.

Solve this by explicitly searching for already-initialized DRM devices as
we start up.

https://bugs.freedesktop.org/show_bug.cgi?id=96560

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

index bdc07b392556a27cbc05ae8c878bac3ea3796a92..2ff03517bc3658d3dc73f28a2d3879d80993f968 100644 (file)
@@ -816,6 +816,7 @@ ply_device_manager_watch_devices (ply_device_manager_t                *manager,
         }
 
         watch_for_udev_events (manager);
+        create_devices_for_subsystem (manager, SUBSYSTEM_DRM);
         ply_event_loop_watch_for_timeout (manager->loop,
                                          device_timeout,
                                          (ply_event_loop_timeout_handler_t)