I am setting up a Raspberry PI 3B with Volumio for my son. Bought a waveshare 5" HDMI LCD v2 but can’t get the screen and the touch running.
I had it running once, but by mistake installed a beta and all was gone.
Now I cannot find the page where I found the original installation.
Can anyone please help? Thanks a lot.
Save /boot/userconfig.txt and reboot. Install the Touch Display plugin and enable the plugin. Report back if display and touch already work. If not we would have to try some additional steps.
Edited: dtoverlay=ads7846 and its parameters have been split to separate lines according to post #14.
These displays use the SPI bus for touch information which is typically limiting the speed. Further more the touch is not capacitive but resistive which means the display needs some physical pressure to detect a touch. So I think the possibilities to speed up touch are pretty limited. At least with a justifiable effort.
What you could try is upping the speed value (which sets the speed of the SPI bus) in the line you added to userconfig.txt:
According to this readme the default speed is 2MHz and the value used is 50kHz. The lower value is taken from the config-5.txt file of Waveshare. This does not mean higher values won’t work but I have no experience with that and can’t predict the effects of a higher value.
P.S. The “xohms” value you see in the dtoverlay line controls the sensivity of the touchpanel. So you may play with that value, too, to improve responsiveness.
P.P.S. Do you have any other hardware connected that possibly uses the Raspberry’s pin 22 (GPIO25)? This might interfere with the touch panel which also uses this pin to detect / signal touches (penirq=25).
I just saw that an 80 character per line limit applies to entries in /boot/config.txt. I suppose that this holds true for /boot/userconfig.txt, too. According to the linked readme any characters exceeding the limit will be ignored.
The entry beginning with “dtoverlay=ads7846…” has more than 80 characters. So I have to reason that the parameter keep_vref_on=0 is the last one that is complete and gets processed whereas all following parameters get dropped, so amongst others xohms=150.
To circumvent the character limit split the “dtoverlay=ads7846…” like this:
I removed the parameter keep_vref_on=0 as this seems not be valid for the ads7846 overlay (readme). I have no clue why Waveshare has that parameter in its config-5.txt file I have linked above…
@gvolt I had an old Waveshare 5" HDMI display laying around, I’m using it for preparing a Volumio setup for a friend of mine. Your trick of the split in several lines made the touch working decently, finally! Many thanks!