set display scale
:
roo t@firefly:~# cat /sys/class/graphics/fb 0/scale
xscale=100 yscale=100
left=100 top=100 right=100 botto m=100
root@firefly:~# e cho 95 > /sys/class/graphics/fb0/scale
root@firefly:~# cat /sys/class/graphics/fb0/scale
xscale=95 yscale=95
left=95 top=95 right=95 bottom= 95
root@firefly:~# echo yscale=80 > /sys/class/graphics/fb0/scale
root@firefly:~# cat /sys/class/graphics/fb0/scale
xscale=100 yscale=80
left=100 top=80 right=100 bottom=80
root@firefly:~# echo xscale=80 > /sys/class/graphics/fb0/scale
root@firefly:~# cat /sys/class/graphics/fb0/scale
xscale=80 yscale=100
left=80 top=100 right=80 bottom=10 0
s et HDMI output mode
root@firefly:~# cat /sys/class/display/display0.HDMI/mode
1920x1080p-60
root@firefly:~# cat /sys/class/display/display0.HDMI/modes
auto
1920x1080p-60
1920x1080p-50
1280x720p-60
1280x720p-50
720x576p-50
720x480p-60
root@firefly:~# echo 720x480p-60 > /sys/class/display/display0.HDM I/mode
set full color depth
Set full color depth need to use fbset, however , it installed by default in Lubuntu of Firefly-RK3 288. if yo ur ubuntu is not installed fbs et, you can install it by: sudo apt-get install fbse t
then, create a file /etc/i nit/fbset. conf
# fbset - run fbset to set truecol or fbmode
description "run fbset ASAP"
start on startup and started udev or starting lig htd m
task
script
[ -x /bin/fbset ] && /bin/fbset -a -nonstd 1 -d
epth 32 -r
gba "8/0,8/8,8/1
6,8/24"
end script
create a file /etc/X11/xorg.con f
Section "Screen"
Identifier "Default Scree
n"
DefaultDepth 24
EndSection
at last, add startup code in file /etc/rc.local
service lightdm stop
fbset -a -nonstd 1 -depth 32 -rgba 8/0,8/8,8/16,8/24
roo t@firefly:~# cat /sys/class/graphics/fb 0/scale
xscale=100 yscale=100
left=100 top=100 right=100 botto m=100
root@firefly:~# e cho 95 > /sys/class/graphics/fb0/scale
root@firefly:~# cat /sys/class/graphics/fb0/scale
xscale=95 yscale=95
left=95 top=95 right=95 bottom= 95
root@firefly:~# echo yscale=80 > /sys/class/graphics/fb0/scale
root@firefly:~# cat /sys/class/graphics/fb0/scale
xscale=100 yscale=80
left=100 top=80 right=100 bottom=80
root@firefly:~# echo xscale=80 > /sys/class/graphics/fb0/scale
root@firefly:~# cat /sys/class/graphics/fb0/scale
xscale=80 yscale=100
left=80 top=100 right=80 bottom=10 0
s et HDMI output mode
root@firefly:~# cat /sys/class/display/display0.HDMI/mode
1920x1080p-60
root@firefly:~# cat /sys/class/display/display0.HDMI/modes
auto
1920x1080p-60
1920x1080p-50
1280x720p-60
1280x720p-50
720x576p-50
720x480p-60
root@firefly:~# echo 720x480p-60 > /sys/class/display/display0.HDM I/mode
set full color depth
Set full color depth need to use fbset, however , it installed by default in Lubuntu of Firefly-RK3 288. if yo ur ubuntu is not installed fbs et, you can install it by: sudo apt-get install fbse t
then, create a file /etc/i nit/fbset. conf
# fbset - run fbset to set truecol or fbmode
description "run fbset ASAP"
start on startup and started udev or starting lig htd m
task
script
end script
create a file /etc/X11/xorg.con f
Section "Screen"
EndSection
at last, add startup code in file /etc/rc.local
service lightdm stop
fbset -a -nonstd 1 -depth 32 -rgba 8/0,8/8,8/16,8/24
service lightdm start
转自:http://blog.sina.com.cn/s/blog_615e7b3f0102vi8o.html