hifiberry-os icon indicating copy to clipboard operation
hifiberry-os copied to clipboard

Raspberry Pi 5 w/ Official 7" Touchscreen Support

Open Cbeck527 opened this issue 7 months ago • 3 comments

Describe the bug There are display issues using the following hardware:

  • Raspberry Pi 5
  • Official 7" Touchscreen Support

First, the display does not function until overlay is added. Then, the now playing display appears to be "zoomed in" too much, as if it does not fit the screen.

HiFiBerryOS version 64alpha8 https://github.com/hifiberry/hifiberry-os/releases/tag/64alpha8 hifiberryos-20240523-pi4.img

HiFiBerry sound card DAC+ Pro

To Reproduce Steps to reproduce the behavior:

  1. Install HifiBerry on Raspberry Pi 5 with official 7" touchscreen
  2. Display does not function
  3. Add

Expected behavior

  • Functioning display
  • Web browser fitting content appropriately.

FIX I was able to fix both issues with the following steps:

  1. Remount filesystem as read/write:
mount -o remount,rw /boot
  1. Add line under to [pi5] section
[pi5]
dtoverlay=vc4-kms-v3d-pi5,noaudio
# CUSTOM DISPLAY SETTINGS
dtoverlay=vc4-kms-dsi-7inch,dsi0,sizex=800,sizey=480
# END CUSTOM DISPLAY SETTINGS
  1. Create system unit override to set cog environment variable for wayland (note: I had to use nano as the editor... there seems to be an issue with the built-in vim)
EDITOR=nano systemctl edit cog
  1. Add the following to the unit override
[Service]
Environment=COG_PLATFORM_WL_VIEW_FULLSCREEN=1
  1. Run systemctl restart cog or reboot

Cbeck527 avatar Jul 28 '24 06:07 Cbeck527