Xen domU의 Xorg에는 키보드가 없습니다.

Xen domU의 Xorg에는 키보드가 없습니다.

나는 dom0에서 Debian Bullseye의 XEN 4.14.5를 사용하고 있고, 내 domU는 Devuan Chimaera(Debian Bullseye의 포크)입니다.

domU의 VNC 서버에 연결했는데 X11을 시작할 때까지 모든 것이 괜찮았습니다. (패키지를 설치한 이후로 kbdX11 외부에서는 마우스가 작동한다고까지 말할 수 있습니다.) 그런데 X11에서는 마우스는 작동하지만 키보드는 작동하지 않습니다.

하나이상한힌트: 실행 xev해 보니 숫자 1, 2, 을 입력하면 이벤트 가 3발생하는 것으로 나타났습니다 ! ButtonPressButtonRelease편집하다:escape다시 테스트해 보면 , 12가 처음 세 개의 키코드인 것으로 보입니다 .

어떤 제안이 있으십니까?

xinput 보고서:

# env DISPLAY=:0 xinput
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Xen Virtual Keyboard                      id=7    [slave  pointer  (2)]
⎜   ↳ Xen Virtual Pointer                       id=8    [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Xen Virtual Keyboard (keys)               id=6    [slave  keyboard (3)]
#

Xorg.0.log에서 추출됨:

[    11.990] (II) config/udev: Adding input device PC Speaker (/dev/input/event0)
[    11.990] (II) No input driver specified, ignoring this device.
[    11.990] (II) This device may have been added with another device file.
[    11.991] (II) config/udev: Adding input device Xen Virtual Keyboard (/dev/input/event1)
[    11.991] (**) Xen Virtual Keyboard: Applying InputClass "evdev keyboard catchall"
[    11.991] (**) Xen Virtual Keyboard: Applying InputClass "libinput keyboard catchall"
[    11.991] (**) Xen Virtual Keyboard: Applying InputClass "joystick catchall"
[    11.991] (II) LoadModule: "joystick"
[    11.991] (II) Loading /usr/lib/xorg/modules/input/joystick_drv.so
[    11.994] (II) Module joystick: vendor="X.Org Foundation"
[    11.994]    compiled for 1.19.0, module version = 1.6.3
[    11.994]    Module class: X.Org XInput Driver
[    11.994]    ABI class: X.Org XInput driver, version 24.1
[    11.994] (II) Using input driver 'joystick' for 'Xen Virtual Keyboard'
[    11.994] (**) Xen Virtual Keyboard: always reports core events
[    11.994] (**) Xen Virtual Keyboard (keys): Applying InputClass "evdev keyboard catchall"
[    11.994] (**) Xen Virtual Keyboard (keys): Applying InputClass "libinput keyboard catchall"
[    11.994] (**) Xen Virtual Keyboard (keys): Applying InputClass "joystick catchall"
[    11.994] (II) Using input driver 'joystick' for 'Xen Virtual Keyboard (keys)'
[    11.994] (**) Xen Virtual Keyboard (keys): always reports core events
[    11.994] (**) Option "xkb_model" "pc105"
[    11.994] (**) Option "xkb_layout" "us"
[    11.994] (**) Option "config_info" "udev:/sys/devices/virtual/input/input1/event1"
[    11.994] (II) XINPUT: Adding extended input device "Xen Virtual Keyboard (keys)" (type: JOYSTICK, id 6)
[    11.995] (**) Option "Device" "/dev/input/event1"
[    11.995] (**) Option "config_info" "udev:/sys/devices/virtual/input/input1/event1"
[    11.995] (II) XINPUT: Adding extended input device "Xen Virtual Keyboard" (type: JOYSTICK, id 7)
[    11.995] (II) Joystick: Xen Virtual Keyboard. bus 0x1 vendor 0x5853 product 0xffff version 0x0
[    11.995] (II) Joystick: found 0 axes, 654 buttons
[    11.995] JOYSTICK: DebugLevel set to 0
[    11.995] (**) Xen Virtual Keyboard: (accel) keeping acceleration scheme 1
[    11.995] (**) Xen Virtual Keyboard: (accel) acceleration profile 0
[    11.995] (**) Xen Virtual Keyboard: (accel) acceleration factor: 2.000
[    11.995] (**) Xen Virtual Keyboard: (accel) acceleration threshold: 4
[    11.996] (II) config/udev: Adding input device Xen Virtual Keyboard (/dev/input/js0)
[    11.996] (II) No input driver specified, ignoring this device.
[    11.996] (II) This device may have been added with another device file.
[    11.996] (II) config/udev: Adding input device Xen Virtual Pointer (/dev/input/event2)
[    11.996] (**) Xen Virtual Pointer: Applying InputClass "evdev pointer catchall"
[    11.996] (**) Xen Virtual Pointer: Applying InputClass "Xen Virtual Pointer axis blacklist"
[    11.996] (**) Xen Virtual Pointer: Applying InputClass "libinput pointer catchall"
[    11.996] (II) LoadModule: "libinput"
[    11.996] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[    12.020] (II) Module libinput: vendor="X.Org Foundation"
[    12.020]    compiled for 1.20.8, module version = 0.30.0
[    12.020]    Module class: X.Org XInput Driver
[    12.020]    ABI class: X.Org XInput driver, version 24.1
[    12.020] (II) Using input driver 'libinput' for 'Xen Virtual Pointer'
[    12.021] (**) Xen Virtual Pointer: always reports core events
[    12.021] (**) Option "Device" "/dev/input/event2"
[    12.021] (**) Option "_source" "server/udev"
[    12.038] (II) event2  - Xen Virtual Pointer: is tagged by udev as: Mouse
[    12.038] (II) event2  - Xen Virtual Pointer: device is a pointer
[    12.039] (II) event2  - Xen Virtual Pointer: device removed
[    12.039] (**) Option "config_info" "udev:/sys/devices/virtual/input/input2/event2"
[    12.039] (II) XINPUT: Adding extended input device "Xen Virtual Pointer" (type: MOUSE, id 8)
[    12.039] (**) Option "AccelerationScheme" "none"
[    12.039] (**) Xen Virtual Pointer: (accel) selected scheme none/0
[    12.039] (**) Xen Virtual Pointer: (accel) acceleration factor: 2.000
[    12.039] (**) Xen Virtual Pointer: (accel) acceleration threshold: 4
[    12.040] (II) event2  - Xen Virtual Pointer: is tagged by udev as: Mouse
[    12.040] (II) event2  - Xen Virtual Pointer: device is a pointer
[    12.040] (II) config/udev: Adding input device Xen Virtual Pointer (/dev/input/js1)
[    12.041] (**) Xen Virtual Pointer: Applying InputClass "Xen Virtual Pointer axis blacklist"
[    12.041] (II) No input driver specified, ignoring this device.
[    12.041] (II) This device may have been added with another device file.
[    12.041] (II) config/udev: Adding input device Xen Virtual Pointer (/dev/input/mouse0)
[    12.041] (**) Xen Virtual Pointer: Applying InputClass "Xen Virtual Pointer axis blacklist"
[    12.041] (II) No input driver specified, ignoring this device.
[    12.041] (II) This device may have been added with another device file.
```

답변1

기반으로https://forums.gentoo.org/viewtopic-p-8683632.html#8683632 다음을 포함하는 파일 일치 항목을 배치하는 것을 발견했습니다 /etc/X11/xorg.conf.d/*.conf.

Section "InputClass"
        Identifier "libinput keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver          "libinput"
EndSection

이는 일부 부분(공백 제외)과 정확히 일치하지만 /usr/share/X11/xorg.conf.d/40-libinput.conf분명히 순서가 중요할 것입니다.

관련 정보