device-manager: probe existing DRM devices at startup

A regression introduced in 7e37d58be3
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
This commit is contained in:
Daniel Drake 2016-06-16 15:25:05 -07:00 committed by Ray Strode
parent c207314659
commit adaa298965

View 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)