docs: update gofurther/evdev

This commit is contained in:
lukas 2022-08-25 20:26:04 +00:00
parent abfaf39bbf
commit 43600e3965

View File

@ -2,7 +2,7 @@
title: Share an input device with a guest using evdev title: Share an input device with a guest using evdev
description: description:
published: true published: true
date: 2022-08-25T10:40:44.666Z date: 2022-08-25T20:26:02.610Z
tags: tags:
editor: markdown editor: markdown
dateCreated: 2022-08-13T00:26:02.801Z dateCreated: 2022-08-13T00:26:02.801Z
@ -19,7 +19,7 @@ There are multiple ways to share an input device with a virtual machine.
Event device or simply `evdev` is a generic input event interface that is part of the Linux kernel. Event device or simply `evdev` is a generic input event interface that is part of the Linux kernel.
The following is a XML snippet example for sharing a mouse and a keyboard. The following is an XML snippet example for sharing a mouse and a keyboard.
``` ```
<input type='evdev'> <input type='evdev'>
@ -32,5 +32,16 @@ The following is a XML snippet example for sharing a mouse and a keyboard.
Replace the `platform-i8042-serio-1-event-mouse` value with the value under `/dev/input/by-path/*` or `/dev/input/by-id/*` Replace the `platform-i8042-serio-1-event-mouse` value with the value under `/dev/input/by-path/*` or `/dev/input/by-id/*`
If there are multiple possible options, the input device has to have `event` in the name.
```
sudo cat /dev/input/by-path/pci-0000:09:00.0-event-mouse
```
```
<EFBFBD><EFBFBD>c $
<EFBFBD><EFBFBD>c<EFBFBD><EFBFBD><EFBFBD>c<EFBFBD><EFBFBD><EFBFBD>c<EFBFBD>$<24><>c<EFBFBD>$<24><><63><D78F><63><D78F>c
<EFBFBD><EFBFBD>c 3
<EFBFBD><EFBFBD>c<EFBFBD><EFBFBD><EFBFBD><EFBFBD>c<EFBFBD><EFBFBD><EFBFBD><EFBFBD>cd<EFBFBD><EFBFBD><EFBFBD>cd<EFBFBD><EFBFBD><EFBFBD>c<EFBFBD>2<EFBFBD><EFBFBD>c<EFBFBD>2<EFBFBD><EFBFBD>cz<EFBFBD><EFBFBD>cz<EFBFBD><EFBFBD>c<EFBFBD>Q<EFBFBD><EFBFBD>c<EFBFBD>Q<EFBFBD><EFBFBD>c<EFBFBD><EFBFBD><EFBFBD><EFBFBD>c<EFBFBD><EFBFBD><EFBFBD><EFBFBD>c<EFBFBD><EFBFBD><EFBFBD><EFBFBD>c<EFBFBD><EFBFBD><EFBFBD><EFBFBD>cda
<20><>cda
```