question

paulm avatar image
paulm asked

Venus OS Large not working with Waveshare HDMI 4" Touch Display

I have Venus OS 2.87 running on a Raspberry Pi3 with a Waveshare HDMI 4" 800 x 480 Touch Display from Pi-Hut with no problems. It's set up according to the Waveshare instructions by adding ....

hdmi_mode=87
hdmi_cvt 480 800 60 6 0 0 0
dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900
display_rotate=3

... to the end of the /boot/config.txt file and renaming '/etc/venus/headless'. The touch display isn't configured (yet).

I've tried the same setup on Venus OS Large 2.90~14, in order to make use of Node-Red, but all I get are multicoloured horizontal lines on the display. The remote LAN display in my browser is also rotated 90 deg clockwise. I haven't tried VRM. I can restore the remote display in my browser by using 'display_rotate=2' but had no luck with getting the Waveshare display working with Venus OS Large.

Is the underlying Raspberry Pi OS different between versions ??

PaulM


Venus OSRaspberry Pihdmi
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

5 Answers
jaap-spies avatar image
jaap-spies answered ·
First, Venus OS is not Raspberry Pi OS!

I don't have a Waveshare 4" touchscreen montor, but I had simular problems with a simular touchscreen from AliExpress: http://www.lcdwiki.com/4inch_HDMI_Display-C

The product parameters are almost the same. You can't use the install scripts because they are specific for Raspberry Pi, but reading the script MPI4008-show you can see what is needed in config.txt


[jaap@vrede ~]$ ssh root@192.168.178.103
root@192.168.178.103's password:
Last login: Sat Jul 2 16:18:22 2022 from 192.168.178.17
root@raspberrypi4:~# ls
LCD-show         LCD-show.tar.gz
root@raspberrypi4:~# cd /u-boot/
root@raspberrypi4:/u-boot# cat config.txt
enable_uart=1
kernel=u-boot.bin

[all]
device_tree=bcm2711-rpi-4-b.dtb
hdmi_force_hotplug=1
hdmi_force_edid_audio=1
dtparam=i2c_arm=on
dtparam=spi=on
display_rotate=3
config_hdmi_boost=7
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_drive=2
hdmi_cvt 480 800 60 6 0 0 0
dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900
root@raspberrypi4:/u-boot#

This works for me (almost). Touching the label 'Pages' does not work!

I'll open a question on this.

20220626-2140452.jpg

20220703-214206.jpg


2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

kevgermany avatar image
kevgermany answered ·

@PaulM

Better here in modifications

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

jaap-spies avatar image
jaap-spies answered ·

@kevgermany

I don't understand the move to modifications. Since the problem is related to the way venus os works on a Raspberry Pi. The RPi's don't have a BIOS, so coupling basic hardware such as a screen has to be done in the so called 'config.txt'.

I suggest reading:

https://www.raspberrypi.com/documentation/computers/config_txt.html

Please have patience with me. I'm new here :-)

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

kevgermany avatar image kevgermany ♦♦ commented ·

Hi Jaap


Pi related questions should be in modifications.

Take a quick look at the guidelines:

https://community.victronenergy.com/questions/5889/new-victron-community-guidelines.html


Sorry, but I don't have the Pi knowledge to help. But there will, hopefully, be a Pi expert there who can help. But less likely in Q&A


0 Likes 0 ·
paulm avatar image
paulm answered ·

Many thanks, that works perfectly :-) I'm not using the touchscreen at present.

My comment re Raspios - the waveshare display works, as supplied, with Debian Buster based OS but not with Debian Bullseye. I guess that's the difference between Venus OS and Venus OS Large ?

Regards

PaulM


2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

an1uk avatar image
an1uk answered ·

Considering buying this display. Does the backlight dimming/off and screen off features work?

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Related Resources

Additional resources still need to be added for this topic

Raspberry Pi running Victron’s Venus firmware - Blog Post

Venus OS Large image: Signal K and Node-RED - Install

raspberrypi install venus image


Victron Venus OS Open Source intro page

Venus OS GitHub (please do not post to this)

Additional resources still need to be added for this topic