Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e7350978b8
Fetching contributors…

Cannot retrieve contributors at this time

executable file 41 lines (34 sloc) 1.237 kb
#!/bin/sh
# See /boot/DSS
ovl0=/sys/devices/platform/omapdss/overlay0
ovl1=/sys/devices/platform/omapdss/overlay1
ovl2=/sys/devices/platform/omapdss/overlay2
mgr0=/sys/devices/platform/omapdss/manager0
mgr1=/sys/devices/platform/omapdss/manager1
dvi=/sys/devices/platform/omapdss/display0
tv=/sys/devices/platform/omapdss/display1
w=`cat $dvi/timings | cut -d "," -f 2 | cut -d "/" -f 1`
h=`cat $dvi/timings | cut -d "," -f 3 | cut -d "/" -f 1`
echo "Current resolution is $w x $h"
# Set TV timings
echo "ntsc" > $tv/timings
#echo "pal" > $tv/timings
w=`cat $tv/timings | cut -d "," -f 2 | cut -d "/" -f 1`
h=`cat $tv/timings | cut -d "," -f 3 | cut -d "/" -f 1`
echo "Switching to TV output ($w x $h)..."
echo "0" > $tv/enabled
echo "0" > $dvi/enabled
echo "" > $mgr0/display
fbset -fb /dev/fb0 -xres $w -yres $h -vxres $w -vyres $h
echo "tv" > $mgr0/display
echo "1" > $tv/enabled
sleep 10
w=`cat $dvi/timings | cut -d "," -f 2 | cut -d "/" -f 1`
h=`cat $dvi/timings | cut -d "," -f 3 | cut -d "/" -f 1`
echo "Switching to DVI output ($w x $h)..."
echo "0" > $tv/enabled
echo "0" > $dvi/enabled
echo "" > $mgr0/display
fbset -fb /dev/fb0 -xres $w -yres $h -vxres $w -vyres $h
echo "dvi" > $mgr0/display
echo "1" > $dvi/enabled
Jump to Line
Something went wrong with that request. Please try again.