[vfio-users] [PATCH 2/2] input: linux evdev support

Okky Hendriansyah okky at nostratech.com
Thu Nov 19 16:06:30 UTC 2015


Hi Gerd,

On November 19, 2015 at 22:26:29, Gerd Hoffmann (kraxel at redhat.com) wrote:
Hi, 

It'll switch the keyboard only, not sure yet how to handle mice 
switching best. 
Is it possible to have the trigger only at the keyboard but both mouse and keyboard switch back and forth together? Since triggering from the mouse itself I can image is quite hard to detect.

Yes, press both at the same time (and release, the actual switch is 
delayed until no key is pressed any more to avoid keys being stuck in 
pressed state). And you have to use the keyboard you've assigned to the 
guest for that. 
Ah, yes now I can switch the keyboard from/to the guest. 

/dev/input/by-path/platform-i8042-serio-0-event-kbd 

cheers, 
Gerd 
Thanks for pointing the correct event device for my PS/2 keyboard. I can see it also in my system. 

I did try this configuration while playing Dota 2 (against bot). The mouse cursor movement and the keyboard felt native-ish, but after a while, while holding Left Ctrl and right clicking there was instability of the display. Which ended on my DisplayPort monitor not receiving any signal from the guest. Let me try disabling the -input-linux line and retry the same thing again to see whether the game itself is broken or because of the additional config. If I can reproduce this issue, how can I give feedback to you?

Another note, as per Francesco’s idea I also tried your patch on my El Capitan guest. The keyboard gets registered on Clover but when I autologged in, both mouse and keyboard are not registering.



Best regards,

-- 
Okky Hendriansyah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20151119/d3062ea4/attachment.htm>


More information about the vfio-users mailing list