Skip to content

Screen resolution

Paul edited this page Apr 22, 2025 · 16 revisions

The screen resolution can be set in the cfg file (sdrberry_config.cfg)

Default 800x480 DSI display:

[screen]
resolution = "0"

Possible resolutions are

0 800x480 (default)
1 800x600
2 1024x600
3 1024x768
4 1280x720
5 1600x1200
6 1920x1080
7 2048x1080
8 2560x1440
9 3200x1800
10 3840x2160

For Raspberry pi Touch 2 display the screen resolution has to be set to 1280x720 but the screen has to be rotated. Also the touch interface need to be rotated, but this is done already by the graphic software. In sdrberry_config.cfg set following options:

[input]
touch_swap_xy = "0"

[screen]
resolution = "4"
rotation = "1"
rotation 1 = 270 degrees rotation.
rotation 2 = 180 degrees rotation.
rotation 3 = 90 degrees rotation.

You can check the display color settings by issuing fbset command

pi@pi6:~ $ fbset

mode "720x1280"
    geometry 720 1280 720 1280 32
    timings 0 0 0 0 0 0 0
    rgba 8/16,8/8,8/0,0/0
endmode

The old PI 7 inch and much of the 5 inch displays have 16 bits (DSI), but some can have 32 bits. If you have a 800x480 display with 32 bits change the colordepth to 32 in lv_conf.h

Clone this wiki locally