Android auto resize.

Post Reply
Gengar65
Posts: 1
Joined: Tue Dec 23, 2025 5:10 am

Android auto resize.

Post by Gengar65 »

I have a touch display that's 1280x800. Which means android auto won't fit the full screen. Changing the resolution in the main config.json has been tricky. 720p fits the full width but leaves it 80px short on the bottom, and 1080p extends it past the display. Setting height and width to 1280x800 does nothing. Setting useRpiDrm doesn't seem to make a difference. Most changes result in reverting back to default. I thought about changing height margin and width margin but I'm a little unclear on how to do so. Any help would be appreciated, thanks!
hudiy
Site Admin
Posts: 440
Joined: Mon Jul 14, 2025 7:42 pm

Re: Android auto resize.

Post by hudiy »

Hello,
For non-standard resolutions (other than 480p, 720p, or 1080p), margins are required to properly stretch the render surface. See below for the 1280x800 resolution values:

Code: Select all

    "androidAuto" : {
        .......
        "resolution" : "1080p",
        "widthMargin" : 640,
        "heightMargin" : 280,
        .....
    },
Explanation:
1080p corresponds to 1920x1080
Your screen resolution is 1280x800 (it will not fit Android Auto resolutions lower than 1080p).
(width) 1920 - 1280 = 640 -> widthMargin
(height) 1080 - 800 = 280 -> heightMargin

You can also increase the DPI (e.g., to 220) to enlarge the elements on the Android Auto interface.

If you are using Pi5, we also recommend setting useRpiDrm to true.

Useful links:
viewtopic.php?t=7
https://github.com/wiboma/hudiy/blob/ma ... ndroidauto
Post Reply