KarsMulder / evsieve

A utility for mapping events from Linux event devices.
GNU General Public License v2.0
199 stars 11 forks source link

Keyboard doesn't work in VM #10

Closed t0msk closed 2 years ago

t0msk commented 2 years ago

Hello,

I tried to pass my keyboard to VM like this:

evsieve --input /dev/input/by-id/usb-Razer_Razer_BlackWidow_Chroma_V2-if01-event-kbd grab \
    --map key:scrolllock key:leftctrl key:rightctrl \
        --output key:grave \
        --output create-link=/dev/input/by-id/guest-keyboard &

problem is that my VM starts and my mouse works in VM too, but my keyboard doesn't work, my keyboard is locked in host, I tried LCTRL+RCTRL and Scroll Lock too and didn't help.

This is how I passed keyboard to VM:

<input type="evdev">
  <source dev="/dev/input/by-id/guest-keyboard" grab="all" repeat="on"/>
</input>
t0msk commented 2 years ago

Fixed, wrong keyboard interface