psieg / Lightpack

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

Failure to reconnect after monitor turned back on (connected via monitor USB) #137

Closed rappo closed 5 years ago

rappo commented 7 years ago

I have my Pivos Vue Lightpack connected to my pc via my monitor's usb hub. This is handy because when I turn the monitor off (or it goes to sleep) the lights go off. Unfortunately it frequently fails to reconnect when it powers back up. I often have to close the app completely and reopen.

Anyone else have this issue?

On Windows 10. Happy to provide more info or help track down the cause if anyone has a lead.

psieg commented 6 years ago

Prismatik assumes the device remains connected throught the runtime of the program. If the device is back on when resuming from standby this works. In short, yes - working as intended.

You can plug the Lightpack into your PC and use the "keep lights on after suspend' option instead.

rappo commented 6 years ago

Thanks for the response.

In my use case I want the lights to go off when my monitor is turned off, which is why I have it plugged in to the monitor USB (and this also has the benefit of being cleaning for cable management, no extra cables running down to the PC). I want the lights to come back on when the monitor is turned back on.

Turning off works as expected, it's when I turn my monitor back on that Prismatik fails to reconnect... or if it does reconnect, it fails to set the lights to match the currently selected profile.

psieg commented 6 years ago

Do you turn off your monitor without putting the PC to standby? If not, just use the standby option and turn the monitor back on before the PC

rappo commented 6 years ago

I do turn my monitor off without putting the PC in standby. It stays active 24/7.

psieg commented 6 years ago

same as #84. will investigate next time i get around to working on Prismatik

Neksteel commented 6 years ago

Unfortunately, it doesn`t work for me, even with this new version. After USB reconnection of a device, I still have to close the app and reopen. Is it be possible to add a parameter, which would trigger a reopening of the program after certain time interval, if a USB device was disconnected?

psieg commented 6 years ago

Well that is exactly what it should be doing. Please set the log level to 1, restart Prismatik and then disconnect/reconnect. Upload the log file somewhere so I can take a look.

psieg commented 6 years ago

sorry, my bad. the PR wasn't merged yet. Damn

Neksteel commented 6 years ago

Thanks for the reply.Here the log file. Prismatik.0.log

psieg commented 6 years ago

Thanks, should be fixed with 5.11.2.15.

Neksteel commented 6 years ago

Still does not react when fully reconnected the USB, lights just go off after some time, thanks anyway) P.S I am using an Arduino (based) Adalight

psieg commented 6 years ago

That's weird. I'll need more details. Can you please turn up the log level to level 2, restart prismatik, turn your screen off and on again after some time and then provide the log?