From 9a71445094b728f3d78db8f6808b4782ee19a453 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Wed, 8 Mar 2017 17:42:56 +0900 Subject: Pass TRUE to drmmode_set_desired_modes the first time for GPU screens This is the only place we call drmmode_set_desired_modes for GPU screens during server startup. Without this change, the display outputs of secondary GPUs may stay on even while Xorg isn't using them. Reviewed-by: Alex Deucher --- src/radeon_kms.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/radeon_kms.c b/src/radeon_kms.c index 907ebfcf..424f9f72 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -328,7 +328,8 @@ static Bool RADEONCreateScreenResources_KMS(ScreenPtr pScreen) } } - if (!drmmode_set_desired_modes(pScrn, &info->drmmode, FALSE)) + if (!drmmode_set_desired_modes(pScrn, &info->drmmode, + radeon_is_gpu_screen(pScreen))) return FALSE; drmmode_uevent_init(pScrn, &info->drmmode); -- cgit v1.2.3