Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Difference between revisions of "Rock/display"

Line 3: Line 3:
 
The cpu of Radxa Rock - RK3188 has two LCD controllers, LCD0 and LCD1. On RR, LCD1 is connected to HDMI and LCD0 is connect to AV out and the LCD0 signal are also exported on the extension header.
 
The cpu of Radxa Rock - RK3188 has two LCD controllers, LCD0 and LCD1. On RR, LCD1 is connected to HDMI and LCD0 is connect to AV out and the LCD0 signal are also exported on the extension header.
  
There is some sysfs interface exported to control the framebuffer under /sys/devices/platform/rk-fb/graphics/
+
There is some sysfs interface exported to control the display related stuff.
 +
 
 +
   
 +
=== set display scale ===
 
     root@radxa:~# cd /sys/devices/platform/rk-fb/graphics/fb0
 
     root@radxa:~# cd /sys/devices/platform/rk-fb/graphics/fb0
* set display scale
 
 
     root@radxa:/sys/devices/platform/rk-fb/graphics/fb0# cat scale
 
     root@radxa:/sys/devices/platform/rk-fb/graphics/fb0# cat scale
 
     xscale=95 yscale=95
 
     xscale=95 yscale=95
Line 12: Line 14:
 
     root@radxa:/sys/devices/platform/rk-fb/graphics/fb0# cat scale
 
     root@radxa:/sys/devices/platform/rk-fb/graphics/fb0# cat scale
 
     xscale=100 yscale=100
 
     xscale=100 yscale=100
 +
 +
=== set HDMI output mode ===
 +
    root@radxa:~# cd /sys/class/display/display0.HDMI
 +
you can see supported output modes by the following commands:
 +
    root@radxa:/sys/class/display/display0.HDMI# cat modes
 +
    1920x1080p-60
 +
    1920x1080p-50
 +
    1280x720p-60
 +
    1280x720p-50
 +
    720x576p-50
 +
    720x480p-60
 +
check out the current display mode
 +
    root@radxa:/sys/class/display/display0.HDMI# cat mode
 +
    1280x720p-60
 +
It's 720p@60hz
 +
 +
change the mode to 1080p@60hz
 +
    root@radxa:/sys/class/display/display0.HDMI# echo 1920x1080p-60 > mode

Revision as of 09:10, 7 March 2014

The cpu of Radxa Rock - RK3188 has two LCD controllers, LCD0 and LCD1. On RR, LCD1 is connected to HDMI and LCD0 is connect to AV out and the LCD0 signal are also exported on the extension header.

There is some sysfs interface exported to control the display related stuff.


set display scale

   root@radxa:~# cd /sys/devices/platform/rk-fb/graphics/fb0
   root@radxa:/sys/devices/platform/rk-fb/graphics/fb0# cat scale
   xscale=95 yscale=95
   root@radxa:/sys/devices/platform/rk-fb/graphics/fb0# echo xscale=100 > scale     
   root@radxa:/sys/devices/platform/rk-fb/graphics/fb0# echo yscale=100 > scale     
   root@radxa:/sys/devices/platform/rk-fb/graphics/fb0# cat scale
   xscale=100 yscale=100

set HDMI output mode

   root@radxa:~# cd /sys/class/display/display0.HDMI

you can see supported output modes by the following commands:

   root@radxa:/sys/class/display/display0.HDMI# cat modes 
   1920x1080p-60
   1920x1080p-50
   1280x720p-60
   1280x720p-50
   720x576p-50
   720x480p-60

check out the current display mode

   root@radxa:/sys/class/display/display0.HDMI# cat mode
   1280x720p-60

It's 720p@60hz

change the mode to 1080p@60hz

   root@radxa:/sys/class/display/display0.HDMI# echo 1920x1080p-60 > mode