I have a USB 2.0 LED backlit keyboard which continuously has it's LED's on. Unfortunately, the only way to turn off the LEDs is via hotkeys that require a special FN keyboard key (which isn't accessible via keybd_event API or sendkeys class).
Hence, I'd like to make a Powershell script which either disables or suspends/sleeps the USB port for the keyboard (without reboot) after the keyboard and/or mouse has been idle for 15 minutes or longer.
I know there's a USB selective suspend Windows power-saving feature; however, I'm not sure if I can manually do this via script/code for a specific USB port. If it's not possible, I'm hoping for any other possible way to do something similar or just disable the port/device (without reboot).
I did some Internet searches; but the only thing I could find was how to disable the entire USB hub.
If this is something that can't be done easily via Powershell/Win32 API, then I would like to know how to do it via .NET/C#.
Thanks in advance!