Closed hagna closed 6 years ago
What power supply are you using with your Pi?
5v 2500mA power supply connected to a powered usb hub.
Can you run a strace from a second terminal and output to a file?
strace -o
It's not finding any of your python libs, is "begin" the exact script from the repo?
Can you do yhe following? $which python
What do you mean by:
5v 2500mA power supply connected to a powered usb hub.
Is the Pi powering from the USB hub which is powered by another supply? Or is the USB hub powered by a 5v 2500mA supply?
Either way, I'd highly recommend directly powering the Pi with an official adaptor, since USB is ostensibly limited to 500mA which is not sufficient. It's quite likely that your hub is not designed to supply much more than that without severe voltage drop.
It may also be prudent to verify that outputting just black pixels to Unicorn HAT - IE driving the display with a signal, but not actually lighting any of the LEDs - does or does not cause the same effect.
I would be surprised if this were a failure in the Unicorn HAT itself... but stranger things have happened so I wont discount it entirely!
I don't think it is a power issue, I'm not disputing it. I just think the strace is revealing that the unicornhat libs are not installed.
Extract: stat64("/home/pi/unicornhat", 0x7eaec200) = -1 ENOENT (No such file or directory) open("/home/pi/unicornhat.arm-linux-gnueabihf.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) open("/home/pi/unicornhat.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) open("/home/pi/unicornhatmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) open("/home/pi/unicornhat.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
Make sure it is installed correctly and you have the correct permissions on them.
This was, I believe, due to a DMA channel clash between the RPi_ws281x library and the SD card in newer versions of Raspbian. See: https://github.com/jgarff/rpi_ws281x/issues/208
It should be fixed now.
This seems like hardware failure, but I've tried several sandisk 16GB and 8GB on a raspberry pi 3 and a raspberry pi W. After doing a full install of unicorn-hat, when I run this (as root) my disk times out (error -110) and the filesystem is mounted read only.
Dmesg says this: