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 12 -s 9 /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 ! 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 run_gfx_apps 2>/dev/null 1>&2 &
37 run_multimedia 2>/dev/null 1>&2 &
39 ti-heartbeat-i-am-here 2>/dev/null 1>&2 &