diff --git a/src/backends/native/meta-kms-crtc.c b/src/backends/native/meta-kms-crtc.c index 4e4bd4319..9999cf607 100644 --- a/src/backends/native/meta-kms-crtc.c +++ b/src/backends/native/meta-kms-crtc.c @@ -172,6 +172,13 @@ meta_kms_crtc_read_state (MetaKmsCrtc *crtc, crtc->current_state.is_active = drm_crtc->mode_valid; } + meta_topic (META_DEBUG_KMS, + "Read CRTC %u state: active: %d, mode: %s", + crtc->id, crtc->current_state.is_active, + crtc->current_state.is_drm_mode_valid + ? crtc->current_state.drm_mode.name + : "(nil)"); + read_gamma_state (crtc, impl_device, drm_crtc); } diff --git a/src/backends/native/meta-kms-impl-device.c b/src/backends/native/meta-kms-impl-device.c index c762e5ee2..8cc8a3b43 100644 --- a/src/backends/native/meta-kms-impl-device.c +++ b/src/backends/native/meta-kms-impl-device.c @@ -577,6 +577,8 @@ meta_kms_impl_device_update_states (MetaKmsImplDevice *impl_device) meta_assert_in_kms_impl (meta_kms_impl_get_kms (priv->impl)); + meta_topic (META_DEBUG_KMS, "Updating device state for %s", priv->path); + drm_resources = drmModeGetResources (priv->fd); if (!drm_resources) {