一些Ubuntu下的显示设置方法

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

service lightdm start


转自:http://blog.sina.com.cn/s/blog_615e7b3f0102vi8o.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值