main/postmarketos-mkinitfs: Correctly set up udev
This replaces the previous udevadm test
hack with a combination of udevd
, udevadm trigger
and udevadm settle
in order to coldplug all available devices and make them available for use via libinput / unl0kr.
Possibly fixes #1411 (comment 895465028).
To test, run
pmbootstrap install --fde --add unl0kr
pmbootstrap qemu
and verify that keyboard / mouse input works in unl0kr.
Background
The previous udevadm test
workaround worked for most but apparently not all people. The test
command is also explicitly marked as a debug tool, not meant to be used in production. Using the debug shell, I noticed that even after running udevadm test
, libinput list-devices
gave no output and libinput debug-events /dev/input/event...
failed, claiming that the device had not been set up by udev yet.
Researching how we set up udev after the initfs phase, I found that the setup-udev script starts a number of RC services that combine udevd
, udevadm trigger
and udevadm settle
.
After calling this series of commands in the debug shell, both libinput list-devices
and libinput debug-events
started working as expected.
Merge request reports
Activity
added 1 commit
- 9123d776 - main/postmarketos-mkinitfs: Correctly set up udev
By Johannes Marbach on 2022-05-22T12:10:21
added 1 commit
- 9387d818 - main/postmarketos-mkinitfs: Correctly set up udev
By Johannes Marbach on 2022-05-22T17:40:59
- Resolved by Administrator
Does the udevd process continue running after exiting initramfs and switching to the rootfs?
By Luca Weiss on 2022-05-25T19:55:33
Edited by Ghost User
added 1 commit
- 14556c5e - main/postmarketos-mkinitfs: Correctly set up udev
By Johannes Marbach on 2022-05-26T11:36:33
mentioned in issue #1531
By clayton craft on 2022-05-26T15:11:22
tested on qemu and the pinebook pro, which both had issues with keyboard input for me, and those issues seemed to be resolved now!
By clayton craft on 2022-05-29T19:38:30
Edited by Ghost User
added 21 commits
-
14556c5e...9a18e34f - 20 commits from branch
postmarketOS:master
- aa0f96ed - main/postmarketos-mkinitfs: Correctly set up udev (MR 3146)
By clayton craft on 2022-05-29T19:03:29
-
14556c5e...9a18e34f - 20 commits from branch
added backport-to-v22.06 label
enabled an automatic merge when the pipeline for aa0f96ed succeeds
By clayton craft on 2022-05-29T19:04:17
mentioned in issue #1411 (closed)
By clayton craft on 2022-05-29T19:09:32