[Debian-eeepc-devel] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. a2a9a94f604953b97241c46365963874cfd3b205
Nico Golde
nion at debian.org
Fri Mar 7 15:37:25 UTC 2008
The following commit has been merged in the master branch:
commit b638bfc42ccf14bcfb076a7520e93d44d0801007
Author: Nico Golde <nion at debian.org>
Date: Fri Mar 7 16:36:56 2008 +0100
improve vga toggle support, makeing the command configurable
diff --git a/actions/vga-toggle.sh b/actions/vga-toggle.sh
index 3c27927..ad0f5da 100755
--- a/actions/vga-toggle.sh
+++ b/actions/vga-toggle.sh
@@ -3,6 +3,8 @@
# do nothing if package is removed
[ -d /usr/share/doc/eeepc-acpi-scripts ] || exit 0
+. /etc/default/eeepc-acpi-scripts
+
# return: 0 on disconnect, 1 on connected vga, 2 else
getvga_status(){
STATUS=$( xrandr -q | grep VGA | cut -d ' ' -f 2,3 )
@@ -26,6 +28,6 @@ case $? in
xrandr --output VGA --off
;;
*)
- xrandr --auto;;
+ xrandr --output VGA $COMBINED_DISPLAY_SWITCHES
esac
diff --git a/debian/eeepc-acpi-scripts.default b/debian/eeepc-acpi-scripts.default
index be3717c..3ebae91 100644
--- a/debian/eeepc-acpi-scripts.default
+++ b/debian/eeepc-acpi-scripts.default
@@ -1,8 +1,12 @@
# by default OSD output of function keys is disabled because it's too slow
# set to yes if you want fancy osd overlayS
-ENABLE_OSD="no"
+ENABLE_OSD='no'
OSD_FONT='DejaVuSans 36'
# lookup the following values by using amixer if they don't work for you
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'
--
Maintenance of eeepc-acpi-scripts debian package
More information about the Debian-eeepc-devel
mailing list