[Debian-eeepc-commits] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. 48f69705749c5b14848f479d685624961aa3cd84
Ben Armstrong
synrg at debian.org
Sun Dec 21 13:48:32 UTC 2008
The following commit has been merged in the master branch:
commit 48f69705749c5b14848f479d685624961aa3cd84
Author: Ben Armstrong <synrg at debian.org>
Date: Sun Dec 21 09:48:21 2008 -0400
Saner default/config variables for VGA toggle
diff --git a/debian/eeepc-acpi-scripts.default b/debian/eeepc-acpi-scripts.default
index 228c427..17e1906 100644
--- a/debian/eeepc-acpi-scripts.default
+++ b/debian/eeepc-acpi-scripts.default
@@ -7,9 +7,17 @@ OSD_FONT='DejaVuSans 36'
VOLUME_LABEL='LineOut'
HEADPHONE_LABEL='iSpeaker'
-# these are the switches for xrandr --output VGA when Fn-F5 is used to
-# select LCD+VGA mode
-COMBINED_DISPLAY_SWITCHES='--mode 640x480'
+# These are the switches for xrandr --output VGA and --output LVDS
+# respectively when Fn-F5 is used to select VGA mode.
+# * If --auto doesn't give good results for your monitor, specify a
+# mode, e.g.
+# VGA_ON='--mode 1024x768'
+# LVDS_OFF='--off'
+# * For xinerama-style (desktop is split across both displays) try:
+# VGA_ON='--auto --above LVDS'
+# LVDS_OFF='--auto'
+VGA_ON='--auto'
+LVDS_OFF='--off'
# attempt to lock running xscreensaver or gnome-screensaver on suspend
LOCK_SCREEN_ON_SUSPEND='yes'
diff --git a/etc/acpi/actions/vga-toggle.sh b/etc/acpi/actions/vga-toggle.sh
index ee50023..e56d101 100755
--- a/etc/acpi/actions/vga-toggle.sh
+++ b/etc/acpi/actions/vga-toggle.sh
@@ -30,9 +30,9 @@ getvga_status;
# handle return value
case $? in
2)
- xrandr --output VGA --off
+ xrandr --output VGA --off --output LVDS --auto
;;
*)
- xrandr --output VGA $COMBINED_DISPLAY_SWITCHES
+ xrandr --output VGA $VGA_ON --output LVDS $LVDS_OFF
esac
--
Maintenance of eeepc-acpi-scripts debian package
More information about the Debian-eeepc-commits
mailing list