diff mbox

drm/i915: generate a KMS uevent at lid open/close time

Message ID 1252621686-27307-5-git-send-email-jbarnes@virtuousgeek.org (mailing list archive)
State Accepted
Headers show

Commit Message

Jesse Barnes Sept. 10, 2009, 10:28 p.m. UTC
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>
 drivers/gpu/drm/i915/intel_lvds.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff mbox


diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c
index 349a2a4..ac485f2 100644
--- a/drivers/gpu/drm/i915/intel_lvds.c
+++ b/drivers/gpu/drm/i915/intel_lvds.c
@@ -649,6 +649,8 @@  static int intel_lid_notify(struct notifier_block *nb, unsigned long val,
 	if (acpi_lid_open())
+	drm_sysfs_hotplug_event(dev_priv->dev);
 	return NOTIFY_OK;