Skip to content
Snippets Groups Projects
Commit c3de5f1d authored by Roman Stratiienko's avatar Roman Stratiienko
Browse files

drm_hwcomposer: Add delay between hotplug uevent and modes get


We need some delay to ensure DrmConnector::UpdateModes() will query
correct modes list, otherwise at least RPI4 board may report 0 modes.

Signed-off-by: default avatarRoman Stratiienko <roman.o.stratiienko@globallogic.com>
parent ad29ee9e
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,10 @@ void UEventListener::Routine() {
}
if (drm_event && hotplug_event && hotplug_handler_) {
constexpr useconds_t delay_after_uevent_us = 200000;
/* We need some delay to ensure DrmConnector::UpdateModes() will query
* correct modes list, otherwise at least RPI4 board may report 0 modes */
usleep(delay_after_uevent_us);
hotplug_handler_();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment