The Road to Elysium

August 22, 2008

Acer Aspire One Screen Resolution Script

Filed under: Snippets — jorge @ 10:56
#!/bin/bash
#
## Script to extend your Acer Aspire One (AA1) desktop
## Jorge Barrera Grandon <jorge@atlantiscrew.net>
#
#
## Press Fn-F5 on your AA1 till both monitors are 
## active then run this script. Usage is like so:
## ./dual_desktop.sh <resolution> <position of the AA1>
##
## Example: ./dual_desktop.sh 800x600 left
 
XRANDR=`which xrandr`
 
if [ "$1" = "1280x1024" ] || [ "$1" = "1024x768" ] || [ "$1" = "800x600" ] && [ "$2" = "left" ] || [ "$2" = "right" ]; then
 
    echo "Setting resolution to $1 and alignment to $2."
    $XRANDR -s $1
    $XRANDR --output LVDS --$2-of VGA --auto
 
else
    $XRANDR -s 1280x1024 
    $XRANDR --output LVDS --left-of VGA --auto
    echo "No or invalid resolution given - setting resolution to 1280x1024 and alignment to left."
 
fi

2 Comments »

  1. [...] public links >> aspire Acer Aspire One Screen Resolution Script Saved by duschwuschel on Wed 05-11-2008 Privatization and Education Saved by mylungsarempty on [...]

    Pingback by Recent Links Tagged With "aspire" - JabberTags — November 6, 2008 @ 16:19

  2. Thank you,now i can watch my favorite movies on my tv

    Comment by romias — April 13, 2009 @ 19:40

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress