Kodi screen resolution bug after update

Allo DAC
G_DIETPI_VERSION_CORE=9
G_DIETPI_VERSION_SUB=1
G_DIETPI_VERSION_RC=1
G_GITBRANCH=‘beta’
G_GITOWNER=‘MichaIng’
bullseye 0
Linux hifi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
RPi 4 Model B (aarch64)
Got valid latest version: 9.4.2

grep -v '^#' /boot/config.txt 

disable_overscan=1
gpu_mem_256=192
gpu_mem_512=256
gpu_mem_1024=256
disable_splash=1
dtparam=audio=off
enable_uart=0
dtparam=sd_poll_once
temp_limit=75
initial_turbo=20
arm_64bit=1
hdmi_enable_4kp60=1
dtoverlay=disable-wifi
dtoverlay=vc4-kms-v3d,cma-512,noaudio
dtoverlay=allo-boss-dac-pcm512x-audio

After last update the screen is to zoomed to be able to use kodi, cannot get into KODI settings that way since most of them are outside the screen, any ideas how to fix?

EDIT: It also takes an unusual amount for KODI to load the lower resolution screen. I can see the boot text as usual during a reboot but then it kinda stalls before showing the to zoomed KODI screen on the 4k projector.

So i postponed updates for a while and tried again today with the same result DietPi v9.7.1 (beta). The Kodi resolution is huge, can’t do anything in kodi.

My projector does not offer any options, any idea where i could change kodi initial resolution?

Kodi has some xml files for config (guisettings.xml, advancedsettings.xml), you can change it there
https://forum.kodi.tv/showthread.php?tid=120384

1 Like

thanks been tinkering with

<setting id="lookandfeel.startupwindow">12600</setting>
<setting id="window.width" default="true">720</setting>
<setting id="window.height" default="true">480</setting>

but any change to these in the file .kodi/userdata/guisettings.xml results to be reset after reboot

Also advancedsettings.xml doesn’t exist and tried that at first by adding it with no luck.

Retraced steps and found i had xml formatting error, the advanced file link of yours worked, thanks.

Now, do you know why did i lose all my other kodi settings?

hdmi_group=1
hdmi_mode=16

This change in config.txt did it in the end without the need for a advancedsettings.xml file.

My current new working config.txt

hdmi_group=1
hdmi_mode=16 #was a bad choice, learned that 95 for 30Hz or 97 for 60Hz would be better but this option is not needed i believe due to  below hdmi_enable_4kp60
disable_overscan=0
gpu_mem_256=192
gpu_mem_512=256
gpu_mem_1024=256
disable_splash=1
dtparam=audio=off
enable_uart=0
dtparam=sd_poll_once
temp_limit=75
initial_turbo=20
arm_64bit=1
hdmi_enable_4kp60=1
dtoverlay=disable-wifi
dtoverlay=allo-boss-dac-pcm512x-audio
dtoverlay=vc4-fkms-v3d,noaudio

sigh, i spoke to soon, videos stutter and do not play, kodi hangs but i have initial screen reso lol

Blind switching to higher resolution in the kodi gui allowed me to see full kodi on reboot, with my original config.txt on the optoma 4k projector, though i have to give up due to kodi not showing BossDAC (only pipewire) while opmd / aplay work fine.
On top videos do not seem to smooth playing. I guess going back to the backup again for now then probably a fresh dietpi install.

I finally caved and reinstalled from scratched, everything worked smooth, only had to add the hdmi_enable_4kp60=1 line to config.txt.