summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@novell.com>2010-02-18 15:41:04 -0600
committerFederico Mena Quintero <federico@novell.com>2010-02-18 15:41:04 -0600
commitf8f1aaa9f57456f2d7ff66f95f3e5eb8719a549b (patch)
tree344a75d8d88743f8814698753ebff62e700f8858
parent32387d6abfb92d27e18b172070734bf4e1040e17 (diff)
downloadgnome-settings-daemon-f8f1aaa9f57456f2d7ff66f95f3e5eb8719a549b.tar.gz
RANDR - Allow 'LCD' as a laptop's output name
Fglrx (proprietary ATI driver that makes me cry) and RadeonHD both seem to use "LCD" as a prefix to the output name of the built-in LCD. In the future we will try to be more robust by using RANDR 1.3's ConnectorType property for outputs. Signed-off-by: Federico Mena Quintero <federico@novell.com>
-rw-r--r--plugins/xrandr/gsd-xrandr-manager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/xrandr/gsd-xrandr-manager.c b/plugins/xrandr/gsd-xrandr-manager.c
index 08a75d5c..577be09c 100644
--- a/plugins/xrandr/gsd-xrandr-manager.c
+++ b/plugins/xrandr/gsd-xrandr-manager.c
@@ -492,7 +492,8 @@ is_laptop (GnomeOutputInfo *output)
if (output->connected && output_name &&
(strstr (output_name, "lvds") ||
strstr (output_name, "LVDS") ||
- strstr (output_name, "Lvds")))
+ strstr (output_name, "Lvds") ||
+ strstr (output_name, "LCD")))
{
return TRUE;
}