diff options
-rw-r--r-- | README | 9 | ||||
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | scripts/xinitrc | 9 |
3 files changed, 15 insertions, 4 deletions
@@ -31,6 +31,15 @@ make build-[module] Build a single module. make clean Delete build artifacts and sources. make bug-report Generate a bug report. += Environment variables = + +SUGAR_OUTPUT + +Sugar does not run properly on multiple video outputs, so we need to select one +and turn off the others. By default we select the first output listed by RandR. +You can set this variable to override that with any other of the connected +outputs reported by xrandr command, for example VGA1 if you have an external monitor. + = Report bugs = To generate bug report information @@ -1,3 +1,2 @@ * Ensure we have pkg-config, probably refactor as prerequisites -* Add SUGAR_OUTPUT * Build web activity diff --git a/scripts/xinitrc b/scripts/xinitrc index 90927bf..20a2276 100644 --- a/scripts/xinitrc +++ b/scripts/xinitrc @@ -13,9 +13,12 @@ OUTPUTS=`scripts/list-outputs` for output in $OUTPUTS do - if [ -z "$FIRST_OUTPUT" ]; then - FIRST_OUTPUT=$output - else + # Default to the first output in the list + if [ -z $SUGAR_OUTPUT ]; then + SUGAR_OUTPUT=$output + fi + + if [ $SUGAR_OUTPUT != $output ]; then xrandr --output $output --off fi done |