1

I am using XEN 4.14.5 for Debian Bullseye in dom0, and my domU is Devuan Chimaera (a fork of Debian Bullseye).

I connect to the VNC server for the domU, and everything works before starting X11. (since installing package kbd, I can even say the mouse works outside X11.) In X11 however, the mouse works and the keyboard is dead.

One weird clue: I ran xev, and found that typing digits 1, 2, and 3 caused ButtonPress and ButtonRelease events! Edit: Retesting seems to say that was escape, 1, and 2; which would be the first three keycodes.

Any suggestions?

xinput reports:

# 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)]
#

Extracted from 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 Answer 1

0

Based on https://forums.gentoo.org/viewtopic-p-8683632.html#8683632 I found that it is sufficient to put a file matching /etc/X11/xorg.conf.d/*.conf containing:

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

While this is an exact match (excluding whitespace) of a section in /usr/share/X11/xorg.conf.d/40-libinput.conf, apparently order must matter.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .