Scaling UI to display.

Twardowsky29
Posts: 18
Joined: Fri Aug 08, 2025 2:46 pm

Scaling UI to display.

Post by Twardowsky29 »

Hi, so I got a new display, and the problem is that the hudiy homescreen is kinda undersized - any suggestions what can I do to fix it? (The display is 720×1560)
20251119_182536.jpg
20251119_182536.jpg (2.79 MiB) Viewed 1109 times
hudiy
Site Admin
Posts: 440
Joined: Mon Jul 14, 2025 7:42 pm

Re: Scaling UI to display.

Post by hudiy »

Hello, do you mean Hudiy or Android Auto? If Android Auto, then you need to adjust the resolution and margins:

https://github.com/wiboma/hudiy/blob/ma ... ndroidauto

For 1560x720 parameters should be

Code: Select all

"resolution": "1080p",
"widthMargin": "360",
"heightMargin": "360"
1080p -> 1920x1080
screen: 1560x720

widthMargin: 1920 - 1560 = 360
heightMargin: 1080 - 720 = 360

You can also check this for more details:
viewtopic.php?t=7
Twardowsky29
Posts: 18
Joined: Fri Aug 08, 2025 2:46 pm

Re: Scaling UI to display.

Post by Twardowsky29 »

I tried it, but the problem now is that Android Auto won't start. The icon shows up for 3 second and then disappears and nothing happens... When I get it back to 480p it works fine :/
hudiy
Site Admin
Posts: 440
Joined: Mon Jul 14, 2025 7:42 pm

Re: Scaling UI to display.

Post by hudiy »

1080p is a pretty standard resolution, and even older phones support it. In our test pool we have a Pixel 2 XL and a Nexus 5X, and both handle 1080p just fine. Please set useRpiDrm to true and see what effect it has (https://github.com/wiboma/hudiy/blob/ma ... ndroidauto).

Please also send the logs (located in $HOME/.hudiy/log/hudiy.*.log - where * is a number; the latest file is enough) and the contents of /boot/firmware/config.txt.
Twardowsky29
Posts: 18
Joined: Fri Aug 08, 2025 2:46 pm

Re: Scaling UI to display.

Post by Twardowsky29 »

Okay, it didn't change anything and the log file is empty but I also have only one numbered "0" . Here is the config.txt:

Code: Select all

# For more options and information see
# http://rptl.io/configtxt
# Some settings may impact device functionality. See link above for details

# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Additional overlays and parameters are documented
# /boot/firmware/overlays/README

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Automatically load initramfs files, if found
auto_initramfs=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2

# Don't have the firmware create an initial video= setting in cmdline.txt.
# Use the kernel's default instead.
disable_fw_kms_setup=1

# Run in 64-bit mode
arm_64bit=1

# Disable compensation for displays with overscan
disable_overscan=1

# Run as fast as firmware / board allows
arm_boost=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1

[cm5]
dtoverlay=dwc2,dr_mode=host

[all]
display_rotate=0
dtoverlay=vc4-kms-v3d
#DSI1 Use
dtoverlay=vc4-kms-dsi-waveshare-panel,6_25_inch
disable_splash=1
hudiy
Site Admin
Posts: 440
Joined: Mon Jul 14, 2025 7:42 pm

Re: Scaling UI to display.

Post by hudiy »

in config.txt

display_rotate=0 should be removed as it is deprecated on Bookworm/Trixie. Screen rotation is managed by the Screen Configuration Tool delivered with Raspberry Pi OS.

Have you made any changes to how Hudiy is started, or did you install Hudiy using sudo?
The log file should not be empty - Hudiy logs various information right from startup.

What is the output of the following commands?

Code: Select all

ls -lah $HOME
ls -lah $HOME/.hudiy
ls -lah $HOME/.hudiy/log
Twardowsky29
Posts: 18
Joined: Fri Aug 08, 2025 2:46 pm

Re: Scaling UI to display.

Post by Twardowsky29 »

I installed it using same commands as in instructions from INSTALL file. Fresh install on new RPIOS and I didn't change anything else other than config.txt for the screen.
Here's the output:

Code: Select all


pi@raspberrypi:~ $ ls -lah $HOME
total 396K
drwx------ 16 pi   pi   4.0K Nov 19 21:29 .
drwxr-xr-x  3 root root 4.0K Oct  1 02:18 ..
-rw-------  1 pi   pi   1.3K Nov 19 21:29 .bash_history
-rw-r--r--  1 pi   pi    220 Oct  1 02:06 .bash_logout
-rw-r--r--  1 pi   pi   3.5K Oct  1 02:06 .bashrc
drwx------ 12 pi   pi   4.0K Nov 19 18:23 .cache
drwx------ 16 pi   pi   4.0K Nov 19 21:01 .config
drwxrwxr-x  2 pi   pi   4.0K Nov 19 17:52 Desktop
drwxr-xr-x  2 pi   pi   4.0K Oct  1 02:18 Documents
drwxr-xr-x  2 pi   pi   4.0K Oct  1 02:18 Downloads
drwxrwxr-x  6 pi   pi   4.0K Nov 19 17:57 .hudiy
drwxrwxr-x  4 pi   pi   4.0K Nov  6 20:57 hudiy_installer
-rwxr-xr-x  1 pi   pi   286K Nov 14 22:25 hudiy_installer.tar.gz
drwx------  4 pi   pi   4.0K Oct  1 02:18 .local
drwxr-xr-x  2 pi   pi   4.0K Oct  1 02:18 Music
drwxr-xr-x  2 pi   pi   4.0K Oct  1 02:18 Pictures
drwx------  3 pi   pi   4.0K Nov 19 17:35 .pki
-rw-r--r--  1 pi   pi    807 Oct  1 02:06 .profile
drwxr-xr-x  2 pi   pi   4.0K Oct  1 02:18 Public
-rw-r--r--  1 pi   pi      0 Oct  1 02:18 .sudo_as_admin_successful
drwxr-xr-x  2 pi   pi   4.0K Oct  1 02:18 Templates
drwxr-xr-x  2 pi   pi   4.0K Oct  1 02:18 Videos
-rw-------  1 pi   pi     56 Nov 19 21:29 .Xauthority
-rw-------  1 pi   pi   8.9K Nov 19 21:33 .xsession-errors
-rw-------  1 pi   pi   8.3K Nov 19 21:29 .xsession-errors.old
pi@raspberrypi:~ $ ls -lah $HOME/.hudiy
total 24K
drwxrwxr-x  6 pi pi 4.0K Nov 19 17:57 .
drwx------ 16 pi pi 4.0K Nov 19 21:29 ..
drwxrwxr-x  4 pi pi 4.0K Nov 19 18:26 cache
drwxrwxr-x  2 pi pi 4.0K Nov 19 21:20 log
drwxrwxr-x  5 pi pi 4.0K Nov 19 18:32 share
drwxrwxr-x  3 pi pi 4.0K Nov 19 17:57 storage
pi@raspberrypi:~ $ ls -lah $HOME/.hudiy/log
total 1.3M
drwxrwxr-x 2 pi pi 4.0K Nov 19 21:20 .
drwxrwxr-x 6 pi pi 4.0K Nov 19 17:57 ..
-rw-rw-r-- 1 pi pi 7.5K Nov 19 21:30 fm_radio_handler.0.log
-rw-rw-r-- 1 pi pi 1.3M Nov 19 21:30 hudiy.0.log
-rw-rw-r-- 1 pi pi  12K Sep  9 10:38 splash.0.log
-rw-rw-r-- 1 pi pi 1.1K Nov 19 21:30 splash.1.log

hudiy
Site Admin
Posts: 440
Joined: Mon Jul 14, 2025 7:42 pm

Re: Scaling UI to display.

Post by hudiy »

Code: Select all

-rw-rw-r-- 1 pi pi 1.3M Nov 19 21:30 hudiy.0.log
Looks like hudiy.0.log is not empty (it has 1.3M). Could you please send us this file?
Twardowsky29
Posts: 18
Joined: Fri Aug 08, 2025 2:46 pm

Re: Scaling UI to display.

Post by Twardowsky29 »

Okay, I swear, I copied it a few minutes ago and it was empty, zero, nada...
I had to export it to .zip file because of file type not being supported
Attachments
hudiy.0.zip
(156.92 KiB) Downloaded 89 times
Twardowsky29
Posts: 18
Joined: Fri Aug 08, 2025 2:46 pm

Re: Scaling UI to display.

Post by Twardowsky29 »

Okay, I figured it out, kinda - reinstalled Android Auto on the phone and it helped - still no idea what the issue was but it worked - sorry to bother you
Post Reply