Waveshare 7inch (C) overscan

Hi

I have tried to find a solution to this but I haven’t been successful. If it’s already been solved, please excuse me, and point me i the right direction.

I just installed Volumio (ver. 3.661) on a Raspberry Pi 4B with a Waveshare 7inch(C) touch screen connected via HDMI and USB. I have installed the touch screen plugin (ver. 3.4.0).

When I started Volumio the first time the screen resolution was wrong so I edited the userconfig.txt file to get the screen to “fill out”. Before that Volumio was only showing up in a portion of the screen.

hdmi_group=2
hmdi_mode=87
hdmi_cvt 1024 600 60 6 0 0 0
hdmi_drive=1

The problem I have now is that Volumio spills over the screen, so the whole UI isn’t showing. It’s as if Volumio isn’t adapting to the resolution of my screen.


Write in userconfig:
disable_overscan=1

That didn’t work. It still looks the same. Is it possible that something went wrong during installation? Should I have made the additions to userconfig before installing the tpuch screen plug in?

All you manual contributions needs to be in userconfig, otherwise they will be lost during an update.

Not necessarily, but a reboot is required after making changes to “/boot/userconfig.txt”.

Try adding

max_framebuffer_width=1024
max_framebuffer_height=600
framebuffer_width=1024
framebuffer_height=600

to “/boot/userconfig.txt”.

Everything is in userconfig. As 8f now its the four lines in the original post and the overscan_disable line. It’s like volumio doesn’t get what resolution the screen is. The touch funktion works. If i touch the upper right corner i close open windows even though the “X” is outside of the screen.

I always reboot :slight_smile: I’ll try adding this. I think I have tried that, but maybe not together with the overscan setting.

Thanks for helping! I tried adding the framebuffer lines. It didn’t work. Now i get a black band on the left side, and it also looks like volumio is “zoomed” in a bit more.

Current settings are:

hdmi_group=2
hmdi_mode=87
hdmi_cvt 1024 600 60 6 0 0 0
hdmi_drive=1
disable_overscan=1
max_framebuffer_width=1024
max_framebuffer_height=600
framebuffer_width=1024
framebuffer_height=600

I commented out all the lines in userconfig to get a picture of how it looks without anything. I case that might help.

Is it possible that it would work if i add a “hdmi_timings=” line? I’ve found EDID Sequence Parameters for the display at https://www.waveshare.com/wiki/7inch_HDMI_LCD_(C) but I don’t know how to use them correctly. Or if it would make a difference.

Did you check how it looks without disable_overscan=1?

I had “hdmi_timings” in mind too. Please execute

sudo /opt/vc/bin/tvservice -d edid.dat

and upload the resulting “edid.dat” file.

It looks the same without disable_overscan=1.

How do i get the dat-file from the Raspberry? Do I have to put the memory card in a computer that runs linux or is there’s an easier way?

You can use a file explorer that is able to connect to Volumio via sftp. Or execute

cp ~/edid.dat /mnt/INTERNAL/

on Volumio’s command prompt to copy the file to “/mnt/INTERNAL/” which is a Samba share and should be accessible from your computer.

I wasn’t allowed to upload a dat file, so i zipped it.

edid.zip (170 Bytes)

Try these settings in “/boot/userconfig.txt”:

hdmi_group=2
hmdi_mode=87
hdmi_timings=1024 0 48 96 144 600 0 3 10 11 0 0 0 60 0 49000000 7
hdmi_drive=1
max_framebuffer_width=1024
max_framebuffer_height=600
framebuffer_width=1024
framebuffer_height=600

This didn’t work either. It looks like before. I tried commenting out the framebugger lines and it went back to looking like in the first pictures, without the black band on the left side. This is a little bit frustrating :slight_smile:

Just realized I mistyped the last value of “hdmi_timings”. It should read “6” instead of “7”. Not sure this will make a difference…

1 Like

It didn’t change anything. I tried uncommenting everything and connect it to my PC-monitor. It shows the whole UI but at a very low resolution. But nothing is missing.

Does adding hdmi_ignore_edid=0xa5000080 to “/boot/userconfig.txt” so it looks like

hdmi_ignore_edid=0xa5000080
hdmi_group=2
hmdi_mode=87
hdmi_timings=1024 0 48 96 144 600 0 3 10 11 0 0 0 60 0 49000000 7
hdmi_drive=1
max_framebuffer_width=1024
max_framebuffer_height=600
framebuffer_width=1024
framebuffer_height=600

possibly help?

No. It didn’t help. But the screen looks like this now.

Another option after reverting hdmi_ignore_edid=0xa5000080 could be to use the scaling option from the Touch Display plugin’s config page. Set the scale factor to e.g. 95.

The only thing that happens is that the menu-button and the other buttons get smaller. The image changes size to, but gets bigger when I go lower. It seems like Volumio thinks the display is bigger than it is :slight_smile: