incres.sh

#!/bin/sh
#
# incres - fake higher screen resolutions on the Asus Eee PC
# (c) Andrew Flegg 2008. Released under the Artistic Licence.


DEFAULT_RES=960x576

# -- Check prereqs...
#
which Xvnc 1>/dev/null 2>&1 || REQ=vncserver
which krdc 1>/dev/null 2>&1 || REQ=krdc

if [ "x$REQ" != "x" ]; then
    echo "Install $REQ, e.g. apt-get install $REQ"
    exit 1
fi

# -- Support -h option...
#
if [ "x$1" == "x-h" ]; then
    echo "syntax: $0 [<wxh>]"
    exit 1
fi

# -- Get resolution...
#
RES=$1
[ -z "$RES" ] && RES=$DEFAULT_RES

# -- Start services...
#
Xvnc :1 -depth 16 -geometry $RES -localhost -dpi 100 -once -rfbwait 10000 &
sleep 2
export INCRES=$$
(krdc -fsh localhost:1; 
 kill $INCRES;
 sleep 1;
 kill -9 $INCRES;
 sleep 1;
 killall -9 Xvnc) &

DISPLAY=:1 exec /etc/X11/Xsession


Generated by GNU Enscript 1.6.5.90.

Download incres.sh