Closed pokebox closed 6 years ago
hello, I found the problem, the default DMA channel 5 device.py code will cause file system corruption, the original link is as follows:https://github.com/jgarff/rpi_ws281x
Important warning about DMA channels You must make sure that the DMA channel you choose to use for the LEDs is not already in use by the operating system. For example, using DMA channel 5 will cause filesystem corruption on the Raspberry Pi 3 Model B. The default DMA channel (10) should be safe for the Raspberry Pi 3 Model B, but this may change in future software releases.
/usr/local/lib/python2.7/dist-packages/luma/led_matrix/device.py
220 pin = 18 221 channel = 0 222 dma = 5 223 freq_hz = 800000 224 brightness = 255 225 strip_type = ws.WS2811_STRIP_GRB 226 invert = False
@pokebox thanks for this research. Can you make a pull request with this change (also make sure to include your name in the CONTRIBUTORS file)? Thanks.
OK!This is my first attempt
If we change it to 10, could that cause filesystem corruption for people with, say, RPi2?
Should look at making it conditionally 5 or 10 depending on the model?
I have a bunch of ws2812 light boards that have problems running neopixel_demo.py after running some other command line for a while: "
- bash: can not create temp file for here-document: Read-only file system
". Use the mount command to view the system root directory read-write (rw) into a read-only (ro), I ruled out because of the power supply, but the problem persists, may I ask what is the reason? Is it related to operating /dev/mem device? I'm using Raspberry Pi 3 and the kernel version is4.9.35-v7 + # 1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU / Linux
The code execution and return are as follows: