What is needed to use libinput in an initramfs environment?
I'm currently trying to make a mouse and touch-aware UI that gets displayed in early boot initramfs (for various reasons among "letting user enter root fs encryption password with touchscreen"), and I plan to use libinput to handle input events…
However I can't get it to recognize any devices, both in my own code calling libinput, and when running the debug binary libinput-debug-events
in the initramfs. udev is up (see screenshot), and I can't figure out what else is needed.
It finds the devices when the same system (qemu vm) is fully booted into a minimal archlinux, although mouse won't work. (I guess it's some problem with the vm mouse. Keyboard events works.)
So… am I missing something? i.e. what else (other than udev) need to be up to use libinput?
btw, here is how I run the qemu vm (with my own initramfs, on which libinput don't seems to work):
qemu-system-x86_64 -cpu host -accel kvm -machine q35,accel=kvm -enable-kvm \
-smp cpus=1,cores=1,threads=1,sockets=1 -boot order=c,menu=on -m 2000 \
-audiodev id=none,driver=none -usb -device usb-mouse -device usb-kbd \
-kernel /boot/vmlinuz-linux -sandbox on -display gtk,gl=on -vga std \
-initrd ./initrd.img -bios /usr/share/ovmf/x64/OVMF_CODE.fd