docs: update gofurther/evdev

This commit is contained in:
lukas 2023-05-13 16:00:23 +00:00
parent c3b81c4ee4
commit 42e90c0e2a

View File

@ -2,7 +2,7 @@
title: Share an input device with a guest using evdev
description:
published: true
date: 2023-05-13T15:59:19.571Z
date: 2023-05-13T16:00:21.759Z
tags:
editor: markdown
dateCreated: 2022-08-13T00:26:02.801Z
@ -16,6 +16,8 @@ In this section, we focus on sharing a locally attached input device with a gues
Since version 7.4.0, Libvirt added a low-latency local-only way to share an input device with a guest, using the [Linux evdev event interface](https://www.kernel.org/doc/html/latest/input/input.html?highlight=evdev#evdev).
### Configuration
- List input devices based on their identification, only listing those with an *event* in their name and excluding these with *if*:
```
@ -29,7 +31,7 @@ ls /dev/input/by-id/* | grep event | grep -v if
/dev/input/by-id/usb-Logitech_USB_Optical_Mouse-event-mouse
```
- Make sure that the correct one is selected by registring its inputs in the console:
- Make sure that the correct one is selected by registering its inputs in the console:
```
cat /dev/input/by-id/usb-Logitech_G513_RGB_MECHANICAL_GAMING_KEYBOARD_156930783132-event-kbd
@ -50,10 +52,12 @@ cat /dev/input/by-id/usb-Logitech_G513_RGB_MECHANICAL_GAMING_KEYBOARD_1569307831
</input>
```
### Usage
> Press <kbd>Left Ctrl + Right Ctrl</kbd> simultaneously to switch your devices between the guest and the host.
{.is-info}
## Resources
* https://libvirt.org/formatdomain.html#input-devices