How do I change the native display size?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How do I change the native display size?

Jump to solution
1,046 Views
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.

Labels (3)
Tags (1)
0 Kudos
1 Solution
737 Views
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.

View solution in original post

0 Kudos
2 Replies
737 Views
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 Kudos
738 Views
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 Kudos