2015년 12월 28일 월요일

overscan for ODROID-C1 Ubuntu


1. search overscan values.

Read default values
root@odroid:~# cat /sys/class/graphics/fb0/window_axis
window axis is [100 100 1919 1079]
root@odroid:~#

Try to set overscan values
root@odroid:~# echo 100 100 1919 1079 > /sys/class/graphics/fb0/window_axis
root@odroid:~# echo 0x10001 > /sys/class/graphics/fb0/free_scale


2. make script(overscan.sh)

root@odroid:~# cat overscan.sh
#!/bin/bash

echo 100 100 1919 1079 > /sys/class/graphics/fb0/window_axis
echo 0x10001 > /sys/class/graphics/fb0/free_scale 

root@odroid:~#

3. Auto-start overscan shell script on Ubuntu.

root@odroid:~# cp overscan.sh /etc/init.d/
root@odroid:~# sudo update-rc.d overscan.sh defaults 



left : 10
right : 1919
top : 10
bottom : 1070

댓글 쓰기