From patchwork Wed Jul 15 22:11:26 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesse Barnes X-Patchwork-Id: 35785 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n6FMIBXR001350 for ; Wed, 15 Jul 2009 22:18:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753864AbZGOWSL (ORCPT ); Wed, 15 Jul 2009 18:18:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753640AbZGOWSL (ORCPT ); Wed, 15 Jul 2009 18:18:11 -0400 Received: from outbound-mail-16.bluehost.com ([69.89.20.231]:55897 "HELO outbound-mail-16.bluehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753940AbZGOWSJ (ORCPT ); Wed, 15 Jul 2009 18:18:09 -0400 Received: (qmail 29105 invoked by uid 0); 15 Jul 2009 22:11:29 -0000 Received: from unknown (HELO box514.bluehost.com) (74.220.219.114) by outboundproxy1.bluehost.com with SMTP; 15 Jul 2009 22:11:29 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=virtuousgeek.org; h=Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To:References:X-Identified-User; b=APLNFXFXs+cSHs0QtX/CEboJbZjTf2wJWoicjmyW8i8VJmFRui6GjXGZybNPknbh7Hz3h4jXI0Ox0cqqY+Tq/ny8GWnRJHz4FEmLK4Jvbi/aLl9Bw/rFNkxmiI4td9Jp; Received: from [75.111.28.251] (helo=localhost.localdomain) by box514.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1MRChF-0007ii-7x; Wed, 15 Jul 2009 16:11:29 -0600 From: Jesse Barnes To: intel-gfx@lists.freedesktop.org, linux-acpi@vger.kernel.org Cc: Jesse Barnes Subject: [PATCH 4/4] drm/i915: generate a KMS uevent at lid open/close time Date: Wed, 15 Jul 2009 15:11:26 -0700 Message-Id: <1247695886-18432-5-git-send-email-jbarnes@virtuousgeek.org> X-Mailer: git-send-email 1.6.0.4 In-Reply-To: <1247695886-18432-1-git-send-email-jbarnes@virtuousgeek.org> References: <1247695886-18432-1-git-send-email-jbarnes@virtuousgeek.org> X-Identified-User: {10642:box514.bluehost.com:virtuous:virtuousgeek.org} {sentby:smtp auth 75.111.28.251 authed with jbarnes@virtuousgeek.org} Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org With all the other lid pieces in place, it's easy to generate a uevent for the LVDS connector just like we do for other outputs. Should make lid open/close fit in with the rest of a userland based output reconfiguration scheme. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_lvds.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c index 57c86fd..7cb6633 100644 --- a/drivers/gpu/drm/i915/intel_lvds.c +++ b/drivers/gpu/drm/i915/intel_lvds.c @@ -659,6 +659,8 @@ static int intel_lid_notify(struct notifier_block *nb, unsigned long val, if (acpi_lid_open()) drm_helper_resume_force_mode(dev); + drm_sysfs_hotplug_event(dev_priv->dev); + return NOTIFY_OK; }