]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/util-scripts.git/blob - demo/cockpit-demo-infotainment-VM.sh
926b3fd2225c091a313d89e0fedc2de540a7ac9c
[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="OpenGLESImageBasedLighting OpenGLESDeferredShading OpenGLESIntroducingUIRenderer OpenGLESParticleSystem"
7         while true;
8         do
9                 for i in $DEMOLIST;
10                 do
11                         echo "                        Running $i...";
12                         timeout -t 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 &
37 run_multimedia &