From 9c0b73c0038e416191e2e521ba224a7b68da48b4 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 7 Jun 2012 10:08:49 +0100 Subject: [PATCH] drm/i915: Fire off a hotplug event for lid open Rather than brute force a mode reconfiguration, emit a hotplug event and let X or fbcon handle the event gracefully. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/intel_lvds.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c index a8f5ab3..2cf6644 100644 --- a/drivers/gpu/drm/i915/intel_lvds.c +++ b/drivers/gpu/drm/i915/intel_lvds.c @@ -541,10 +541,8 @@ static int intel_lid_notify(struct notifier_block *nb, unsigned long val, dev_priv->modeset_on_lid = 0; - mutex_lock(&dev->mode_config.mutex); - drm_helper_resume_force_mode(dev); - mutex_unlock(&dev->mode_config.mutex); - + /* Fire off a uevent and let the system reconfigure itself */ + drm_helper_hpd_irq_event(dev); return NOTIFY_OK; } -- 1.7.10