Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165991
b: refs/heads/master
c: b42d4c5
h: refs/heads/master
i:
  165989: 14cda92
  165987: faceb02
  165983: 0c575d8
v: v3
  • Loading branch information
Jesse Barnes authored and Eric Anholt committed Sep 10, 2009
1 parent fc1a26d commit bdfed9c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c1c7af60892070e4b82ad63bbfb95ae745056de0
refs/heads/master: b42d4c5c6a872815d711e5d51a600f5122c38eee
12 changes: 9 additions & 3 deletions trunk/drivers/gpu/drm/i915/intel_lvds.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,12 +589,18 @@ static void intel_lvds_mode_set(struct drm_encoder *encoder,
/**
* Detect the LVDS connection.
*
* This always returns CONNECTOR_STATUS_CONNECTED. This connector should only have
* been set up if the LVDS was actually connected anyway.
* Since LVDS doesn't have hotlug, we use the lid as a proxy. Open means
* connected and closed means disconnected. We also send hotplug events as
* needed, using lid status notification from the input layer.
*/
static enum drm_connector_status intel_lvds_detect(struct drm_connector *connector)
{
return connector_status_connected;
enum drm_connector_status status = connector_status_connected;

if (!acpi_lid_open())
status = connector_status_disconnected;

return status;
}

/**
Expand Down

0 comments on commit bdfed9c

Please sign in to comment.