[gnome-desktop/gnome-3-4] bgo#672030 - Use "default" as the laptop's built-in output's name as a catch-all for NVidia and othe
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop/gnome-3-4] bgo#672030 - Use "default" as the laptop's built-in output's name as a catch-all for NVidia and othe
- Date: Thu, 31 May 2012 19:18:14 +0000 (UTC)
commit 1f9845907687c0fb9699babf77fdccb1ffb966de
Author: Martin Pitt <martin pitt canonical com>
Date: Tue Apr 3 14:12:34 2012 -0500
bgo#672030 - Use "default" as the laptop's built-in output's name as a catch-all for NVidia and others
Drivers that don't bother to do RANDR properly tend to use "default" for the built-in
output's name. So, let's use that as a last heuristic to detect laptop displays.
Patch by James M. Leddy.
Original bug at https://launchpad.net/bugs/949296
(cherry picked from commit cc326c09a5d52ba0a627b9cdc3434731d6cfa692)
libgnome-desktop/gnome-rr.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libgnome-desktop/gnome-rr.c b/libgnome-desktop/gnome-rr.c
index 6f226bd..47164e2 100644
--- a/libgnome-desktop/gnome-rr.c
+++ b/libgnome-desktop/gnome-rr.c
@@ -1907,7 +1907,8 @@ gnome_rr_output_is_laptop (GnomeRROutput *output)
strstr (output->name, "Lvds") ||
strstr (output->name, "LCD") || /* ... but fglrx uses "LCD" in some versions. Shoot me now, kthxbye. */
strstr (output->name, "eDP") || /* eDP is for internal laptop panel connections */
- strstr (output->name, "DFP"))) /* DFP is also an internal laptop display */
+ strstr (output->name, "DFP") || /* DFP is also an internal laptop display */
+ strstr (output->name, "default"))) /* Finally, NVidia and all others that don't bother to do RANDR properly */
return TRUE;
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]