Dear visitor, welcome to Dreamboard. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
Quoted
Original von rednax
Hi,
Older images may not have the progressive indicator file yet. So i've
built in backward compatibility (The default output will be
progressive for 720 and interlaced for everything else).
You could store the script in /usr/script
make sure you make the script executable
( chmod +x /usr/script/autores.sh )
start it manually from telnet (/usr/script/autores.sh& ). note the &
at the end.
OR
type the following (dm800# is the unixprompt in telnet.. ) for automatic start on reboot
dm800# cd /etc/init.d
dm800# echo '/usr/script/autores.sh&' > autores
dm800# chmod +x autores
dm800# cd /usr/script
dm800# chmod +x autores.sh
dm800# cd /etc/rc3.d
dm800# ln ../init.d/autores S20autores.sh
dm800# reboot
Enjoy!
Regards,
Rednax

Quoted
Original von rednax
Hi,
Someone over at another forum had the same question, so i'll give the same answer
# DM800 auto resolution change by RedNax
# Just start this script to run in background
# v0.1 initial version
# v0.2 only set outut resolution on change
# v0.3 compare actual output with streamresolution
# v0.4 redid all the code. more compact. Also checks progressiveness
# v0.5 added backward compatibility for older images (ie no progressive 'file')
# v.05b custom version
while [ 1 ]
do
ress=`printf "%d" 0x\`cat /proc/stb/vmpeg/0/yres\``
case $ress in
720) ress=720p ;;
576) ress=576p ;;
1080) ress=1080i50 ;;
*) ress=${ress}i ;;
esac
if [ "`cat /proc/stb/video/videomode`" != "$ress" ]
then
echo $ress > /proc/stb/video/videomode
sleep 4
fi
sleep 1s
done
Enjoy!