matrix-gui_svn: add init script for dm365-evm.
authorBrijesh Singh <bksingh@ti.com>
Mon, 10 May 2010 22:56:15 +0000 (17:56 -0500)
committerDenys Dmytriyenko <denis@denix.org>
Mon, 10 May 2010 23:47:13 +0000 (19:47 -0400)
* use default Rotation to 0 degrees.
* remove touch screen specific variables.

Signed-off-by: Brijesh Singh <bksingh@ti.com>
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
recipes/ti/matrix-gui/dm365-evm/init [new file with mode: 0755]
recipes/ti/matrix-gui_svn.bb

diff --git a/recipes/ti/matrix-gui/dm365-evm/init b/recipes/ti/matrix-gui/dm365-evm/init
new file mode 100755 (executable)
index 0000000..b0e56ff
--- /dev/null
@@ -0,0 +1,26 @@
+#! /bin/sh
+matrixgui="/usr/bin/matrix_gui"
+GUI_OPTS="-qws -geometry 720x480+0+10 -display transformed:Rot0 /usr/share/matrix/html/menu_main.html"
+
+test -x "$matrixgui" || exit 0
+
+case "$1" in
+  start)
+    # switch to component 480p mode
+    echo 480P-60 > /sys/class/davinci_display/ch0/mode
+    echo COMPONENT > /sys/class/davinci_display/ch0/output
+    echo -n "Starting Matrix GUI application"
+    start-stop-daemon --start --quiet --background --pidfile /var/run/matrix-gui.pid --exec $matrixgui -- $GUI_OPTS
+    echo "."
+    ;;
+  stop)
+    echo -n "Stopping Matrix GUI application"
+    start-stop-daemon --stop --quiet --pidfile /var/run/matrix-gui.pid
+    echo "."
+    ;;
+  *)
+    echo "Usage: /etc/init.d/matrix-gui {start|stop}"
+    exit 1
+esac
+
+exit 0
index 5d0f082..34db1ca 100644 (file)
@@ -6,7 +6,7 @@ PRIORITY = "optional"
 
 SRCREV = "56"
 PV = "1.0"
-PR = "r5+svnr${SRCPV}"
+PR = "r6+svnr${SRCPV}"
 
 SRC_URI = "svn://gforge.ti.com/svn/matrix_gui/;module=trunk;proto=https;user=anonymous;pswd='' \
        file://init \