Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > ac91a2f911bd118a56858d88ea05d1c9 > files > 14

eee-control-0.9.4-4.1mdv2010.1.src.rpm

From d57123f858c0cb699de8b4efd13fc3641e8c2687 Mon Sep 17 00:00:00 2001
From: Grigori Goronzy <greg@hein>
Date: Sat, 8 May 2010 14:09:49 +0200
Subject: [PATCH] Update xrandr device names

---
 eee-dispswitch.sh |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/eee-dispswitch.sh b/eee-dispswitch.sh
index f6f58cd..abdddd7 100755
--- a/eee-dispswitch.sh
+++ b/eee-dispswitch.sh
@@ -4,29 +4,29 @@
 
 # Query VGA connector. Returns 0 when connected.
 vga_query() {
-	xrandr -q | grep "VGA connected" >/dev/null 2>&1
+	xrandr -q | grep "VGA1 connected" >/dev/null 2>&1
 	return $?
 }
 
 # Test whether VGA output is active. Returns 0 when active
 vga_active() {
-	xrandr -q | grep 'VGA connected [0-9]' >/dev/null 2>&1
+	xrandr -q | grep 'VGA1 connected [0-9]' >/dev/null 2>&1
 	return $?
 }
 
 # Switch mode depending on option given through command line
 case "$1" in
 	clone|clone800)
-	xrandr --output LVDS --mode 800x600 --pos 0x0 --output VGA --mode 800x600 --same-as LVDS
+	xrandr --output LVDS1 --mode 800x600 --pos 0x0 --output VGA1 --mode 800x600 --same-as LVDS
 	;;
 
 	clone1024)
-	xrandr --output LVDS --mode 1024x600 --output VGA --mode 1024x768 --same-as LVDS
-	xrandr --output LVDS --pos 0x84
+	xrandr --output LVDS1 --mode 1024x600 --output VGA1 --mode 1024x768 --same-as LVDS1
+	xrandr --output LVDS1 --pos 0x84
 	;;
 
 	single)
-	xrandr --output LVDS --mode 1024x600 --pos 0x0 --output VGA --off
+	xrandr --output LVDS1 --mode 1024x600 --pos 0x0 --output VGA1 --off
 	;;
 
 	auto)
-- 
1.7.0.4