1kc / razer-macos

Color effects manager for Razer devices for macOS. Supports High Sierra (10.13) to Monterey (12.0). Made by the community, based on openrazer.
GNU General Public License v2.0
2.27k stars 243 forks source link

KVM switches lose context #206

Open storkinsj opened 3 years ago

storkinsj commented 3 years ago

When doing a KVM switch- the KVM usually emulates a non Razer keyboard. When you switch back to the computer, the Razer keyboard becomes active again. This of course could be simulated by unplugging and plugging in the keyboard.

In these situations, Razer-macos does not wake up and remember and reset the settings for the Razer. This should be its behavior at launch.

After such a switch, it is no longer possible to make changes to the keyboard colors or controls. However, if you quit then relaunch Razer-macos, control resumes.

The request is to actively look for and manage when the keyboard is present, and automatically reset the color and effect scheme to the one for that keyboard. This will be useful in non-kvm situations as well of course.

The capability to do this will be tremendously useful as you can set different colors for each computer. I have four and was planning to actively switch between all of them and easily identify by color of keyboard.

Version: 0.3.4 Keyboard: Razer Blackwidow Chroma Mouse: Razer Abyssus V2 OS: Catalina 10.15.7

dhobi commented 3 years ago

Related to #207 Both issues require that the device state is saved so that it can be reverted somewhen later.

dfeinzimer commented 2 years ago

Also see #452

storkinsj commented 2 years ago

Hi- I was looking at this thread and think it's interesting for waking up based on the right device becoming plugged in. Apparently it wasn't easy to figure out. https://stackoverflow.com/questions/16488222/notifications-from-mac-os-on-usb-device-addition-removal