From: Rodrigo Vivi Subject: [PATCH] uxa: Do not change DPMS mode on unconnected outputs Date: Fri, 20 Sep 2013 07:56:40 -0300 Message-ID: <1379674600-23138-1-git-send-email-rodrigo.vivi@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-yh0-f52.google.com (mail-yh0-f52.google.com [209.85.213.52]) by gabe.freedesktop.org (Postfix) with ESMTP id 7D927E5FEB for ; Fri, 20 Sep 2013 03:56:57 -0700 (PDT) Received: by mail-yh0-f52.google.com with SMTP id v1so56084yhn.11 for ; Fri, 20 Sep 2013 03:56:57 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org "The operation is in theory redundant, and in the case of Haswell where we have multiple outputs aliasing to the same encoder, actually harmful." Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68030 Credits-to: Chris Wilson Tested-by: Rodrigo Vivi Signed-off-by: Rodrigo Vivi --- src/uxa/intel_display.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/uxa/intel_display.c b/src/uxa/intel_display.c index 7dc0f68..0cb63b3 100644 --- a/src/uxa/intel_display.c +++ b/src/uxa/intel_display.c @@ -1123,10 +1123,11 @@ intel_output_dpms(xf86OutputPtr output, int dpms) intel_output_dpms_backlight(output, intel_output->dpms_mode, dpms); - drmModeConnectorSetProperty(mode->fd, - intel_output->output_id, - props->prop_id, - dpms); + if (output->crtc) + drmModeConnectorSetProperty(mode->fd, + intel_output->output_id, + props->prop_id, + dpms); if (dpms != DPMSModeOff) intel_output_dpms_backlight(output, intel_output->dpms_mode, -- 1.8.1.4