psieg / Lightpack

Lightpack and Prismatik open repository
GNU General Public License v3.0
1.59k stars 190 forks source link

Disable screen grabbing when device gets disconnected #248

Closed schrej closed 4 years ago

schrej commented 5 years ago

MacOS 10.14.2, Prismatik 5.11.2.19, Arduino with Adalight-FastLED

I'm using Prismatik on my MacBook. Today I noticed it running in the background, capturing my screen after I disconnected it from my monitor and Arduino. Even though its using quite low resources after the latest improvements (that actually made it usable on MacOS, thanks!), it still consumes some resources.

It would be nice if Prismatik would detect when the device is no longer connected and turn itself off automatically. Maybe just by checking every few seconds as long as the light is turned on.

psieg commented 5 years ago

Good idea, should be easy to do

extermistmonk commented 4 years ago

Unfortunately, the fix for this broke the way I use Prismatik. I use a plugin that sends grabbed colors across the network to an ESP8266 which controls my Ambilights. Since I don't technically have a device connected, this update broke my setup.

psieg commented 4 years ago

Your setup should work if you set up a virtual device. A virtual device won't report errors.

Let me know if this helps

extermistmonk commented 4 years ago

Perfect, works great, thanks!

psieg commented 4 years ago

Great. Marking as fixed in 5.11.2.20