htrefil / rkvm

Virtual KVM switch for Linux machines
MIT License
395 stars 50 forks source link

Enter key not working when software is running #3

Closed beniwtv closed 3 years ago

beniwtv commented 3 years ago

Great little tool!

I have one small issue: As soon as I start the server, my enter key stops working. I can see that in the console, the output is scrolling, as if the enter key is always pressing down.

beniwtv commented 3 years ago

I should add that when started via systemctl service, this does not happen.

htrefil commented 3 years ago

Hello, this looks like some race condition issue where rkvm grabs the keyboard and doesn't register the enter key release event and thus doesn't propagate it further. I think this could be mitigated by adding a short sleep before input devices are grabbed.

I don't have access to my computer right now, could you please check if it works by adding a time::sleep_for(Duration::from_millis(500)).await before the /dev/input directory is traversed and devices grabbed in input/src/event_manager.rs?

beniwtv commented 3 years ago

Hey, yep, that worked. I could no longer reproduce this.

htrefil commented 3 years ago

Fixed in commit e7984e1.