<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr">On Fri, Apr 15, 2016 at 12:35 AM Gerd Hoffmann <<a href="mailto:kraxel@redhat.com">kraxel@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Do, 2016-04-14 at 14:12 +0000, Ivan Volosyuk wrote:<br>
> First of all it is pretty cool to be able to skip the synergy and<br>
> short-circuit multiple layers on the way of keyboard and mouse events.<br>
> It was pretty easy to setup once I found the right options:<br>
> EXTRA_ARGS+=" -object<br>
> input-linux,id=mouse1,evdev=/dev/input/by-id/usb-Logitech_USB-PS_2_Optical_Mouse-event-mouse"<br>
> EXTRA_ARGS+=" -object<br>
> input-linux,id=mouse3,evdev=/dev/input/by-id/usb-Razer_Razer_DeathAdder-event-mouse"<br>
> EXTRA_ARGS+=" -object<br>
> input-linux,id=kbd1,evdev=/dev/input/by-id/usb-0b38_0010-event-kbd,grab_all=on"<br>
> EXTRA_ARGS+=" -object<br>
> input-linux,id=kbd2,evdev=/dev/input/by-id/usb-Chicony_USB_Keyboard-event-kbd,grab_all=on"<br>
><br>
><br>
> The was some rough edges as well. I stress-tested it playing Stacraft<br>
> 2 with a lot of mouse and keyboard events. Some of my keybindings<br>
> require 2 modifiers: e.g. ctrl-shift-r. The issues I found:<br>
> - It seems some modifiers sometimes was getting stuck, so I was<br>
> puzzled a few times when I couldn't select single unit (probably shift<br>
> was stuck). I have to press all modifiers to get it released.<br>
> - At some point mouse was ungrabbed and remained this way even I could<br>
> still toggle grab state for my keyboard.<br>
<br>
That could be because of the two keyboard devices.<br>
<br>
Does it happen with only one keyboard too?<br></blockquote><div><br></div><div>Yes it does, single keyboard, single mouse.</div><div>Another point of data I have: xset r rate 200 100</div><div><span style="line-height:1.5">- still mouse stopped responding after about 5 minutes in the game (about 250 input events per minute)</span><br></div><div><span style="line-height:1.5">- I had some suspicious actions happening which I didn't made and my hand was on the other side of keyboard (camera zoom, which is bound on mouse wheel or page down key).</span></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Does it happen with two keyboards, but grab_all=on specified for only<br>
one of them?<br>
<br>
Why do you assign two keyboards in the first place?<br></blockquote><div>I wanted to decide which keyboard I want to use in VM. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
> - I have 2 extra mouse buttons and the Windows 8.1 didn't seem to<br>
> receive any events for them.<br>
<br>
Yep, that is because the mouse devices emulated by qemu can't handle<br>
more buttons.  Improving that shouldn't be too difficult, but will not<br>
happen for the 2.6 release because we are in freeze already.<br>
<br>
cheers,<br>
  Gerd<br>
<br>
<br>
</blockquote></div></div>