Page 1 of 1

Waveshare 17916, Android Auto Window Size

Posted: Fri Feb 13, 2026 10:37 pm
by D3dl3g
I bought a Waveshare 17916 screen for my Hudiy (running on a Pi4B)

Works beautifully aside from i cant seem to set Android Auto window properly it auto loads to a "default size" of approximately 600x400

Screen resolution is 1280x 400 in landscape mode, i set the fields in ~/.hudiy/share/config/main_configuration.json (as sudo) as follows to allow some room for the task bar an changed no other value.
..."androidAuto": {
"width": 1280,
"height": 350, ...
after a save and reboot the window stayed the same size as before (approximately 600x400)

Is there a minimum size the AA window has to be? or am i missing a different arg/setting?

Re: Waveshare 17916, Android Auto Window Size

Posted: Fri Feb 13, 2026 10:54 pm
by hudiy
You also need to adjust resolution, widthMargin and heightMargin to match desired rendering surface size (1280x350):

Surface size: 1280x350
720p -> 1280x720
widthMargin: 1280 - 1280 = 0
heightMargin: 720 - 350 = 370

Code: Select all

    "androidAuto" : {
        .........
        "resolution" : "720p",
        "widthMargin" : 0,
        "heightMargin" : 370,
        "width" : 1280,
        "height" : 350,
        .........
    },
For 1280x400, the bottom bar is ~62 pixels high so you can try this config for better appearance:

Code: Select all

    "androidAuto" : {
        .........
        "resolution" : "720p",
        "dpi" : 120,
        "widthMargin" : 0,
        "heightMargin" : 382,
        "width" : 1280,
        "height" : 338,
        .........
    },

Re: Waveshare 17916, Android Auto Window Size

Posted: Fri Feb 13, 2026 10:58 pm
by D3dl3g
Knew it was user error. Thanks hudiy

Re: Waveshare 17916, Android Auto Window Size

Posted: Fri Feb 13, 2026 11:09 pm
by D3dl3g
Sadly still the same with your 2nd suggestion of code
20260213_225653.jpg
20260213_225653.jpg (2.09 MiB) Viewed 71 times

Re: Waveshare 17916, Android Auto Window Size

Posted: Fri Feb 13, 2026 11:11 pm
by hudiy
Could you please post the content of $HOME/.hudiy/share/main_configuration.json file?

Also please double check that you modify correct file ($HOME/.hudiy/share/main_configuration.json).

The .hudiy folder begins with a dot, which means it is hidden by default. To show or hide hidden files in the Raspberry Pi OS file manager (pcmanfm), you can use the CTRL+H keyboard shortcut. You can also modify the file in the terminal using the nano text editor (nano $HOME/.hudiy/share/config/main_configuration.json).

Re: Waveshare 17916, Android Auto Window Size

Posted: Fri Feb 13, 2026 11:21 pm
by D3dl3g
wait... changes didnt stick...

cat ~/.hudiy/share/config/main_configuration.json


{
"application" : {
"handednessOfTraffic" : "LEFT",
"defaultAction" : "",
"showDashboardsIcon" : true,
"showMenuIcon" : true,
"touchscreen" : true,
"showCursor" : true,
"width" : 0,
"height" : 0,
"x" : 0,
"y" : 0,
"splitWithProjections" : false,
"windowWidth" : 0,
"windowHeight" : 0,
"handleKeyboardEvents" : true,
"translationFile" : "",
"framelessWindow" : true
},
"appearance" : {
"timeFormat" : "24h",
"showClock" : false,
"fonts" : [

]
},
"theme" : {
"darkThemeEnabled" : true,
"darkContrastLevel" : 1,
"darkSourceColor" : "#769CDF",
"lightContrastLevel" : 0,
"lightSourceColor" : "#769CDF",
"availableColors" : [
"#769CDF",
"#862272",
"#DADFBB",
"#F78500",
"#E1D648",
"#3AED6F",
"#E02129",
"#4AD155"
],
"lightBackgroundsMap" : {

},
"darkBackgroundsMap" : {

},
"defaultDarkBackground" : "",
"defaultLightBackground" : "",
"darkBackgroundOpacity" : 100,
"lightBackgroundOpacity" : 100
},
"sound" : {
"startupSoundFile" : "",
"notificationSoundFile" : "",
"volumeSinkName" : "",
"playbackSinkName" : "",
"sourceName" : "",
"sourceMaxVolume" : 100,
"sinkMaxVolume" : 100,
"outputVolumeStep" : 5,
"inputVolumeStep" : 5,
"subwooferBalanceStep" : 5,
"balanceStep" : 5,
"fadeStep" : 5,
"subwooferBalance" : 0,
"fade" : 0,
"balance" : 0,
"storageMusicAutoplay" : false,
"fmRadioAutoplay" : false,
"subwooferBalanceAsVolume" : false,
"ringtoneFile" : "",
"defaultMediaPath" : ""
},
"androidAuto" : {
"speechAudio" : true,
"mediaAudio" : true,
"resolution" : "480p",
"bluetoothAddress" : "",
"autostart" : true,
"fps" : "30",
"dpi" : 160,
"widthMargin" : 0,
"heightMargin" : 0,
"width" : 0,
"height" : 0,
"x" : 0,
"y" : 0,
"useRpiDrm" : false,
"dayNightMode" : "common"
},
"hotspot" : {
"enabled" : false,
"hardwareAddress" : "",
"ipAddress" : "192.168.12.1",
"passphrase" : "1234567890",
"ssid" : "Hudiy",
"bandwidth" : "A",
"channelConfigurationType" : "AUTO",
"channelBandwidth" : "40MHz",
"channel" : 36
},
"equalizer" : {
"enabled" : true,
"step" : 0.25,
"minValue" : -10,
"maxValue" : 15,
"band25" : 0,
"band40" : 0,
"band63" : 0,
"band100" : 0,
"band160" : 0,
"band250" : 0,
"band400" : 0,
"band630" : 0,
"band1000" : 0,
"band1600" : 0,
"band2500" : 0,
"band4000" : 0,
"band6300" : 0,
"band10000" : 0,
"band16000" : 0,
"presets" : [
{
"name" : "Flat",
"band25" : 0,
"band40" : 0,
"band63" : 0,
"band100" : 0,
"band160" : 0,
"band250" : 0,
"band400" : 0,
"band630" : 0,
"band1000" : 0,
"band1600" : 0,
"band2500" : 0,
"band4000" : 0,
"band6300" : 0,
"band10000" : 0,
"band16000" : 0
},
{
"name" : "Rock",
"band25" : 3,
"band40" : 4,
"band63" : 5,
"band100" : 4,
"band160" : 1,
"band250" : -3,
"band400" : -2,
"band630" : 2,
"band1000" : 2,
"band1600" : 4,
"band2500" : 4,
"band4000" : 4,
"band6300" : 3,
"band10000" : 4,
"band16000" : 3
},
{
"name" : "Jazz",
"band25" : 2,
"band40" : 3,
"band63" : 4,
"band100" : 2,
"band160" : -2,
"band250" : 0,
"band400" : 2,
"band630" : 2,
"band1000" : 3,
"band1600" : 3,
"band2500" : 2,
"band4000" : 3,
"band6300" : 3,
"band10000" : 4,
"band16000" : 3
},
{
"name" : "Classical",
"band25" : 3,
"band40" : 3,
"band63" : 2,
"band100" : -2,
"band160" : 0,
"band250" : -3,
"band400" : -2,
"band630" : 0,
"band1000" : 2,
"band1600" : 3,
"band2500" : 3,
"band4000" : 2,
"band6300" : 4,
"band10000" : 4,
"band16000" : 4
},
{
"name" : "Pop",
"band25" : 3,
"band40" : 4,
"band63" : 5,
"band100" : 4,
"band160" : -2,
"band250" : -3,
"band400" : 0,
"band630" : 2,
"band1000" : 3,
"band1600" : 3,
"band2500" : 4,
"band4000" : 4,
"band6300" : 4,
"band10000" : 5,
"band16000" : 4
}
]
},
"notificatons" : {
"outputVolumeToast" : true,
"inputVolumeToast" : true,
"nowPlaying" : true,
"notificationDuration" : 5000,
"toastDuration" : 2000
},
"fmRadio" : {
"bandwidth" : "EU",
"squelchLevel" : 350,
"squelchLimit" : 10,
"rdsEnabled" : true,
"autoGain" : true,
"gain" : 0,
"presets" : [

]
},
"autobox" : {
"dpi" : 160,
"width" : 0,
"height" : 0,
"videoWidth" : 0,
"videoHeight" : 0,
"x" : 0,
"y" : 0,
"oemName" : "",
"autoWirelessConnection" : true,
"allowedDevices" : [
{
"vendorId" : 4884,
"productId" : 5408
},
{
"vendorId" : 4884,
"productId" : 5409
}
],
"bandwidth" : "AUTO",
"fps" : "30",
"enumerateUsb" : true
},
"obd" : {
"deviceType" : "NONE",
"serialDescriptor" : "",
"baudrate" : 115200,
"rfcommAddress" : "",
"rfcommChannel" : 1,
"maxInvalidResponseCount" : 20,
"startupSequence" : [
"ATZ",
"ATE0",
"ATS0",
"ATL0",
"ATH0",
"ATSP0"
]
},
"api" : {
"tcpEndpointPort" : 44405,
"webSocketEndpointPort" : 44406
},
"reverseCamera" : {
"width" : 0,
"height" : 0,
"x" : 0,
"y" : 0,
"pipeline" : "v4l2src device=/dev/video0 ! videoconvert ! video/x-raw,format=RGBA,width=640,height=480 ! glupload ! qml6glsink name=video-sink"
},
"bluetooth" : {
"adapterHardwareAddress" : ""
}
}

Re: Waveshare 17916, Android Auto Window Size

Posted: Fri Feb 13, 2026 11:26 pm
by D3dl3g
Did the 2nd time... thanks though!
20260213_232617.jpg
20260213_232617.jpg (1.96 MiB) Viewed 60 times

Re: Waveshare 17916, Android Auto Window Size

Posted: Fri Feb 13, 2026 11:39 pm
by hudiy
You are welcome. Thanks for the feedback. It could be a JSON syntax issue. In JSON, every brace and comma matters. There are various validators available online to check the syntax before saving the file, e.g., https://jsonlint.com/.

BTW, if you want to keep the Bottom Bar exposed only for the volume buttons, you might consider using the built-in volume overlay (Menu -> Hudiy -> Settings -> Overlays) and setting its visibility to 'Projection' (it will then only appear on Android Auto / CarPlay). Once the overlay is visible, you can adjust its position using a drag & drop gesture.
screenshot18.png
screenshot18.png (809.95 KiB) Viewed 54 times

Re: Waveshare 17916, Android Auto Window Size

Posted: Fri Feb 13, 2026 11:51 pm
by D3dl3g
youd think id have learnt about JSON by now...

yep, give it time ;) im only an hour into playing with it, purchased earlier today. thanks for the suggestions :D