|  | 
    
    Posted at  3/5/2015 10:58:49
        
  
     
 
     
  
   
  Only Author 
    
 
  	             
1# 
Some display settings of lubuntu
| set display scale: 
 
 Copy the coderoot@firefly:~# cat /sys/class/graphics/fb0/scale 
xscale=100 yscale=100
left=100 top=100 right=100 bottom=100
root@firefly:~# echo 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=100
 set HDMI output mode
 
 Copy the coderoot@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.HDMI/mode
 set full color depth
 Set full color depth need to use fbset, however, it installed by default in Lubuntu of Firefly-RK3288. if your ubuntu is not installed fbset, you can install it by: sudo apt-get install fbset
 
 then, create a file /etc/init/fbset.conf
 
 Copy the code# fbset - run fbset to set truecolor fbmode
description "run fbset ASAP"
start on startup and started udev or starting lightdm
task
script
    [ -x /bin/fbset ] && /bin/fbset -a -nonstd 1 -depth 32 -rgba "8/0,8/8,8/16,8/24"
end script
 create a file /etc/X11/xorg.conf
 
 Copy the codeSection "Screen"
    Identifier "Default Screen"
    DefaultDepth 24
EndSection
 at last, add startup code in file /etc/rc.local
 
 Copy the codeservice lightdm stop
fbset -a -nonstd 1 -depth 32 -rgba 8/0,8/8,8/16,8/24
service lightdm start
 
 
 | 
 |