adafruit / Pi_Eyes

MIT License
82 stars 53 forks source link

Left eye flickers with picam usage? #1

Open ladyada opened 6 years ago

ladyada commented 6 years ago

https://forums.adafruit.com/viewtopic.php?f=19&t=131585

unknown why!

PaintYourDragon commented 6 years ago

Answered in forums. I'm like 83% certain it's a power issue. Definitely not a peripheral conflict. Will await their response before closing this.

v-lopez commented 5 years ago

I'm experiencing this and I am not entirely sure it's a power issue.

I also get flickering on the left eye if I stress the CPU. For instance stress --cpu 4 will trigger a significant flicker.

v-lopez commented 5 years ago

At least in my case it only happens with Ubuntu mate, with raspbian it works perfectly fine with picam + stress --cpu 8.

v-lopez commented 5 years ago

Some more info for anyone stumbling on this.

It looks like right eye thread uses only about 5% of a CPU core, but left eye uses almost 100% of a CPU core. Doing some fiddling with thread affinity and kernel cpu isolation, I reserve one full cpu for the left eye and then it works fine.