Skip to content

Stop pulling udev-settle into every live boot for the screen reader - #312

Closed
emirb wants to merge 3 commits into
quattrofrom
iso/live-no-udev-settle
Closed

emirb wants to merge 3 commits into
quattrofrom
iso/live-no-udev-settle

Conversation

@emirb

@emirb emirb commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

releng's livecd-alsa-unmuter.service has Wants=/After=systemd-udev-settle.service and is enabled from sound.target, so any sound card starts settle. Its ConditionKernelCommandLine=accessibility=on is only checked once the dependency is queued (systemd.unit(5): conditions don't gate dependencies), so the unit skips while sysinit.target waits for every device. On the Z690 settle ran from 6.0 to 10.84 s and sysinit.target came at 10.82-10.85 s; without it, 4.3-5.7 s. This orders the unit after sound.target only; the screen reader still gets its sound card.

Measured on an MSI MAG Z690 Tomahawk (i5-12600K) booting a SanDisk Extreme Pro, 3 boots per ISO, seconds since kernel start. The four live-boot changes (this one and the other drafts) were measured together, kernel start to installer splash 17.88-17.93 s before and 7.75-7.91 s after, with 0 failed units on every boot; the numbers here come from this phase's own timestamps.

releng's livecd-alsa-unmuter.service wants systemd-udev-settle and is
enabled from sound.target, so any sound card starts settle, and the
unit's ConditionKernelCommandLine=accessibility=on is only checked once
the dependency is already queued. sysinit.target then waits for every
device: 3.54 s on an MSI Z690, ending when snd-usb-audio finished with
the board's USB audio. Order after sound.target only.
@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Install test passed

x86_64 vs quattro aarch64 vs quattro
Result ✅ passed ✅ passed
Build the ISO 209.0 s +10.0 s 246.0 s −3.0 s
Install 78.7 s −18.3 s 131.2 s +2.4 s
First boot 13.6 s −0.2 s 6.7 s +0.1 s
Everyday boot 13.6 s +1.7 s 5.3 s +0.1 s

Boots are loader, kernel and userspace, without the VM's firmware.

Install phases, x86_64
Phase This PR quattro
Preparing live environment 0.2 s 0.2 s
Preparing install target 0 s 0 s
Installing Arch + Omarchy 64.6 s 76.7 s
Configuring hibernation 0.2 s 0.6 s
Configuring system 2.3 s 4.4 s
Staging provisioning 0 s 0 s
Finalizing Limine boot 7.8 s 10.8 s
Finalizing user 3.2 s 3.9 s
Configuring login 0.1 s 0.1 s
Configuring SSH access 0.2 s 0.3 s
Configuring Tailscale 0 s 0 s
Configuring DNS resolver 0 s 0 s
Validating boot setup 0 s 0 s
Creating factory snapshot 0 s 0.1 s
Install phases, aarch64
Phase This PR quattro
Preparing live environment 0.1 s 0.1 s
Preparing install target 0 s 0 s
Installing Arch + Omarchy 115.8 s 113.4 s
Configuring hibernation 0 s 0 s
Configuring system 4.8 s 4.3 s
Staging provisioning 0 s 0 s
Finalizing Limine boot 7.8 s 8.2 s
Finalizing user 2.2 s 2.3 s
Configuring login 0.1 s 0.1 s
Configuring SSH access 0.2 s 0.2 s
Configuring Tailscale 0 s 0 s
Configuring DNS resolver 0 s 0 s
Validating boot setup 0.1 s 0.1 s
Creating factory snapshot 0.2 s 0.2 s

Run · c1ecb5b

sound.target starts when the first sound card appears, and livecd-sound
unmutes and offers only the cards in /proc/asound/cards at that moment,
so ordering the unmuter after sound.target alone can leave out a card
that probes later: a USB headset, or a board whose analog codec is USB,
like the MSI Z690's. Without settle a screen reader user can be left
with speech on the HDMI card only.

Run `udevadm settle` as the unit's ExecStartPre. The accessibility
condition gates it like the rest of the unit, so only those boots wait,
and normal boots still never start systemd-udev-settle (checked in QEMU
on this branch's ISO: the unmuter is skipped and settle never starts;
with accessibility=on the unit runs settle, then livecd-sound).
@emirb

emirb commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

@greptileai

@greptile-apps

greptile-apps Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

The PR keeps the device wait inside the accessibility-only sound service instead of pulling it into every live boot.

  • Only accessibility boots wait for device settling before sound is unmuted.

Reviews (3) · Last reviewed commit: "Unmute the screen reader's sound even wh..." · Reviewed by Greptile

@emirb
emirb marked this pull request as ready for review October 22, 2026 20:44
A udevadm settle that times out on some unrelated slow device failed
the unit, so livecd-sound -u never ran and every card stayed muted,
leaving the screen reader silent. releng's Wants= on
systemd-udev-settle.service never stopped the unmute that way. Ignore
the wait's exit status; a settle that succeeds still runs first.

Checked under systemd 257 with settle replaced by a command that exits
1: without the change the unit fails and nothing is unmuted, with it
the unit succeeds and the unmute runs.
@emirb
emirb marked this pull request as draft October 22, 2026 21:21
@emirb

emirb commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

Closing. Since #310, #311, #313 and #314, settle starts after sysinit.target, and the installer runs its own udevadm settle before the wizard, so there is no measurable gain left.

@emirb emirb closed this Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant