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 not working reliably on turn on #199

Open sianisstruggling opened 1 year ago

sianisstruggling commented 1 year ago

Running on Pi zero running Lite Legacy to run the Adafruit Video Looper.

When I first turn on (after full shutdown) the screen doesn't work first time (once in a blue moon it will work but virtually never). The pi is running a video looper with a USB speaker and I can hear the audio play so I know the looper is working, but nothing is shown on the screen.

I do a sudo reboot and usually this gets the screen to work, but sometimes it takes multiple reboots and/or shutdowns, which is not ideal. I've no idea what it is that is causing the screen to be so temperamental.

I am using the Hyperpixel round and have put this issue there but notice there is not the same level of support as on this channel

This is my install method:

  1. Install raspberry lite legacy

  2. Install basic stuff sudo apt-get update sudo apt-get install -y git

  3. Install Hyperpixel round git clone https://github.com/pimoroni/hyperpixel2r cd hyperpixel2r sudo ./install.sh

  4. Disable i2c, SPI and any other interface

  5. GL drive set to G1 legacy

  6. Install Video Looper (https://learn.adafruit.com/raspberry-pi-video-looper/installation) git clone https://github.com/adafruit/pi_video_looper.git cd pi_video_looper sudo ./install.sh

  7. Install speaker (https://thepihut.com/products/mini-external-usb-stereo-speaker) sudo apt-get update sudo apt full-upgrade sudo reboot sudo apt-get install pulseaudio sudo reboot

  8. Check ALSA modules cat /proc/asound/modules

  9. Check sound hardware cat /proc/asound/cards

  10. Check info on card-1 amixer -c 0

  11. Test speaker aplay /usr/share/sounds/alsa/Front_Center.wav -D sysdefault:CARD=0

  12. Add to the user config in: sudo nano ~/.asoundrc

pcm.!default { type hw card 0 }

ctl.!default { type hw
card 0 }

  1. Add to the system config in: sudo nano /usr/share/alsa/alsa.conf

sudo nano /usr/share/alsa/alsa.conf defaults.ctl.card 0 defaults.pcm.card 0

  1. Add to the system module conf in: sudo nano /lib/modprobe.d/aliases.conf

options snd_usb_audio index=0

  1. Update videoloop config to alsa audio and snd_usb_audio (0)

Any advice on how to make it run more reliably would be much appreciated.