From 3f2a867a49875c7053c859de9fb9f8b13be11e2a Mon Sep 17 00:00:00 2001 From: Alexander Boettcher Date: Thu, 12 Dec 2024 15:07:07 +0100 Subject: [PATCH] intel/display: report no inuse mode on disabled connector Fixes #5404 --- repos/pc/src/driver/framebuffer/intel/pc/lx_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/pc/src/driver/framebuffer/intel/pc/lx_user.c b/repos/pc/src/driver/framebuffer/intel/pc/lx_user.c index 563b7290223..c4eec40ecef 100644 --- a/repos/pc/src/driver/framebuffer/intel/pc/lx_user.c +++ b/repos/pc/src/driver/framebuffer/intel/pc/lx_user.c @@ -939,7 +939,7 @@ void lx_emul_i915_iterate_modes(void * lx_data, void * genode_data) .height_mm = mode->height_mm, .preferred = mode->type & (DRM_MODE_TYPE_PREFERRED | DRM_MODE_TYPE_DEFAULT), - .inuse = !quirk_inuse && state->mode_id == mode_id, + .inuse = !quirk_inuse && state->mode_id == mode_id && state->enabled, .mirror = state->mirrored, .hz = drm_mode_vrefresh(mode), .id = mode_id,