|
Posted at 3/5/2015 10:58:49
Only Author
1#
Some display settings of lubuntu
set display scale:
- root@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
Copy the code
set 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.HDMI/mode
Copy the code
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
- # 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
Copy the code
create a file /etc/X11/xorg.conf
- Section "Screen"
- Identifier "Default Screen"
- DefaultDepth 24
- EndSection
Copy the code
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
Copy the code
|
|