pimoroni / hyperpixel4

Driver for the Pimoroni HyperPixel 4.0" Touchscreen Display
https://shop.pimoroni.com/products/hyperpixel-4?variant=12569485443155
328 stars 46 forks source link

Hyperpixel rect touch not working on Volumio (Rpi #202

Closed dsolano775 closed 1 year ago

dsolano775 commented 1 year ago

PLEASE NOTE

:warning: GitHub issues are for reporting problems with the software, tech support do not monitor these. Our software team are smol and busy, and you will not receive a timely response. If you're having a hardware issue with your Hyperpixel 4, you should contact support@pimoroni.com.

:warning: Hyperpixel 4 is only officially supported on Raspberry Pi OS. There are too many operating systems with too many quirks to begin to support them all. Issues relating to other operating systems will be closed.

Describe the bug

What's gone wrong?

On a Volumio installation (Buster) display only shows backlight. Same display tested under standard Rpi OS (Bullseye) on same Rpi 4b works fine.

To Reproduce

What install steps did you go through so far? Did you install from GitHub or use our one-line-installer? For Volumio, Buster based, I've installed following instructions from https://github.com/pimoroni/hyperpixel4/tree/pi4-kms-dpi

Your HyperPixel 4

Let us know which HyperPixel 4 board you're using. Note: if you're having a problem with the original HyperPixel you should go to: https://github.com/pimoroni/hyperpixel

  1. Is it Square or Rectangular? Rectangular
  2. Touch or non Touch? Touch
  3. Approximately when was it purchased: May-2023 (however ribbon cable is dated from March 2019)
  4. How is it connected to your Pi: 40 pin GPIO cable

Your Raspberry Pi

Give as much detail about your Pi and OS as possible. We only officially support Raspbian, but might be able to point you in the right direction if the problem is with another OS.

  1. What model of Raspberry Pi are you using (the result of cat /proc/cpuinfo | grep Revision can tell us this exactly c03115
  2. Which OS release are you using: lsb_release --description and uname -r Raspbian GNU/Linux 10 (buster) 5.10.92-v7l+
  3. Is this a fresh OS setup, or one you might have previously installed scripts/add-ons on? Volumio fresh install

Extra debugging information

If you're having a problem with touch, try checking dmesg for related errors:

[ 14.335729] Goodix-TS 22-0014: supply AVDD28 not found, using dummy regulator [ 14.338103] Goodix-TS 22-0014: supply VDDIO not found, using dummy regulator [ 14.340115] Goodix-TS 22-0014: ID 911, version: 1060 [ 14.362431] input: Goodix Capacitive TouchScreen as /devices/platform/i2c@0/i2c-22/22-0014/input/input0

And check i2c is working:

ls /dev/i2c-* /dev/i2c-22

And your HyperPixel 4 touch is showing up (there should be an address blocked out with UU in the below command):

i2cdetect -y X ( where X is the number of i2c bus found in the command above)

sudo i2cdetect -y 22

 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- UU -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --

cat /boot/config.txt

initramfs volumio.initrd gpu_mem=32 max_usb_current=1 dtparam=audio=on audio_pwm_mode=2

dtparam=i2c_arm=on

disable_splash=1 hdmi_force_hotplug=1 force_eeprom_read=0

include userconfig.txt

max_framebuffers=2

dtoverlay=vc4-fkms-v3d dtoverlay=hyperpixel4 enable_dpi_lcd=1 dpi_group=2 dpi_mode=87 dpi_output_format=0x7f216 dpi_timings=480 0 10 16 59 800 0 15 113 15 0 0 0 60 0 32000000 6

dsolano775 commented 1 year ago

Hi, I managed to make it work with Volumio modified OS. Here the steps to have it working properly.

===========================

1) Install legacy GitHub - pimoroni/hyperpixel4 at pi4

2) install rpi.gpio

sudo apt-get install rpi.gpio

make sure hyperpixel4.init started correctly 
systemctl status hyperpixel4-init

3)adjust /boot/config.txt

//commented out i2c_arm
#dtparam=i2c_arm=on

//added 
gpio=0-25=a2

reboot

4) this is required in Volumio installation to get all graphics libraries and programs installed.

install Playing Now plugin

install Touch Screen plugin

20230520_093358