2013-06-07, 20:45
(2013-06-01, 22:02)blazo Wrote: This is beyond me.
Changed PSU, added capacitor (2 of them) and I still get flashes.
The only remedy is speed=40 with rate=48000 or less.
I think it might have something to do with the timing, the WS2801 latches in the data when the clock pin has been low for more than 500 microseconds.
If there are lots of other threads on the raspberry pi that also want cpu, it's possible that the boblightd device thread gets preempted while it's in the middle of an spi write.
I've committed a patch which might help with this: http://code.google.com/p/boblight/source/detail?r=468
If you add the threadpriority setting to the device section in boblightd like this:
Code:
threadpriority 99
This way the scheduler makes sure that the boblightd device thread will immediately get cpu time when it wants, and it will continue to get cpu time until it is done processing.