summary refs log tree commit diff
path: root/vm/app/lynx/default.nix
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2022-04-24 07:48:11 +0000
committerAlyssa Ross <hi@alyssa.is>2022-05-11 09:23:04 +0000
commita9c192e00d17548f75e18465baf359813bc05e72 (patch)
treed45be9562d29a80c34e294fed86039f3aa74477d /vm/app/lynx/default.nix
parent316da12490fbe99ebcd54cbf9718fdeaabf19639 (diff)
downloadspectrum-a9c192e00d17548f75e18465baf359813bc05e72.tar
spectrum-a9c192e00d17548f75e18465baf359813bc05e72.tar.gz
spectrum-a9c192e00d17548f75e18465baf359813bc05e72.tar.bz2
spectrum-a9c192e00d17548f75e18465baf359813bc05e72.tar.lz
spectrum-a9c192e00d17548f75e18465baf359813bc05e72.tar.xz
spectrum-a9c192e00d17548f75e18465baf359813bc05e72.tar.zst
spectrum-a9c192e00d17548f75e18465baf359813bc05e72.zip
host/rootfs: fix Weston hotplugging
On the Spectrum host, the kernel delivers uevents to mdevd.  By
default, if mdevd doesn't have a handler for an event, it won't do
anything, and other processes that might be interested in the uevent
hear about it.  This means that Weston isn't notified about input
device hotplugs.  (And USB devices can appear after init has started,
so any USB device counts as hotplugging even if it's attached before
boot or even built in to the computer.)

To fix this, we configure mdevd to rebroadcast events it doesn't
handle on Netlink group 4.  These events will then be picked up by
Weston via libudev-zero, which listens on group 4 for hotplug events.

Reported-by: Ville Ilvonen <ville.ilvonen@unikie.com>
Fixes: 372bacd ("etc/s6-rc: add weston service")
Message-Id: <20220424080020.32216-1-hi@alyssa.is>
Tested-by: Ville Ilvonen <ville.ilvonen@unikie.com>
Diffstat (limited to 'vm/app/lynx/default.nix')
0 files changed, 0 insertions, 0 deletions