onlaj / Piano-LED-Visualizer

Piano LED Visualizer: Connect an LED strip to your Raspberry Pi and create an immersive visual experience for your piano playing
MIT License
517 stars 111 forks source link

Do I have to restart raspi whenever I turn off my keyboard? #273

Open vincentxu123 opened 2 years ago

vincentxu123 commented 2 years ago

While the LED visualizer does work for my keyboard, I noticed that if I turn my keyboard off and on, the visualizer does not detect the keyboard inputs and light up unless I restart the raspi. Is this normal? Or is there some way I can have the raspi detect keyboard inputs again even after I turn the keyboard off and on?

onlaj commented 2 years ago

Hello. What happens if you select your keyboard as an input device when using a screen or web interface? Does it work then? Also, try to unplug and re-plug your piano's USB.

alexandrewillame commented 2 years ago

I have the exact same problem.

if I select your keyboard as an input device when using a screen or web interface e.g. switching port twice (when the piano is ON), it work. But again as soon as I turn the piano off, then on, the system does not work anymore and I need to restart the Pi or manually do that port switching for it to work.

Is there any way it can detect the piano is back up (it does since the input port appear back up) and connect to it properly?

Thanks