drm/i915: generate a KMS uevent at lid open/close time
authorJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 10 Sep 2009 22:28:05 +0000 (15:28 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 10 Sep 2009 23:10:31 +0000 (16:10 -0700)
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 <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_lvds.c

index 90f69d4717e96a85efa62c75ac7d15e8c82b3151..c4799bd7eaad31e0f63ceb2b589908a2c421ce05 100644 (file)
@@ -649,6 +649,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;
 }