From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id D449EE8E6; Wed, 01 Oct 2025 14:39:34 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 4268FE96D; Wed, 01 Oct 2025 14:39:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_MISSING,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=4.0.1 Received: from fout-b2-smtp.messagingengine.com (fout-b2-smtp.messagingengine.com [202.12.124.145]) by atuin.qyliss.net (Postfix) with ESMTPS id 00936E96B for ; Wed, 01 Oct 2025 14:39:31 +0000 (UTC) Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfout.stl.internal (Postfix) with ESMTP id CDA3F1D0044C; Wed, 1 Oct 2025 10:39:30 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Wed, 01 Oct 2025 10:39:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1759329569; x=1759415969; bh=u83o8muhxn p41RJsE098F82IXlzMv/xJrAuvTEMA2YI=; b=oiC2Lm2iTQyd+SVnwivZWOWb2K SmfuXCBbL3UCQenPwM0FEig1g6mSerRqGqP20sAuYOiNtlFMJStFHopZnlI5zG5I rqgAg1wVxEGNqv+9yacOMCf82fC+eZqGP0gyqJNFPJQO1yYvdIEKWWLeLOJbPcnV hH5DBmIh4EwpJ0Tuy11RH52bAH+aBhfHCz8Da9MYF0kh0Ahmwv+iOOcmZ/YHn+wJ 0MgeAgL8OhxapbhGiIrgVkWZB1O3xqBxctmdqn2vTlw3BdIxh/sQWpCG4sA0k3OI qxZz53T5mmxD8Tqh508IaWp4ZDKnZJ+5KTo+3vq/jE5GdXldgSJFMP0upFZQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1759329569; x=1759415969; bh=u83o8muhxnp41RJsE098F82IXlzMv/xJrAu vTEMA2YI=; b=T1roSJn0gC4X/bWbRSUU25KWzapCL9sGADCG5IGTX10vIc9m7pq 2AIxBrcmknQMTSoD16C3ylPclzt6f3y0jz/2F3CVmXA1a3FRo0gZ/85r8jo58hpk ZN/meLssHK9Itdh2aBra87jAhQEKll2Dprhi+wsV1GK9wMxCh+DgXeMbmPJkR0sL irnUfs9W9BRWPscnuIJTgu1IXhw0iiwrHwv/7MWfbK3kLgYCfOFz8f4SMC7jfh7Y gMa+6Kwp6wzd0GDS66zzvl73fuKSIzfRP3+ccVaONPrYj1yeNzwk70fM4VU3VePo WzYAxKr3UXqk4Pr6AZYc3Ocx4DbIeP+9zhg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdekfeegtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefhvfevufgjfhffkfggtgesghdtreertddttdenucfhrhhomheptehlhihsshgrucft ohhsshcuoehhihesrghlhihsshgrrdhisheqnecuggftrfgrthhtvghrnhepieduffeuie elgfetgfdttddtkeekheekgfehkedufeevteegfeeiffetvdetueevnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhephhhisegrlhihshhsrgdrih hspdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegu vghmihhosggvnhhouhhrsehgmhgrihhlrdgtohhmpdhrtghpthhtohepuggvvhgvlhessh hpvggtthhruhhmqdhoshdrohhrgh X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 1 Oct 2025 10:39:29 -0400 (EDT) Received: by mbp.qyliss.net (Postfix, from userid 1000) id 23E2C5F65316; Wed, 01 Oct 2025 16:39:27 +0200 (CEST) From: Alyssa Ross To: Demi Marie Obenour Subject: Re: [PATCH v3 2/2] host/rootfs: Switch to systemd-udevd In-Reply-To: <20250928-udev-v3-2-bb0e9612c415@gmail.com> References: <20250928-udev-v3-0-bb0e9612c415@gmail.com> <20250928-udev-v3-2-bb0e9612c415@gmail.com> Date: Wed, 01 Oct 2025 16:39:26 +0200 Message-ID: <87seg2bs9t.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: X6QYPOW3X7WFHPGZKPJ6VL6KBG6V2PJN X-Message-ID-Hash: X6QYPOW3X7WFHPGZKPJ6VL6KBG6V2PJN X-MailFrom: hi@alyssa.is X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-devel.spectrum-os.org-0; header-match-devel.spectrum-os.org-1; header-match-devel.spectrum-os.org-2; header-match-devel.spectrum-os.org-3; header-match-devel.spectrum-os.org-4; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Spectrum OS Development X-Mailman-Version: 3.3.9 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Demi Marie Obenour writes: > This replaces the mdevd uevent daemon with systemd-udevd, which supports > much more hardware and is therefore to be preferred for a full desktop > environment. Various Wayland compositors integrate with systemd-udevd, > allowing them to discover devices as they appear rather than having to > only use devices plugged in when the compositor is started. > Additionally, systemd-udevd has quirks for various devices that are > needed to support the wide variety of hardware end-users have. Just want to note that this implementation currently doesn't, because it doesn't install the hardware database. (I noticed this while debugging the modprobe thing.) I was able to get it to work with the following diff. I don't think it needs to be in this commit, so I'll just add this separately once we have the basic udev implementation in, but I'm posting it here now so we don't end up duplicating work. :) diff --git a/host/rootfs/default.nix b/host/rootfs/default.nix index 8abe108..b8e72f2 100644 =2D-- a/host/rootfs/default.nix +++ b/host/rootfs/default.nix @@ -84,6 +84,15 @@ let usrPackages =3D [ appvm kernel.modules firmware kmod kmod.lib netvm mesa dejavu_fonts westonLite + + (runCommand "hwdb.bin" { + nativeBuildInputs =3D [ systemd ]; + } '' + mkdir -p $out/lib/systemd/hwdb etc/udev + cp -R ${systemd}/lib/udev/hwdb.d etc/udev + systemd-hwdb update -sr . + mv etc/udev/hwdb.bin $out/lib/systemd/hwdb + '') ]; =20 appvms =3D { --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRV/neXydHjZma5XLJbRZGEIw/wogUCaN09HgAKCRBbRZGEIw/w oiItAP9dYj9tq58a0YcQTpYeTXTBIvDmVAneC3poMkfoubG6EgD9Es9E7V7Bzt+S dd0p1ohK/i+jX5v5Juq3/9J0L+FbSw0= =3I6a -----END PGP SIGNATURE----- --=-=-=--