evdev isn't working for mouse only

Monotoko

Member
Dec 7, 2014
4
1
23
I have the following args on each VM: args: -object input-linux,id=mouse1,evdev=/dev/input/by-id/usb-SINOWEALTH_Hexgears_Gaming_Mouse-event-mouse -object input-linux,id=kbd1,evdev=/dev/input/by-id/usb-Logitech_USB_Keyboard-event-kbd

When I start Windows my mouse and keyboard get put there successfully, which is great. However when I try to use the two-ctrls to go to a different VM my keyboard goes over successfully, but my mouse is stuck in Windows.

Does anyone know why this would be the case?

Edit: I suspect I need these lines, does anyone know how I would add them in Proxmox?
Code:
    <input type="mouse" bus="usb">
      <address type="usb" bus="0" port="2"/>
    </input>
    <input type="keyboard" bus="usb">
      <address type="usb" bus="0" port="3"/>
    </input>
    <input type="mouse" bus="ps2"/>
    <input type="keyboard" bus="ps2"/>
 
Last edited:
Figured this one out thanks to someone on Reddit... the reason was the mouse and keyboard being the wrong way in the config

You need to put the keyboard before the mouse...
 
  • Like
Reactions: leesteken