自动根据盒子安卓系统分辨率调整画面输出的办法:
- 用网上邻居连上 S905盒子,打开\Root\storage\.config\autostart.sh,在
- #!/bin/sh
- # USB roms
- sleep 2
- 后添加以下语句:
- MODE=`cat /sys/class/display/mode`;
- if [ “$MODE” = “480p60hz” ]; then
- fbset -fb /dev/fb0 -g 720 480 720 960 32
- fi
- MODE=`cat /sys/class/display/mode`;
- if [ “$MODE” = “576p50hz” ]; then
- fbset -fb /dev/fb0 -g 720 576 720 1152 32
- fi
- MODE=`cat /sys/class/display/mode`;
- if [ “$MODE” = “720p60hz” ]; then
- fbset -fb /dev/fb0 -g 1280 720 1280 1440 32
- #else
- #echo 720p60hz > /sys/class/display/mode
- #fbset -fb /dev/fb0 -g 1280 720 1280 1440 32
- fi
- MODE=`cat /sys/class/display/mode`;
- if [ “$MODE” = “720p50hz” ]; then
- fbset -fb /dev/fb0 -g 1280 720 1280 1440 32
- fi
- MODE=`cat /sys/class/display/mode`;
- if [ “$MODE” = “1080p60hz” ]; then
- fbset -fb /dev/fb0 -g 1920 1080 1920 2160 32
- fi
- MODE=`cat /sys/class/display/mode`;
- if [ “$MODE” = “1080i60hz” ]; then
- fbset -fb /dev/fb0 -g 1920 1080 1920 2160 32
- fi
- MODE=`cat /sys/class/display/mode`;
- if [ “$MODE” = “1080p50hz” ]; then
- fbset -fb /dev/fb0 -g 1920 1080 1920 2160 32
- fi
- MODE=`cat /sys/class/display/mode`;
- if [ “$MODE” = “480cvbs” ]; then
- fbset -fb /dev/fb0 -g 1280 960 1280 1920 32
- fbset -fb /dev/fb1 -g 32 32 32 32 32
- echo 0 0 1279 959 > /sys/class/graphics/fb0/free_scale_axis
- echo 30 10 669 469 > /sys/class/graphics/fb0/window_axis
- echo 640 > /sys/class/graphics/fb0/scale_width
- echo 480 > /sys/class/graphics/fb0/scale_height
- echo 0x10001 > /sys/class/graphics/fb0/free_scale
- fi
- MODE=`cat /sys/class/display/mode`;
- if [ “$MODE” = “576cvbs” ]; then
- fbset -fb /dev/fb0 -g 1280 960 1280 1920 32
- fbset -fb /dev/fb1 -g 32 32 32 32 32
- echo 0 0 1279 959 > /sys/class/graphics/fb0/free_scale_axis
- echo 35 20 685 560 > /sys/class/graphics/fb0/window_axis
- echo 720 > /sys/class/graphics/fb0/scale_width
- echo 576 > /sys/class/graphics/fb0/scale_height
- echo 0x10001 > /sys/class/graphics/fb0/free_scale
- fi
这是最最完美的设置方案,安卓系统是什么分辨率,SX05RE下就是什么分辨率,完全
依赖安卓系统的分辨率,支持安卓盒子的各种 HDMI常见分辨率和 AV输出。
版权申明:
请先
!