antonpup / Aurora

Unified lighting effects across multiple brands and various games.
http://www.project-aurora.com/
MIT License
1.83k stars 367 forks source link

Switching via USB device causes aurora lighting effects to stop working #1225

Open rykugur opened 6 years ago

rykugur commented 6 years ago

Setup:

Windows 10 Macbook Pro Coolermaster Pro S RGB

Keyboard is shared via a "UGREEN" branded USB switch. 4 USB inputs, 2 USB outputs (one going to my Windows Desktop, one to the Macbook).

Expected behavior:

Aurora lighting effects should continue working, should relaunch without issue.

Actual behavior:

After switching back to my Windows machine from my Macbook, aurora-defined lighting stays on, but does not update. When switching back to Windows, my keyboard's default lighting effects come on and stay on; Aurora continues to run but lighting effects do not change.

The aurora UI app is still running, and you can make changes, etc. Those changes are not reflected on the keyboard. Closing aurora works as expected, but when I try to restart the process, I don't get a tray icon or a window open; trying to launch it again pops up an "Aurora is already running, exiting" prompt. The same prompt occurs right away if I kill Aurora via task manager and try to launch again.

A restart of the computer and relaunch of Aurora is required to get it back to its working state.

How often does this problem occur?

This problem occurs... every time I switch back to my Windows machine.

Please describe the steps to reproduce this issue:

The issue can be reproduced by doing following steps:

  1. Be in Windows 10, aurora running as expected.
  2. Press USB switch button to use the same keyboard on different computer 2a. Aurora-defined lighting remains
  3. Press USB switch button to come back to Windows 10 machine 3a. Default keyboard lighting comes on

What is the version of Aurora you are experiencing this issue with?

My version is... latest, 0.6.2b

Does the previous version of Aurora have this issue?

The previous version, (Fill in the version here), did/did not have this issue. (Unsure, I just started using aurora as of 0.6.2b)

Please include any logs, screenshots, or files that are related to this issue:

Logs from the first time this happened: https://pastebin.com/0StZuwNN Second time: https://pastebin.com/KnLDPcKz

simon-wh commented 6 years ago

It's strange that it doesn't relaunch after killing it in Task Manager. When you switch could you try stopping and starting the Cooler Master device in "Device Manager" the solution for your issue may be to try and detect when the device is removed/added and automatically turning on and off the integration when necessary. The Cooler Master SDK is pretty barebones compared to the others so I feel like other devices such as Corsair, Logitech and Razer may not have the same issue as the SDK goes through their software, whereas Cooler Master interacts directly with the device.

rykugur commented 6 years ago

That worked. Although, at first I thought you meant the Windows Device Manager.

However, that will only work as a workaround IF I leave the aurora UI open at all times (this isn't a problem for me) so that I can still access the Device Manager. If you'll recall, the aurora UI will not launch after the problem occurs until I've restarted the PC.

rykugur commented 6 years ago

Hmm, now I'm able to relaunch the Aurora UI without any issue. I was able to reproduce this multiple times (even after restart), and now I can't.

Not sure, perhaps a Windows update or something resolved it. Perhaps we can close this ticket and I'll re-open if it comes up again.

simon-wh commented 6 years ago

@rykugur Are you not able to open the Aurora UI from the Tray icon? If there was an unhandled error it should kill it completely rather than just the ui portion

petahbred commented 5 years ago

Any updates to this issue? I am experiencing this as well.