imx6 not work correctly with LVDS 1366x768

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx6 not work correctly with LVDS 1366x768

3,872件の閲覧回数
mohsen2013
Contributor I

hi

i use kernel linux-rel_imx_4.1.15_2.0.0_ga, when i set hactive=1366 in dts, i face with "EGL Error : Could not create the egl surface: error = "0x3003" in my qt app, but if i set hactive=1368 it will work correctly, except that i have a white  or black rectangle in left side of lcd from top to bottom with 8 pixel with!!!

i searched and find that ipu may only able to work with module 8 of hactive, is it true and how can i solve this problem?

タグ(3)
0 件の賞賛
返信
4 返答(返信)

1,983件の閲覧回数
trsystems
Contributor II

Maybe I had a similar problem 1366x768 displays. My solution was to patch the kernel and now it's working. Hier is a part of my patch:

--- linux-4.1.15-FS1.2.0-rt18/drivers/video/fbdev/core/modedb.c    2016-08-29 11:10:17.000000000 +0200
+++ linux-4.1.15-FS1.2.0-trs/drivers/video/fbdev/core/modedb.c    2016-10-11 14:28:14.000000000 +0200
@@ -928,8 +928,27 @@ void fb_videomode_to_var(struct fb_var_s
 {
     var->xres = mode->xres;
     var->yres = mode->yres;
-    var->xres_virtual = mode->xres;
-    var->yres_virtual = mode->yres;
+    
+    if((mode->xres % 32) != 0) {
+      var->xres_virtual = ((mode->xres / 32) + 1) * 32;
+    }
+    else {
+      var->xres_virtual = mode->xres;
+    }
+    
+    if((mode->yres % 32) != 0) {
+      var->yres_virtual = ((mode->yres / 32) + 1) * 32;
+    }
+    else {
+      var->yres_virtual = mode->yres;
+    }
+    
     var->xoffset = 0;
     var->yoffset = 0;
     var->pixclock = mode->pixclock;

1,983件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi moh

1366x768 resolution doesn't work with the IPU and GPU because that resolution is not multiple of 8.

Also please check

https://community.nxp.com/thread/272026

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,983件の閲覧回数
mohsen2013
Contributor I

Is blank area in left side of LVDS related to this problem?

0 件の賞賛
返信

1,983件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

you can change screen width to 1360 and if blank area will persist,

then this not relates to this problem.

0 件の賞賛
返信