Xorg -nolisten tcp &
export XPID=$!
waitforX || ! echo failed in waitforX || exitand so on...$ Xorg-nolisten tcp
-sh: Xorg-nolisten: not found[ 54.215] (II) LoadModule: "modesetting"
[ 54.215] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[ 54.216] (EE) Failed to load /usr/local/lib/xorg/modules/drivers/modesetting_drv.so: libgbm.so.1: cannot open shared object file: No such file or directory
[ 54.216] (EE) Failed to load module "modesetting" (loader failed, 0)
[ 54.216] (EE) No drivers available.
[ 54.216] (EE) Fatal server error:
[ 54.216] (EE) no screens found(EE)
[ 54.216] (EE) Please consult the The X.Org Foundation support
at http://wiki.x.org for help.
[ 54.216] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 54.216] (EE)
[ 54.216] (EE) Server terminated with error (1). Closing log file.Drivers might be missing?tce-load -i Xorg-3d flwm aterm wbar
startx..things should work[code][ 36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[ 36.176536] pcm512x 1-004d: Failed to get supplies: -517
[ 36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517[/code]
[ 36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[ 36.176536] pcm512x 1-004d: Failed to get supplies: -517
[ 36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517#wait for framebuffer
Timeout=0
while [ $Timeout -lt 40 ] ; do
[ -c /dev/fb0 ] && break
Timeout=$(($Timeout + 1 ))
sleep 0.25
done
export DISPLAY=":0.0"
/usr/local/bin/Xorg -retro -s 0 vt07 &
sleep 2
/opt/DynaViewIII/bin/dviii_m /dev/ttyAMA0 &>/opt/dviii.log &
X takes a while to start up, I have to use the sleep command to make sure it's ready. I've used /usr/local/bin/startx /opt/DynaViewIII/bin/dviii_m /dev/ttyAMA0 -- -retro -s 0 vt07
And it sometimes works. :( #!/bin/bash
export DISPLAY=":0.0"
Xorg -retro -s 0 vt07 &
sleep 2
/opt/DynaViewIII/bin/dviii_m /dev/ttyAMA0 >/opt/dviii.log 2>&1 &
This is a real shortcut and does not follow the normal guidelines for startup scripts in /etc/init.d. You might want to look at other scripts in init.d and follow their pattern. A more normal way of starting an X11 app would be:startx /opt/DynaViewIII/bin/dviii_m /dev/ttyAMA0 >/opt/dviii.log 2>&1 -- -retro -s 0 vt07 &You need the ampersand ("&") as startx normally does not return until the app quits. As I mentioned before, startx doesn't always work for me. I have another system where I have using a Display 2 and using xrandr to rotate it. In this case startx works but calling Xorg directly doesn't rotate the screen. So YMMV.