Skip to content

Commit

Permalink
drm/i915: blacklist Acer AspireOne lid status
Browse files Browse the repository at this point in the history
It reports closed when open, leading to "no outputs found" at startup
unless a VGA cable is plugged in.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
  • Loading branch information
Jesse Barnes committed Sep 17, 2009
1 parent 1a133e0 commit 7121413
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion 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 7121413

Please sign in to comment.