How do I change the native display size?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How do I change the native display size?

跳至解决方案
1,137 次查看
patsandt
Contributor III

When I call fbGetDisplayGeometry, I see a width height of 1024x768. I need it to be 1280x800 to support my projector's resolutions. (I need all those pixels for my application). I've tried "fbset -xres 1280 -yres 800", but get an invalid argument error.

标签 (3)
标记 (1)
0 项奖励
1 解答
828 次查看
patsandt
Contributor III

Thanks, but I eventually went into the barebox parameters to "fix" it: for me, that meant this:

video=HDMI-A-1:1280x800-32.

fbset seems to do nothing. I had originally tried 1280x800-24, but it seems that the fb, egl, gl packages want -32, not -24.

在原帖中查看解决方案

0 项奖励
2 回复数
828 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Pat,

    If using fbset command, probably it will generate some issues, you can try these operations:

(1) Switching frambuffer: cat /sys/class/graphics/fb2/modes

(2) echo D:1280x800-60 > /sys/class/graphics/fb2/mode

If there still exist erros, It means that your system doesn't support 1280x800 resolution, so you can't get it in your application. You should re-configure display interface( you should confirm which port you are using: LVDS0/LVDS1/ HDMI / Parallel LCD ?  ) in Linux device tree( BSP) to be 1280x800.

   If you don't know how to port it to your system, please ask BSP or driver softerware engineer to help you do it!

Best Regards,

Weidong

0 项奖励
829 次查看
patsandt
Contributor III

Thanks, but I eventually went into the barebox parameters to "fix" it: for me, that meant this:

video=HDMI-A-1:1280x800-32.

fbset seems to do nothing. I had originally tried 1280x800-24, but it seems that the fb, egl, gl packages want -32, not -24.

0 项奖励