Skip to content

Fix initial-setup GUI failing to start on ARM due to weston input device access - #162

Open
jgroman wants to merge 1 commit into
rhinstaller:masterfrom
jgroman:fix-weston-crash-on-missing-input
Open

Fix initial-setup GUI failing to start on ARM due to weston input device access#162
jgroman wants to merge 1 commit into
rhinstaller:masterfrom
jgroman:fix-weston-crash-on-missing-input

Conversation

@jgroman

@jgroman jgroman commented Aug 12, 2026

Copy link
Copy Markdown

PR #156 fixed the GUI startup on x86 by adding VT switching and multi-GPU enumeration, but the fix is insufficient on ARM (e.g., Raspberry Pi). On ARM, weston starts, gets "session control granted" from libseat's logind backend, but then rejects all input devices with "not using input device" and crashes with SIGSEGV in Mesa's teardown path.

Root cause: initial-setup.service runs as a systemd service (User=root). When pam_systemd.so creates a logind session, it gets class=user-early type=tty with no seat assignment. This is by design -- logind does not assign seats to sessions created by systemd services. Without a seat, libseat's logind backend cannot hand over input devices to weston, and weston's libinput rejects them all.

Fix: Set LIBSEAT_BACKEND=noop before the weston invocation. The noop backend bypasses logind session management entirely. Since initial-setup runs as root, weston can open DRM and input devices directly without needing logind's device handoff.

This fix is safe to apply universally alongside PR #156's VT switching and multi-GPU changes. The noop backend is appropriate here because initial-setup is a one-shot root process during first boot -- multi-seat and unprivileged access scenarios do not apply.

Tested on Raspberry Pi 4 Model B, Fedora 45 Xfce aarch64, kernel 7.2.0-rc6, weston 15.0.1, Mesa 26.2.0.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2358688

Assisted-By: Claude Opus 4.6

logind does not assign a seat to sessions created by systemd services,
so weston's libseat logind backend cannot acquire input devices. This
causes weston to reject all input devices and crash on shutdown.

Use the noop libseat backend instead, which lets weston open devices
directly as root without needing logind's device handoff.

Fixes the GUI startup on ARM (RPi) where PR rhinstaller#156's VT switching alone
is insufficient.

Resolves: rhbz#2358688
@Conan-Kudo

Copy link
Copy Markdown
Contributor

Your author is wrong and not recognized by GitHub.

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.

2 participants