#!/bin/bash XSCREEN_CFG=Screen0 #XORG_CFG="/root/xorg/xorg.conf.portrait_h_ext_x3_1222" #XORG_CFG="./xorg.conf.portrait_h_clone_x3_1222" XORG_CFG="./xorg.conf" if [ `mount | grep /sys/kernel/debug | wc -l` -eq 0 ];then echo "mount GPU debug log"; sudo mount -t debugfs debugfs /sys/kernel/debug fi if [ "$1" == "start" ];then export DISPLAY=:0.0 export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu export QTWEBKIT_PLUGIN_PATH=${FLASH_LIBS_PATH} export X11_PATH=/home/X11 XORG_CONF_FILE=$DEFAULT_XORG_CONF_FILE echo "XORG_CONF_FILE:" $XORG_CONF_FILE #dmesg -c #/usr/bin/Xorg -config ${XORG_CFG} -dpms -s off -screen ${XSCREEN_CFG} -dpi 72 -nolisten tcp vt7 & /bin/Xorg -config ${XORG_CFG} -dpms -s off -screen ${XSCREEN_CFG} -dpi 72 -nolisten tcp vt7 & #./Xorg -config ${XORG_CFG} -dpms -s off -screen ${XSCREEN_CFG} -dpi 72 -nolisten tcp vt7 & sleep 2 # workaround solution /usr/bin/amixer -c 0 sset Master,0 100%,100% unmute cap #compiz & #stop_plymouth xeyes -geometry 300x300+0+0 & xeyes -geometry 300x300+1000+0 & xeyes -geometry 300x300+2000+0 & xeyes -geometry 3000x1000+800+600 & else if [ "$1" == "stop" ];then killall xeyes; killall compiz; killall Xorg; #dmesg -c fi fi