Waveshare screen with Ubuntu on Pi4

January 29, 2025, 22:41

lukazkool

hey does anyone know how to set up a waveshare 7 inch rgb lcd HAT (the one without touch screen) to a raspberry pi 4 running ubuntu? I tried everything and nothing works

timinytim

First off, are you SURE it's plugged in correctly? Those cables can be a pain, sometimes, especially for me.

timinytim

Second, have you followed all steps in the link you sent?
c++
For Raspberry Pi OS Buster branch and Ubuntu system

1. Open the config.txt file in the root directory of the TF card, add the following code at the end of config.txt, save and safely eject the TF card.

[pi4]
dpi_timings=1024 1 40 48 128 600 1 13 3 45 0 0 0 60 0 37000000 6

[all]
dtoverlay=dpi24
enable_dpi_lcd=1
display_default_lcd=1
dpi_group=2
dpi_mode=87
dpi_output_format=0x6f005
hdmi_cvt 1024 600 60 6 0 0 0
disable_overscan=1

2. Turn on the LCD backlight switch.
3. Insert the TF card into the Raspberry Pi, power on the Raspberry Pi, and wait for more than ten seconds to display normally.
Note: If the display is abnormal, please try to adjust the VCOM voltage, and be careful not to stay for more than 10 seconds when the display is abnormal. (subject to the actual display effect.) 

timinytim

Third, are there any lights on the HAT or LCD? Make sure you're using the official power source for both the Pi, and screen if applicable - I experienced MAJOR issues with my LCD screen going "psychedelic" when I wasn't using the official PSU.

lukazkool

I followed every single step, and am providing stable 5v, and it runs normally when on HDMI as well. I am using an external power bank

timinytim

I wonder if you have to enable it via raspi-config?

lukazkool

No, I found the problem. I believe that Ubuntu 24 no longer supports the config syntax followed in the wiki, so downgrading to an LTS of Ubuntu 22 should in theory work. Thanks everyone regardless!

timinytim

Yay! <:MA_Yes:660652468622983169> It works in theory, but it work in practice! Please, we have to know

oops.se

Could "Raspberry Pi OS Bookworm" be an alternative? I ask as Ubuntu support on Raspberry Pi is less that the official OS.

lukazkool

nevermind. I'm just gonna use the bookworm os