Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166021
b: refs/heads/master
c: 7121413
h: refs/heads/master
i:
  166019: 5da0249
v: v3
  • Loading branch information
Jesse Barnes committed Sep 17, 2009
1 parent 44b9526 commit af18f1d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 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: 1a133e0c9dabda23e6693cabfdc1d5106dca5fc2
refs/heads/master: 7121413f2accf14cf05b38539fb7a8be77543370
14 changes: 13 additions & 1 deletion trunk/drivers/gpu/drm/i915/intel_lvds.c
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,18 @@ static void intel_lvds_mode_set(struct drm_encoder *encoder,
I915_WRITE(PFIT_CONTROL, lvds_priv->pfit_control);
}

/* Some lid devices report incorrect lid status, assume they're connected */
static const struct dmi_system_id bad_lid_status[] = {
{
.ident = "Aspire One",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
DMI_MATCH(DMI_PRODUCT_NAME, "Aspire one"),
},
},
{ }
};

/**
* Detect the LVDS connection.
*
Expand All @@ -602,7 +614,7 @@ static enum drm_connector_status intel_lvds_detect(struct drm_connector *connect
{
enum drm_connector_status status = connector_status_connected;

if (!acpi_lid_open())
if (!acpi_lid_open() && !dmi_check_system(bad_lid_status))
status = connector_status_disconnected;

return status;
Expand Down

0 comments on commit af18f1d

Please sign in to comment.