diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-11-04 08:05:28 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2013-11-04 08:05:28 +0100 |
commit | 9b944add91926d0cb8f21ee30f6393df8452e1c3 (patch) | |
tree | edde584a7495b758a67e4232106a792fae047dcf /src | |
parent | a11d71a987e4be099d87c21b31e7fa9f24eaa6ca (diff) |
uterm: drm: set VIDEO_HOTPLUG on wakeup
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/uterm_drm_shared.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/uterm_drm_shared.c b/src/uterm_drm_shared.c index 75830f3..e3b7d8d 100644 --- a/src/uterm_drm_shared.c +++ b/src/uterm_drm_shared.c @@ -658,6 +658,8 @@ int uterm_drm_video_hotplug(struct uterm_video *video, 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"); @@ -728,7 +730,7 @@ int uterm_drm_video_wake_up(struct uterm_video *video) return -EACCES; } - video->flags |= VIDEO_AWAKE; + video->flags |= VIDEO_AWAKE | VIDEO_HOTPLUG; ret = uterm_drm_video_hotplug(video, true); if (ret) { drmDropMaster(vdrm->fd); |