Skip to content

Commit

Permalink
Removed xscreensaver references due Karmic issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Morgillo committed Mar 1, 2010
1 parent 8d40872 commit a8d658f
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions intelswitch
Expand Up @@ -78,41 +78,17 @@ function setVGA {
if [ "$?" = "0" ]; then
echo Got it!
xrandr --output VGA --mode $VGA_res@60 --output LVDS --off

ps aux | grep xscreensaver | grep -v grep > /dev/null
GREPEXIT=`echo $?`
if [ $GREPEXIT = 1 ]; then
xscreensaver -no-splash &
else
echo xscreensaver already running
fi
else
echo Mode not found. Creating VGA 1680x1050@60 mode.
xrandr --newmode "$VGA_res@60" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
xrandr --addmode VGA $VGA_res@60
xrandr --output VGA --mode $VGA_res@60 --output LVDS --off

ps aux | grep xscreensaver | grep -v grep
GREPEXIT=`echo $?`
if [ $GREPEXIT = 1 ]; then
xscreensaver -no-splash &
else
echo xscreensaver already running
fi
fi
}

function setLVDS {
echo Disable VGA
xrandr --output VGA --off --output LVDS --mode $LVDS_res

ps aux | grep xscreensaver | grep -v grep
GREPEXIT=`echo $?`
if [ $GREPEXIT = 1 ]; then
xscreensaver -no-splash &
else
echo xscreensaver already running
fi
}

if [ "$1" = "--newmode" ]; then
Expand Down

0 comments on commit a8d658f

Please sign in to comment.