Android auto resize.
Android auto resize.
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!
Re: Android auto resize.
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:
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
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,
.....
},
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