flasher: enable tv-out
authorGrazvydas Ignotas <notasas@gmail.com>
Thu, 16 Oct 2014 22:11:04 +0000 (01:11 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Thu, 16 Oct 2014 22:11:04 +0000 (01:11 +0300)
flasher/rootfs/etc/init.d/rc

index afb5b8d..881ea71 100755 (executable)
@@ -10,6 +10,25 @@ fbset -depth 16
 log "Starting updater. Press Alt+RightArrow for verbose output.."
 log ""
 
+# enable TV out so this can be useful without a LCD
+cd /sys/devices/platform/omapdss
+echo 0 > display1/enabled
+echo 0 > overlay0/enabled
+echo 0 > overlay1/enabled
+echo 0 > overlay2/enabled
+echo "" > /sys/class/graphics/fb2/overlays
+echo "" > /sys/class/graphics/fb1/overlays
+echo "0,2" > /sys/class/graphics/fb0/overlays
+echo "svideo" > display1/venc_type
+echo "tv" > overlay2/manager
+echo "ntsc" > display1/timings
+echo "655,455" > overlay2/output_size
+echo "40,15" > overlay2/position
+echo 1 > overlay0/enabled
+echo 1 > overlay2/enabled
+echo 1 > display1/enabled
+cd $OLDPWD
+
 # wait a bit for things to settle..
 sleep 2