[Debian-eeepc-devel] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. 107d93a89b32ec594b428f4c214dde123ff28092

Damyan Ivanov dmn at debian.org
Fri Sep 26 04:47:33 UTC 2008


The following commit has been merged in the master branch:
commit 10c1a0601d189fa8ff89ba569b93488d19d81906
Author: Damyan Ivanov <dmn at debian.org>
Date:   Fri Sep 26 07:37:57 2008 +0300

    vga-toggle.sh: run detect_x_display before xrandr
    
    xrandr needs a proper X session available - DISPLAY, XAUTHORITY. Calling
    display_x_display before xrandr invocation sets these up.
    Closes: #500191 -- vga-toggle does nothing. Thanks to John Goerzen for
    reporting.

diff --git a/actions/vga-toggle.sh b/actions/vga-toggle.sh
index ad0f5da..6a90bb4 100755
--- a/actions/vga-toggle.sh
+++ b/actions/vga-toggle.sh
@@ -4,6 +4,7 @@
 [ -d /usr/share/doc/eeepc-acpi-scripts ] || exit 0
 
 . /etc/default/eeepc-acpi-scripts
+. /usr/share/eeepc-acpi-scripts/functions.sh
 
 # return: 0 on disconnect, 1 on connected vga, 2 else
 getvga_status(){
@@ -21,6 +22,7 @@ getvga_status(){
     esac
 }
 
+detect_x_display
 getvga_status;
 # handle return value
 case $? in

-- 
Maintenance of eeepc-acpi-scripts debian package



More information about the Debian-eeepc-devel mailing list