]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/util-scripts.git/blob - demo/cockpit-demo-infotainment-VM.sh
demo: Fix demo script to reorder apps
[glsdk/util-scripts.git] / demo / cockpit-demo-infotainment-VM.sh
1 #!/bin/bash
2 #Utility to run integrated cockpit on DRA8xx devices
3 #This script needs to be run on the inmate cell (Infotainment VM)
5 run_gfx_apps() {
6         DEMOLIST="OpenGLESIntroducingPVRUtils OpenGLESImageBasedLighting OpenGLESDeferredShading OpenGLESParticleSystem OpenGLESIntroducingUIRenderer"
7         while true;
8         do
9                 for i in $DEMOLIST;
10                 do
11                         echo ">>>>>>>>>>>>>>>>>>>>>> Running $i...";
12                         timeout -s 9 12 /usr/bin/SGX/demos/Wayland/$i -width=800 -height=600
13                 done
14         done
15 }
17 run_multimedia() {
18         CLIPLIST="TearOfSteel-Short-1280x720.265"
19         while true;
20         do
21                 for i in $CLIPLIST;
22                 do
23                         gst-launch-1.0 filesrc location=/usr/share/ti/video/$i ! h265parse ! v4l2h265dec ! video/x-raw,format=NV12 ! waylandsink
24                 done
25         done
26 }
28 ####### Start here
29 ##################
31 /etc/init.d/matrix-gui-2.0 stop
32 msleep 500
33 . /etc/profile
35 sleep 2
36 run_gfx_apps 2>/dev/null 1>&2 &
38 run_multimedia 2>/dev/null 1>&2 &
40 ti-heartbeat-i-am-here 2>/dev/null 1>&2 &
42 /usr/share/ti/util-scripts/demo/crash-VM.sh 2>/dev/null  1>&2 &