Be more verbose during wake-up and set VIDEO_HOTPLUG so we force the
hotplug-check. I don't know why it worked until now, but we definitely
need to force it as we have no idea what display-status changed.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
if (!video_is_awake(video) || !video_need_hotplug(video))
return 0;
+ log_debug("testing DRM hotplug status");
+
res = drmModeGetResources(vdrm->fd);
if (!res) {
log_err("cannot retrieve drm resources");
return -EACCES;
}
- video->flags |= VIDEO_AWAKE;
+ video->flags |= VIDEO_AWAKE | VIDEO_HOTPLUG;
ret = uterm_drm_video_hotplug(video, true);
if (ret) {
drmDropMaster(vdrm->fd);