Hello folks, this is more of a ‘annoyance’ than an actual problem, and I totally live without a solution, so here it goes:
When starting a virtual machine in Virt-Manager both my mouse and keyboard are ‘stolen’ from the host and put into the VM.
The VM is still starting, meaning that I have to wait about 5 seconds before I can get my mouse and keyboard back into the host after pressing Left+Right CTRL.
I was wondering if there’s a way to let evdev know I only want to pass through my keyboard and mouse after pressing left+right CTRL.
I am using Looking Glass for default input, and only wish to switch to evdev where looking glass fails to integrate properly (which is very rare).
My evdev setup:
<qemu:commandline>
<qemu:arg value='-object'/>
<qemu:arg value='input-linux,id=mouse1,evdev=/dev/input/by-id/usb-1bcf_USB_Optical_Mouse-event-mouse'/>
<qemu:arg value='-object'/>
<qemu:arg value='input-linux,id=kbd1,evdev=/dev/input/by-id/usb-G.SKILL_Corporation_G.SKILL_RIPJAWS_KM780_MX_GAMING_KEYBOARD-event-kbd,grab_all=on,repeat=on'/>
<qemu:arg value='-spice'/>
<qemu:arg value='port=5900,disable-ticketing'/>
<qemu:env name='QEMU_AUDIO_DRV' value='pa'/>
<qemu:env name='QEMU_PA_SAMPLES' value='1024'/>
<qemu:env name='QEMU_AUDIO_TIMER_PERIOD' value='150'/>
<qemu:env name='QEMU_PA_SERVER' value='/run/user/1000/pulse/native'/>
</qemu:commandline>
Thanks in advance!