root
20th November 2008, 14:56
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.
Thanks 2 (RedNax / Nabilosat Member) 4 this Script/Info......
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
The script:
# 21/9/2008 v0.4 ;P
# 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')
while [ 1 ]
do
ress=`printf "%d" 0x\`cat /proc/stb/vmpeg/0/yres\``
if [ -f /proc/stb/vmpeg/0/progressive ]
then
case `cat /proc/stb/vmpeg/0/progressive` in
0) ress=${ress}i ;;
1) ress=${ress}p ;;
esac
else
case $ress in
720) ress=${ress}p ;;
*) ress=${ress}i ;;
esac
fi
if [ "`cat /proc/stb/video/videomode`" != "$ress" ]
then
echo $ress > /proc/stb/video/videomode
sleep 4
fi
sleep 1s
done
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.
Thanks 2 (RedNax / Nabilosat Member) 4 this Script/Info......
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
The script:
# 21/9/2008 v0.4 ;P
# 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')
while [ 1 ]
do
ress=`printf "%d" 0x\`cat /proc/stb/vmpeg/0/yres\``
if [ -f /proc/stb/vmpeg/0/progressive ]
then
case `cat /proc/stb/vmpeg/0/progressive` in
0) ress=${ress}i ;;
1) ress=${ress}p ;;
esac
else
case $ress in
720) ress=${ress}p ;;
*) ress=${ress}i ;;
esac
fi
if [ "`cat /proc/stb/video/videomode`" != "$ress" ]
then
echo $ress > /proc/stb/video/videomode
sleep 4
fi
sleep 1s
done