Different Resolutions (4:3, 1680x1050...)
#1
Hi is there a way to add any others resolutions than 1080p or 720p ? Like 1024x768, 1280x1024, 1680x1050 etc...
Is it a problem with actual kernel or is it hardware related problems with AllWinner Chips ?

Thanks in advance
  Reply
#2
Lenny is working on getting the video driver into the kernel for linux/

... coming soon.
  Reply
#3
The video resolutions are independent of the Mali accelerator. Currently the Linux kernel driver supports the following resolutions in HDMI mode:

Code:
struct disp_video_timings video_timing[] =
{
        //VIC                              PCLK    AVI_PR  X      Y      HT      HBP   HFP   HST    VT     VBP  VFP  VST h_pol v_pol int vac   trd
        {HDMI1440_480I,      0,13500000,  1,  720,   480,   858,   57,   19,   62,  525,   15,  4,  3,  0,   0,   1,   0,   0},
        {HDMI1440_576I,      0,13500000,  1,  720,   576,   864,   69,   12,   63,  625,   19,  2,  3,  0,   0,   1,   0,   0},
        {HDMI480P,           0,27000000,  0,  720,   480,   858,   60,   16,   62,  525,   30,  9,  6,  0,   0,   0,   0,   0},
        {HDMI576P,           0,27000000,  0,  720,   576,   864,   68,   12,   64,  625,   39,  5,  5,  0,   0,   0,   0,   0},
        {HDMI720P_50,        0,74250000,  0,  1280,  720,   1980,  220,  440,  40,  750,   20,  5,  5,  1,   1,   0,   0,   0},
        {HDMI720P_60,        0,74250000,  0,  1280,  720,   1650,  220,  110,  40,  750,   20,  5,  5,  1,   1,   0,   0,   0},
        {HDMI1080I_50,       0,74250000,  0,  1920,  1080,   2640,  148,  528,  44,  1125,  15,  2,  5,  1,   1,   1,   0,   0},
        {HDMI1080I_60,       0,74250000,  0,  1920,  1080,   2200,  148,  88,   44,  1125,  15,  2,  5,  1,   1,   1,   0,   0},
        {HDMI1080P_50,       0,148500000, 0,  1920,  1080,  2640,  148,  528,  44,  1125,  36,  4,  5,  1,   1,   0,   0,   0},
        {HDMI1080P_60,       0,148500000, 0,  1920,  1080,  2200,  148,  88,   44,  1125,  36,  4,  5,  1,   1,   0,   0,   0},
        {HDMI1080P_24,       0,74250000,  0,  1920,  1080,  2750,  148,  638,  44,  1125,  36,  4,  5,  1,   1,   0,   0,   0},
        {HDMI1080P_25,       0,74250000,  0,  1920,  1080,  2640,  148,  528,  44,  1125,  36,  4,  5,  0,   0,   0,   0,   0},
        {HDMI1080P_30,       0,74250000,  0,  1920,  1080,  2200,  148,  88,   44,  1125,  36,  4,  5,  0,   0,   0,   0,   0},
        {HDMI1080P_24_3D_FP, 0,148500000, 0,  1920,  2160,  2750,  148,  638,  44,  1125,  36,  4,  5,  1,   1,   0,   45,  1},
        {HDMI720P_50_3D_FP,  0,148500000, 0,  1280,  1440,  1980,  220,  440,  40,  750,   20,  5,  5,  1,   1,   0,   30,  1},
        {HDMI720P_60_3D_FP,  0,148500000, 0,  1280,  1440,  1650,  220,  110,  40,  750,   20,  5,  5,  1,   1,   0,   30,  1},
        {HDMI3840_2160P_30,  0,297000000, 0,  3840,  2160,  4400,  296,  176,  88,  2250,  72,  8, 10,  1,   1,   0,    0,  0},
        {HDMI3840_2160P_25,  0,297000000, 0,  3840,  2160,  5280,  296, 1056,  88,  2250,  72,  8, 10,  1,   1,   0,    0,  0},
        {HDMI_EDID,},
};

While the timing generators can be configured for other resolutions as well (see LCD output), one would have to figure out how to add new resolutions here and what is exactly supported by the hardware, but I think not all documentation for the AW Display Engine 2 are out in the open...

   
   
   

(from AW Usermanual)

Code:
Support LVDS interface with single link, up to 1366x768@60fps
Support RGB interface with DE/SYNC mode, up to 1920x1200@60fps
Support serial RGB/dummy RGB/CCIR656 interface, up to 800x480@60fps
Support i80 interface with 18/16/9/8 bit, support TE, up to 800x480@60fps
Support 4-lanes MIPI DSI up to 1920x1200@60fps
Support HDMI1.4 with HDCP1.2 up to4K@30fps
Support pixel format: RGB888, RGB666 and RGB565
Dither function from RGB666/RGB565 to RGB888
Gamma correction with R/G/B channel independence
4 interrupts for programmer LCD output 2
input source: DE sources
Come have a chat in the Pine IRC channel >>
  Reply
#4
(06-24-2016, 12:37 PM)MarkHaysHarris777 Wrote: Lenny is working on getting the video driver into the kernel for linux/

... coming soon.

Cool Smile

Thanks
  Reply
#5
(06-24-2016, 12:52 PM)LeRoms77 Wrote:
(06-24-2016, 12:37 PM)MarkHaysHarris777 Wrote: Lenny is working on getting the video driver into the kernel for linux/

... coming soon.

Cool Smile

Thanks

LeRoms77,

MarkHaysHarris777 was trying to be helpful, but the driver will not affect the supported resolutions; it only affects graphics acceleration in linux. Please see what Xalius wrote (above) - I believe that you can change output resolution in /boot/uEnv.txt
You can find me on IRC, Discord and Twitter


  Reply
#6
(06-25-2016, 06:52 AM)Luke Wrote:
(06-24-2016, 12:52 PM)LeRoms77 Wrote:
(06-24-2016, 12:37 PM)MarkHaysHarris777 Wrote: Lenny is working on getting the video driver into the kernel for linux/

... coming soon.

Cool Smile

Thanks

LeRoms77,

MarkHaysHarris777 was trying to be helpful, but the driver will not affect the supported resolutions; it only affects graphics acceleration in linux. Please see what Xalius wrote (above) - I believe that you can change output resolution in /boot/uEnv.txt

Yes you can change resolution in uEnv.txt, but there isn't any resolutions like 1680x1050, 1024x768 or 1280x1024 available...
  Reply
#7
There is no resolution in uEnv.txt in Ubuntu 16.04 LTS.
I added the line below but the default resolution is still 1920x1080 which on a 7 inch touch screen is readable only using a magnifier. I guess that line is not OK.
-----------------------------------------------
video=HDMI-A-1:800x480@60
-----------------------------------------------
root@PINE64:~# cat /sys/class/graphics/fb0/modes
U:1920x1080p-0
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)