hifiberry-os
hifiberry-os copied to clipboard
Raspberry Pi 5 w/ Official 7" Touchscreen Support
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:
- Install HifiBerry on Raspberry Pi 5 with official 7" touchscreen
- Display does not function
- Add
Expected behavior
- Functioning display
- Web browser fitting content appropriately.
FIX I was able to fix both issues with the following steps:
- Remount filesystem as read/write:
mount -o remount,rw /boot
- 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
- 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
- Add the following to the unit override
[Service]
Environment=COG_PLATFORM_WL_VIEW_FULLSCREEN=1
- Run
systemctl restart cog
or reboot