Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

Some display settings of lubuntu

59

Credits

10

Prestige

12

Contribution

registered members

Rank: 2

Credits
59
Posted at 3/5/2015 10:58:49        Only Author  1#

Some display settings of lubuntu

set display scale:

  1. root@firefly:~# cat /sys/class/graphics/fb0/scale
  2. xscale=100 yscale=100
  3. left=100 top=100 right=100 bottom=100

  4. root@firefly:~# echo 95 > /sys/class/graphics/fb0/scale
  5. root@firefly:~# cat /sys/class/graphics/fb0/scale
  6. xscale=95 yscale=95
  7. left=95 top=95 right=95 bottom=95

  8. root@firefly:~# echo yscale=80 > /sys/class/graphics/fb0/scale
  9. root@firefly:~# cat /sys/class/graphics/fb0/scale
  10. xscale=100 yscale=80
  11. left=100 top=80 right=100 bottom=80

  12. root@firefly:~# echo xscale=80 > /sys/class/graphics/fb0/scale
  13. root@firefly:~# cat /sys/class/graphics/fb0/scale
  14. xscale=80 yscale=100
  15. left=80 top=100 right=80 bottom=100
Copy the code


set HDMI output mode
  1. root@firefly:~# cat /sys/class/display/display0.HDMI/mode
  2. 1920x1080p-60

  3. root@firefly:~# cat /sys/class/display/display0.HDMI/modes
  4. auto
  5. 1920x1080p-60
  6. 1920x1080p-50
  7. 1280x720p-60
  8. 1280x720p-50
  9. 720x576p-50
  10. 720x480p-60

  11. 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  
  1. # fbset - run fbset to set truecolor fbmode
  2. description "run fbset ASAP"
  3. start on startup and started udev or starting lightdm
  4. task
  5. script
  6.     [ -x /bin/fbset ] && /bin/fbset -a -nonstd 1 -depth 32 -rgba "8/0,8/8,8/16,8/24"
  7. end script
Copy the code


create a file /etc/X11/xorg.conf
  1. Section "Screen"
  2.     Identifier "Default Screen"
  3.     DefaultDepth 24
  4. EndSection
Copy the code


at last, add startup code in file /etc/rc.local   
  1. service lightdm stop
  2. fbset -a -nonstd 1 -depth 32 -rgba 8/0,8/8,8/16,8/24
  3. service lightdm start
Copy the code



Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list