Skip to main content Link Menu Expand (external link) Document Search Copy Copied

[display]

Setting Type Explanation
width Integer Width in pixels of the display. This setting isn’t normally required; the system will use whatever the device’s screen provides up to the maximum of 1920x1080. Note that for some displays some custom settings may need to be added to the Pi’s config.txt file to specify the screen’s resolution if the Pi cannot automatically detect it.
height Integer Height in pixels of the display. This setting isn’t normally required either (see above).
xscale Floating point value This setting isn’t normally required but it can be used to scale the entire display either upwards or downwards. For example, if you wanted to use an XML page file that was designed for a 1920 resolution screen on a 1080 resolution screen, you could specify xscale to make all of the components fit (you will also need to specify a yscale to ensure that the aspect ratio is maintained). 1.0 represents no scaling. 2.0 would make everything double in width. 0.5 would half the width of everything
yscale Floating point value See above but for height rather than width.